dyld: could not load inserted library

那年仲夏 提交于 2019-12-13 01:34:24

问题


When I try to run an UI and Unit tests, I get an exception:

dyld: could not load inserted library '/private/var/containers/Bundle/Application//AutoTestingApp.app/Frameworks/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found. Did find:

dyld: Library not loaded: @rpath/XCTest.framework/XCTest

App builds with success but fails when running a test.

I already tried:

  • reinstalling Xcode
  • checking a provisioning profiles and a certificates

What am I doing wrong?


回答1:


For what it's worth, you might be able to avoid this issue by running your test on a simulator instead of the device. Also make sure you've set your profiles correctly: i.e. Xcode 7.0 XCTest dyld: could not load inserted library IDEBundleInjection



来源:https://stackoverflow.com/questions/38072873/dyld-could-not-load-inserted-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!