Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 

When library calling iOS Version unsupported API

Library iOS Deployment Target must to set minimum supported Version

The Example App minimum supported Version iOS 8

Library iOS Deployment Target is Default (the last iOS Version)

Problem:

  1. When using iOS 8 device run this app, it will crash at init app.

    Because iOS 8 unsupport:
    - (void)openURL:(NSURL*)url options:(NSDictionary<NSString *, id> *)options completionHandler:(void (^ __nullable)(BOOL success))completion NS_AVAILABLE_IOS(10_0) NS_EXTENSION_UNAVAILABLE_IOS("");

  2. @available(iOS 10.0,*) will always true

    Because iOS Deployment Target is Default (the last iOS Version)

Solve the problem:

alt text

About

Library calling iOS Version unsupported API problem

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published