Skip to content

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

Description

@lijunW

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions