Reputation: 153
I try to run a simple test.
Everything is fine in the simulator, when i run on the device, emerge following error:
The Log is "dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found. Did find: /private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection: code signature invalid for '/private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection' "
I tried to make Clean & Build and remove derived data, it didn't help me.
I appreciate any tips or helps
Upvotes: 8
Views: 2055
Reputation: 1
I struggled with this problem for the whole afternoon and finally found my solution. Yes it is about the certificates again.
I heard the news that Apple's world developer relations certificate expired but never realized it'll become a problem until now.
In my keychain all the developer identifies appeared with the red status as "This certificate was signed by an unknown authority".
So the solutions is, go to http://www.apple.com/certificateauthority/ and download "Worldwide Developer Relations - G2 Certificate", import it into your keychain, check the status of your developer identity certificate and if it turns green (valid), the unit testing problem should be fixed.
Upvotes: 0
Reputation: 1276
This was due to me changing my appleID password. If you sign back in Xcode -> Preferences -> Accounts, this fixes the problem.
Upvotes: 2