You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing Device via swift package, I'm unable to run my app via the simulator. I get "Build failed because Device.swiftmodule is not built for arm64, please try a run destination with a different architecture". After I got that error, a new simulator option with Rosetta appeared, but trying to build on that gave me a number of errors about "undefined symbol".
It does work fine on a real device. This is running latest macOS with Xcode 16 on an M2 Mac. Any ideas?
The text was updated successfully, but these errors were encountered:
I am also facing similar error, and build failed with Undefined symbols for architecture arm64
Unable to run on Device also. Any solution or suggestion? @kudit
iOS 18.1, MacOS 15.1.1 (24B91), Xcode Version 16.1 (16B40)
Swift 5.10
The problem was caused by duplicating the Device library dependency in my project. I had added https://github.com/kudit/Device.git (v2.6.1) in two places:
1. Directly in my project’s target.
2. Indirectly as a dependency of a private package.
This resulted in the library being included twice in the same project, causing conflicting symbols and undefined symbol errors.
To resolve the issue, I removed the direct reference to Device from my project since it was already included via my private package’s dependencies. This eliminated the duplication, and the errors were resolved.
After installing Device via swift package, I'm unable to run my app via the simulator. I get "Build failed because Device.swiftmodule is not built for arm64, please try a run destination with a different architecture". After I got that error, a new simulator option with Rosetta appeared, but trying to build on that gave me a number of errors about "undefined symbol".
It does work fine on a real device. This is running latest macOS with Xcode 16 on an M2 Mac. Any ideas?
The text was updated successfully, but these errors were encountered: