简体   繁体   中英

Ad-Hoc Deployment Crashing on Load

I'm attempting to distribute an iOS 7.1 app using HockeyApp. The app works perfectly well in XCode on development devices that are attached to the computer but the app crashes on load when running from an over-the-air install from Hockey.

Here's the crash log I'm getting. As you can see, it's something to do with XCTest which I assume should not be present in an adhoc build.

Dyld Error Message:
<Error>:   Library not loaded: /Developer/Library/Frameworks/XCTest.framework/XCTest
<Error>:   Referenced from: /private/var/mobile/Containers/Bundle/Application/5F261236-E8C6-4F8B-9380-34445DAA3474/MyApp.app/MyApp
Reason: image not found
Dyld Version: 353.5

I've made sure there are no references to XCTest in my application target, but I still receive this error. Have I missed something obvious?

Thanks

Turns out that XCTest was included in a rogue cocoapod. By removing this, the problem was solved.

Reason: image not found.

This seems to be that you have not copied some image in the bundle. Check all the images in the app and see that it is copied in bundle. May be you have just referenced it from some folder from MAC machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM