-
Notifications
You must be signed in to change notification settings - Fork 848
Description
New Issue Checklist
- Updated PhoneNumberKit to the latest version
- Phone number formatted correctly on JavaScript version
- I searched for existing GitHub issues
- I am aware that this library is not responsible of adding/removing/changing phone number formats and any request should be done at libphonenumber repo
Steps to reproduce
Use a Mac with Intel or run Xcode using Rosetta
Add PhoneNumberKit via Swift Package Manager
Build a target using an iOS Simulator (e.g., iPhone 14)
Observe build failure for missing module
Expected result
The module should support x86_64-apple-ios-simulator architecture when used in iOS Simulator environments, or provide clear guidance for excluding unsupported architectures.
Actual result
Build fails due to missing module for x86_64:
Could not find module 'PhoneNumberKit' for target 'x86_64-apple-ios-simulator'
or
Could not find module 'PhoneNumberKit' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/******/Library/Developer/Xcode/DerivedData/MyVodafone-dnryquvtoeipyegynighqsyiaidm/Index.noindex/Build/Products/Debug-iphonesimulator/PhoneNumberKit.swiftmodule
Environment
SPM integration
Xcode Version: 16.3 (16E140)
macOS Version: 15.2
Architecture: x86_64 (or Apple Silicon )
PhoneNumberKit Version: [e.g., 3.5.5]
Workaround
Set EXCLUDED_ARCHS = arm64 for "Any iOS Simulator SDK" in Build Settings.
Suggested Fix
Add support for both arm64 and x86_64 simulator architectures in SPM targets or document architecture requirements more clearly.