Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Cosmos.framework: required code signature missing for 'Cosmos.framework'

Open FedericoSub opened this issue 6 years ago • 25 comments

Please consider submitting the following information (if relevant):

  • Library setup method:CocoaPods
  • Version of the library. 15.0.0
  • Xcode version. 9.3
  • OS version: iOS 11.3.

After install with pod install in Storyboard set a View with custom class CosmosView but i have this error : LogBook.storyboard: error: IB Designables: Failed to render and update auto layout status for UIViewController (GJw-lE-8co): dlopen(Cosmos.framework, 1): no suitable image found. Did find: Cosmos.framework: required code signature missing for 'Cosmos.framework'

do you have any help?

thanks

FedericoSub avatar Apr 10 '18 10:04 FedericoSub

Hi @FedericoSub, thanks for reporting. Unfortunately I have no idea why you have those errors. I would suggest searching for those error messages on stackoverflow.

evgenyneu avatar Apr 10 '18 10:04 evgenyneu

I was facing the same problem. My problem was resolved by following these steps Delete application from mobile or simulator (wherever you are facing this issue). Close Xcode, open Terminal and enter the following command rm -rf ~/Library/Developer/Xcode/DerivedData This will remove all derived data from xcode. Open XCode, clean and run application. Hopefully, problem will be resolved.

kilirushi avatar Apr 12 '18 15:04 kilirushi

Thanks for sharing your solution, @kilirushi 👍

evgenyneu avatar Apr 12 '18 21:04 evgenyneu

:-( I tried kilirushi's procedure but same error .... what can I do ?

thanks

FedericoSub avatar Apr 13 '18 15:04 FedericoSub

@FedericoSub, I would look for solutions on stackoverflow. It looks like a common problem other people are facing.

evgenyneu avatar Apr 15 '18 01:04 evgenyneu

it is pod problem

just add this code to your pod file :

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

source : https://github.com/Skyscanner/SkyFloatingLabelTextField/issues/201#issuecomment-381915911

AliAlmezead avatar Apr 18 '18 17:04 AliAlmezead

I'm seeing this too. Wanted to document here the error: IB Designables: Failed to render and update auto layout status for LocationDetialViewController (NPJ-QS-Arv): dlopen(Cosmos.framework, 1): no suitable image found. Did find: Cosmos.framework: required code signature missing for 'Cosmos.framework'

I'm going to try the solutions above

bbookman avatar Apr 20 '18 17:04 bbookman

AliAlmezead .. WHERE in the podfile does one put this code? I've tried in about 5 different places. Can you show the code in the context of a full podfile?

bbookman avatar Apr 20 '18 17:04 bbookman

kilirushi's answer worked for me..

Close Xcode, open Terminal and enter the following command rm -rf ~/Library/Developer/Xcode/DerivedData This will remove all derived data from xcode. Open XCode, clean and run application. Hopefully, problem will be resolved.

bbookman avatar Apr 20 '18 17:04 bbookman

thanks AliAlmezead well done it's works for me. thanks everyone.

FedericoSub avatar Apr 20 '18 20:04 FedericoSub

Anyone know if switching to Carthage fixes this .. since someone mentioned it was a pod problem

bbookman avatar Apr 22 '18 18:04 bbookman

@bbookman this what I did :

  • first of all push your change to GitHub/or what you are use

  • close Xcode and delete DerivedData

  • open Podfile in your project , I added it before do target like this:

use_frameworks!
platform :ios, '9.0'

pod 'Cosmos', '~> 15.0' 

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

target 'yourTargetName' do
end

  • then in comand line do :
       $ cd toYourProjectPath 
       $ pod update 

good luck

AliAlmezead avatar Apr 22 '18 18:04 AliAlmezead

Thank you so much for this!

MorganBerger avatar May 14 '18 17:05 MorganBerger

Hi @bbookman , thanks for that it worked for me also.

One question though: do you need to leave that in the pod file forever, or is it just a once off and I can delete it once the problem is fixed?

Thanks

ntkon avatar May 17 '18 04:05 ntkon

@ntkon I've left it in there. As far as i can tell there is no reason to change the podfile. Think about it this way, if you every had to update Cosmos you would probably have to have the statement in the podfile .. assuming this doesn't get fixed. so why not keep it there

bbookman avatar May 17 '18 22:05 bbookman

@bbookman thanks, much appreciated.

ntkon avatar May 17 '18 22:05 ntkon

@AliAlmezead Thank you very much. It worked for me.

tamdragle avatar May 18 '18 02:05 tamdragle

Thank U!!!!!! I solved it!!!!!

KwonMinha avatar Jul 06 '18 19:07 KwonMinha

when i am importing ibdesignable class in some podfile like JVFloatlabelTextField and cosmosview. Add 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 what is this? what is purpose of this comment

charu3308 avatar Jul 19 '18 09:07 charu3308

AliAlmezead Thanks. It worked for me

LeThinh2511 avatar Aug 18 '18 07:08 LeThinh2511

So, the solution by AliAlmezead worked. But what does the script in pod file does, BTW? I think it just disables Code Signing, i guess?

AwaisFayyaz avatar Aug 20 '18 08:08 AwaisFayyaz

@AliAlmezead Thank you very much. It worked for me. (2)

jmatiasn avatar Sep 04 '18 13:09 jmatiasn

Help me please, In Xcode 10 i this solution is not working anymore.

bamz3r avatar Sep 26 '18 07:09 bamz3r

@bbookman this what I did :

  • first of all push your change to GitHub/or what you are use
  • close Xcode and delete DerivedData
  • open Podfile in your project , I added it before do target like this:
use_frameworks!
platform :ios, '9.0'

pod 'Cosmos', '~> 15.0' 

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

target 'yourTargetName' do
end
  • then in comand line do :
       $ cd toYourProjectPath 
       $ pod update 

good luck

thanx brother @AliAlmezead its working for me

Ali-Aqdas avatar Nov 05 '18 15:11 Ali-Aqdas

@bbookman this what I did :

  • first of all push your change to GitHub/or what you are use
  • close Xcode and delete DerivedData
  • open Podfile in your project , I added it before do target like this:
use_frameworks!
platform :ios, '9.0'

pod 'Cosmos', '~> 15.0' 

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

target 'yourTargetName' do
end
  • then in comand line do :
       $ cd toYourProjectPath 
       $ pod update 

good luck

Thanks man. You can add Clean Build. It will show stars in the IB.

MostafaBelihi avatar Mar 03 '19 07:03 MostafaBelihi