Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - @IBDesignables - Required code signing missing for X.framework

I know similar questions has been asked before but nothing seems to work for me.

Im using CocoaPods and installing framework "X". This can be anything that can be edited directly in the Storyboard. Two examples are "MBCircularProgressBar" and "UICircularProgressRing".

Im adding it to a UIView and getting this error instantly. It messes up my storbyboard but the app is running fine.

I'm using the newest version of Xcode, newest MAC OS.

What have i tried?

  • Deleted everything in DerivedData for Xcode
  • Clean, build, refresh views ++
  • Removing the problem pods and reinstalling/trying a different one
  • Disabled "Automatic code signing" in "General" and set it manually to my company

Error at the moment shows :

Main.storyboard: error: IB Designables: Failed to render and update auto layout status for Dashboard_UsageVC (mqT-RZ-029): dlopen(MBCircularProgressBar.framework, 1): no suitable image found.  Did find:
    MBCircularProgressBar.framework: required code signature missing for 'MBCircularProgressBar.framework'

UPDATE 23.04.2018 - Still not solved

Still having this problem. I have gone to the extreme and fully reset my MAC. Reinstalled everything. Same problem. Even when downgrading CocoaPods to 1.4.0 and Xcode to previous version. To avoid pulling all my hair out Im now finishing the rest of the app where nothing special is needed and hoping for a magic solution for this closer to app release.

like image 635
MHopstad Avatar asked Apr 16 '18 07:04

MHopstad


2 Answers

It has been fixed with Cocoapods 1.5.2 (and probably 1.5.1 but I have upgrade directly from 1.5.0 to 1.5.2).

UPDATE

I may have spoken too fast. The error re-appears after a few builds.

However, this workaround seems to work (applies to Cocoapods 1.5.x) until the bug fix is merged:

  • clean your project
  • close Xcode and delete DerivedData
  • open Podfile in your project , and add this:

    post_install do |installer| installer.pods_project.build_configurations.each do |config| config.build_settings.delete('CODE_SIGNING_ALLOWED') config.build_settings.delete('CODE_SIGNING_REQUIRED') end end

  • then in command line do a:

pod update or pod install

Sources:

  • https://github.com/CocoaPods/CocoaPods/issues/7606#issuecomment-381279098
  • https://github.com/evgenyneu/Cosmos/issues/105
  • https://github.com/Skyscanner/SkyFloatingLabelTextField/issues/201#issuecomment-381915911
like image 200
Cédric Avatar answered Nov 15 '22 06:11

Cédric


Same bug for me.

For me, it cames after installing the last version cocoapods 1.5.0. So I downgraded it to 1.4.0 and the bug disappear.

sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.4.0

Hoped it will helped you too.

like image 36
Mory Avatar answered Nov 15 '22 06:11

Mory



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!