简体   繁体   中英

IOS app crashes when trying to run on IO7.1(photo.framework)

Well my app works fine on all the simulators im using on Xcode6 and the Iphone 6+

When trying to run my app on an Ipad with iOS 7.1 its crashes with this error:

dyld: Library not loaded: /System/Library/Frameworks/Photos.framework/Photos
  Referenced from: /Users/Twizzeler/Library/Developer/CoreSimulator/Devices/88F53E5F-C46C-4D1B-8DF5-B858E339E841/data/Applications/5F703CF6-5172-4F6B-A4DC-ADAF99ED55E9/NoName.app/NoName
  Reason: image not found

I googled it and found the following answer: iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

This didn't work! what is the problem?

Photos.framework has been added in iOS 8, therefore is not available on iOS 7.1.

You need to "weak link" that framework to avoid the crash.

Also, on iOS 7 and lower, you should be using the ALAssetsLibrary framework instead, which has a different API.

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