dyld error when trying to run an iOS 8 app on iPhone 5

淺唱寂寞╮ 提交于 2020-01-02 10:18:40

问题


Trying to run an app locally on a connected iPhone 5 with Xcode 6.0.1 (6A317). The app otherwise works on all other devices, but on the iPhone 5 I'm getting this error immediately after the app launches:

dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because image not found

I found this relevant Twitter post: https://twitter.com/steipete/status/473620531111919616, and have tried most of the suggestions there including:

  • rebooted the Mac & the iPhone 5
  • updated iOS to 8.0.2 from 8.0.0
  • created a new scheme to run the Release configuration as opposed to Debug
  • ensured that the correct command line tools were being used using xcode-select

None of the above worked. I only want to do an iOS restore as a last resort. Is there anything else I can try to get this working before we go the restore route?


回答1:


Rebooting device/if not simulator fixed it. iOS hasn't updated. Really bad !




回答2:


I tried everything... rebooting phone, rebooting macbook, clean and rebuild, clearing derived project data, switching Xcode versions, reinstalling XCode 6.1.1 from scratch (2.5Gb download), Xcode 5.1, Xcode 6.0, upgrade phone to IOS 8.1.2, clearing all XCode defaults (Reverting all Xcode settings to their original state), and even building multiple empty XCode iOS apps with different deployment options (iOS 7.0, iOS 8.0, iOS 8.1).

The only thing that worked for me was to restore the entire iPhone 5 with a full firmware backup.




回答3:


We solved this by deleting the project's derived data.



来源:https://stackoverflow.com/questions/26151664/dyld-error-when-trying-to-run-an-ios-8-app-on-iphone-5

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