IBDesignables, no suitable image, required code signature missing

Hello


I've struggled with trying to make XCode storyboards work the last couple of days.


The issue:
When I open a storyboard or xib-file that has @IBDesignables specified in an externalPod I get this error, which prevents Storyboard from properly drawing:

Failed to render and update auto layout status for *MyViewController* (6jf-cd-DYU) dlopen (AFramework.framework, 1): no suitable image found. Did find: Aframework.framework: required code signature missing for 'Aframework.framework'


Aframework is the Pod(s) in question (the error displays multiple times and points to several pod files). I had no issues with these pods last week, nor did I update them or make any changes to them. I scoured the internet trying to find a solution to this but I've gotten nowhere.


Here's what I've tried:


Completely reinstalled OSX and in that process obviously reset everything related to XCode.

Rolled back my git repo to a week ago where I am absolutely sure this was not a problem.

Deleted all pods and reinstalled them; ran pod deintegrate and pod install

Removed all provisioning profiles and certificates from the developer portal and reissued them


This leads me to believe that something has changed on Apple's side between now and when it worked last, but I don't know what, nor do I know how to fix this.

What's odd is that the app builds and works perfectly on all devices and the simulator. There are no issues at all in that area, I just can't work with my storyboards inside XCode.


Any ideas where to begin with this?

What version of Xcode? Xcode 9.3 was released a bit over a week ago, so it's possible that the change was the update from 9.2.


Incidentally, when you quoted the error message:


Failed to render and update auto layout status for *MyViewController* (6jf-cd-DYU) dlopen (AFramework.framework, 1): no suitable image found. Did find: Aframework.framwork: required code signature missing for 'Aframework.framework'


did you paste that or retype it? If you pasted it, then the misspelled "Aframework.fram[e]work" might be a clue as to what went wrong. If that's a typo, NVM.

Hello Quincey


Thanks for taking the time to reply.


I did write it out myself, as I anonymized the view controller class and framework name, so a typo is just me. I didn't change anything at all, so there's nowhere I could have introduced such a typo anyway.


I believe it did work on XCode 9.3, because I remember having to install 10.13.3 to install XCode, and it worked fine after that, so I'm back to square one here.

I think you're at the point where you need to submit a bug report.


Does the framework have the general appearance of being codesigned? If so, can you verify the codesigning using the 'codesign' command line tool. (I think that's its name.)

Perhaps you're right...


I don't understand what you mean by "Does the framework have the general appearance of being codesigned?" I've never made any changes to codesigning for Pods, and as I mentioned this error points to more than just one Pod framework. It's multiple errors.

It turns out this is related to the cocoapods version used. Please see https://github.com/CocoaPods/CocoaPods/issues/7606

Downgrading to 1.4 fixed the issue for now.

Even if you are not using cocoapods, if you are using your own framework and IBDesignable it wont load unless you set:


CODE_SINING_REQUIRED = "";


in your pbxproj file for the framework or it wont work...


Gitgub issue that explains it:

https://github.com/CocoaPods/CocoaPods/issues/7606

IBDesignables, no suitable image, required code signature missing
 
 
Q