[英]Error 'compile swift source files (arm64)' when building project with Xcode 13
NOTE: I know that there are many answers related to these questions, but I've tried each of them, and when I am not able to resolve it with those, I am posting question here.注意:我知道有很多与这些问题相关的答案,但我已经尝试了每一个,当我无法解决这些问题时,我会在这里发布问题。 Hence, I request you not to mark it as a duplicate.
因此,我要求您不要将其标记为重复。
I am developing an app with Xcode 13.0 (13A233) on Macbook with an M1 chip.我正在使用 M1 芯片的 Macbook 上使用 Xcode 13.0 (13A233) 开发应用程序。 After updating pods to the latest version, the pods are complaining about error
将 pod 更新到最新版本后,pod 抱怨错误
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Alamofire' from project 'Pods') CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler(在项目'Pods'的目标'Alamofire'中)
and not building for either real devices or simulators.而不是为真实设备或模拟器构建。
I'm including the following pods in the project:我在项目中包含以下 pod:
I've already applied the following solutions for the main project and all pods projects:我已经为主项目和所有 pod 项目应用了以下解决方案:
You can see Error details on this screenshot.您可以在此屏幕截图中查看错误详细信息。
Any quick response with a proper solution will be much appreciated.任何具有适当解决方案的快速响应将不胜感激。 Thank you!
谢谢!
Remaining solution剩余溶液
1.Remove any architecture related run script from your project of Project target 1.从项目目标的项目中删除任何与架构相关的运行脚本
2.Uninstall and install pods 2.卸载和安装pods
Same issue.同样的问题。
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'lottie-ios' from project 'Pods') export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk CompileSwiftSources 普通 arm64 com.apple.xcode.tools.swift.compiler(在项目“Pods”的目标“lottie-ios”中)导出 DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SDKROOT=/Applications/Xcode.app /Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk
Finally, I was able to figure out the issue, and it was related to the version of the pod that was being used in code.最后,我能够找出问题所在,这与代码中使用的 pod 的版本有关。
So, If you're still experiencing the same, I recommend to:因此,如果您仍然遇到相同的情况,我建议您:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.