evgenyneu / Cosmos

A star rating control for iOS/tvOS written in Swift
MIT License
2.19k stars 368 forks source link

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

Open FedericoSub opened 6 years ago

FedericoSub commented 6 years ago

Please consider submitting the following information (if relevant):

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

evgenyneu commented 6 years ago

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.

kilirushi commented 6 years ago

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.

evgenyneu commented 6 years ago

Thanks for sharing your solution, @kilirushi 👍

FedericoSub commented 6 years ago

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

thanks

evgenyneu commented 6 years ago

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

AliAlmezead commented 6 years ago

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

bbookman commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.

FedericoSub commented 6 years ago

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

bbookman commented 6 years ago

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

AliAlmezead commented 6 years ago

@bbookman this what I did :

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

good luck

MorganBerger commented 6 years ago

Thank you so much for this!

ntkon commented 6 years ago

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

bbookman commented 6 years ago

@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

ntkon commented 6 years ago

@bbookman thanks, much appreciated.

tamdragle commented 6 years ago

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

KwonMinha commented 6 years ago

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

charu3308 commented 6 years ago

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

LeThinh2511 commented 6 years ago

AliAlmezead Thanks. It worked for me

AwaisFayyaz commented 6 years ago

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?

jmatiasn commented 6 years ago

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

bamz3r commented 6 years ago

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

Ali-Aqdas commented 6 years ago

@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

MostafaBelihi commented 5 years ago

@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.