Tab*_*kov 14 ios swift xcode12
更新到 Xcode 12 后,项目在模拟器上构建时给了我这个错误:
Could not find module 'FrameworkName' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64
Run Code Online (Sandbox Code Playgroud)
该框架与 cocoapods 一起安装。它适用于 Xcode 11。使用 Xcode 12 在“任何 iOS 设备”或真正的 iPhone 上构建也可以正常工作。Xcode 12 有什么不同?
Met*_*ete 13
我通过确保构建设置VALID_ARCHS(现在出现在 Xcode 12 中构建设置的底部)包含“ x86_64”来解决这个问题。
那是:
VALID_ARCHS = arm64, arm64eVALID_ARCHS = arm64, arm64e, x86_64(有点违反直觉,因为错误消息说它找不到arm64-apple-ios-simulator的模块,:shrug:)
| 归档时间: |
|
| 查看次数: |
9169 次 |
| 最近记录: |