Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not support Swift if #available(iOS 15, *) #44

Open
lijunW opened this issue Oct 6, 2024 · 0 comments
Open

could not support Swift if #available(iOS 15, *) #44

lijunW opened this issue Oct 6, 2024 · 0 comments

Comments

@lijunW
Copy link

lijunW commented Oct 6, 2024

create a new project, just add this code:

override func viewDidLoad() {
    super.viewDidLoad()
    if #available(iOS 15, *) {

    }
}

or within swift package Alamofire(5.9.1) and some other swift package like SwifterSwift、Nuke

DeClang (version: swift5.10-v1.0.0)
(Xcode 15.4)

build error:
Undefined symbols for architecture arm64:
"___isPlatformVersionAtLeast", referenced from:
Swift._stdlib_isOSVersionAtLeast_AEIC(Builtin.Word, Builtin.Word, Builtin.Word) -> Builtin.Int1 in ViewController.o
Swift._stdlib_isOSVersionAtLeast_AEIC(Builtin.Word, Builtin.Word, Builtin.Word) -> Builtin.Int1 in Alamofire.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant