I have an app in the App Store whose minimum supported version is iOS 7.1.
For the next version, I've enhanced it to use the Photos framework, which was introduced in iOS 8.
In the code for the next version of the app, I've ensured that if it's running on an iOS 7 device, the new functionality is hidden.
However, when I try and run the app on my iOS 7.1 test device, it fails because I've included the Photos framework in a number of the classes, using:
#import <Photos/Photos.h>
The error I receive in Xcode is:
"dyld: Library not loaded: /System/Library/Frameworks/Photos.framework/Photos Referenced from: /var/mobile/Applications/2CA13C9B-EABC-47C3-A198-A7C703EACD59/ABCapp.app/ABCapp Reason: image not found"
Is there any way to do this at run time rather than compile time to ensure that I can still support iOS 7?
Thanks.