I unexpectedly encounter an error while testing my iOS 10 application in Xcode 8.
dyld: could not load inserted library '__PLATFORMS__/iPhoneOS.platform/Developer/Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection' because image not found
Application tests have been successfully completed previously. Then I deleted the skeleton UI Test Case class that was created with the project, so this can cause a problem (somehow). Since then, I recreated this class, but the problem remains.
What exactly the error message indicates and how I can solve this problem, that is, successfully run the application module tests again.
UPDATE There should be a different root case: if I create another (empty) Single View application project in Xcode and run its unit tests, the same error occurs.
The error occurs only when performing unit tests on the device, and not on simulators.
UPDATE This Apple response to a similar report suggests that the error is due to code signing. The application itself works fine on one device, since there may be a problem with fake code in my case?
source share