marmelroy / PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.
MIT License
5.1k stars 810 forks source link

While building Xcode Playgrounds I get an Error: Undefined symbols for architecture x86_64: "___isPlatformVersionAtLeast" #773

Closed jerzykiler closed 1 month ago

jerzykiler commented 3 months ago

New Issue Checklist

Steps to reproduce

  1. Create iOS project.
  2. Add PhoneNumberKit to it via Swift Package Manager
  3. Create new Playground inside this project
  4. Run Playground
Expected result

Playground runs and XCode does not signal any errors

Actual result

Playground runs but XCode signals errors:

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

Undefined symbol: ___isPlatformVersionAtLeast

Linker command failed with exit code 1 (use -v to see invocation)

Environment

MacBook Pro 2018 with Intel Core i7 MacOS Sonoma 14.5 Xcode Version 15.4 (15F31d) Swift Package Manager

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.