3
votes

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?

1

1 Answers

6
votes

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.