Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages