Skip to content

Library calling iOS Version unsupported API problem

Notifications You must be signed in to change notification settings

g78101/iOSVersion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published