[英]React Native iOS build fails - Mac M1
I created a react-native project and added Firebase libraries to it.我创建了一个 react-native 项目并向其中添加了 Firebase 库。 After which when i try
npx react-native run-ios
the build fails with below message.之后,当我尝试
npx react-native run-ios
时,构建失败并显示以下消息。
CompileSwift normal x86_64 (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
I tried pod clean and pod install, pod deintegrate
etc. Cleaned the xcode rm -rf ~/Library/Developer/Xcode/DerivedData
Nothing works, my React Native version 0.64.3
我尝试了
pod clean and pod install, pod deintegrate
等。清理了 xcode rm -rf ~/Library/Developer/Xcode/DerivedData
没有任何效果,我的React Native version 0.64.3
Restarted my laptop as well:)也重新启动了我的笔记本电脑:)
Try to add arm64 architecture to debug mode.尝试将 arm64 架构添加到调试模式。 Targets -> Build Settings -> Excluded Architectures -> Any IOS Simulator SDK
Targets -> Build Settings -> Excluded Architectures -> Any IOS Simulator SDK
After cleaning the project, try the following command and let me know how it goes.清理项目后,尝试以下命令,让我知道它是如何进行的。
arch -x86_64 react-native run-ios
I have the same issue, did anyone solved this?我也有同样的问题,请问有人解决了吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.