Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7.0 XCTest dyld: could not load inserted library IDEBundleInjection

Tags:

I'm running unit tests on my iOS project and when it's running, it crashes and spits this out:

dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found.  Did find: /private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection: mmap() error 1 at address=0x00436000, size=0x00004000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Data/Application/1CAB64C8-D730-427B-8E9E-BD5E152ACFD6/tmp/IDEBundleInjection.framework/IDEBundleInjection 

I'm using XCode 7.0 and testing on an iPod running iOS 8.3. I have deleted the derived data and I've restarted XCode and it still hasn't worked.

like image 457
FireDragonMule Avatar asked Sep 04 '15 20:09

FireDragonMule


2 Answers

I fixed this by just creating a new UnitTest target, copying everything over, and removing the old one.

like image 136
FireDragonMule Avatar answered Oct 06 '22 00:10

FireDragonMule


In General Panel , not leave the Team to "None"

enter image description here

At Same time : select the code sign in Build Setting->Code Signing-> Code Signing Identity

like image 45
taojigu Avatar answered Oct 06 '22 01:10

taojigu