Xcode中的博览会构建错误:compileswiftsources普通am64 com.apple.xcode.tools.tools.swift.compiler
我正在尝试运行一个博览会构建,以便可以在Xcode Simulator中使用它。
我正在MacBook M1芯片上运行。
我只是从Xcode打开了Expo文件夹,然后尝试单击“运行”按钮,我会收到以下错误:
Build fails with the below errors
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'lottie-react-native' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-menu' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-launcher' from project 'Pods')
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/username/Library/Developer/Xcode/DerivedData/appname/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-84523FB004E42E06A56C6DE861F4376B.sh (in target 'FBReactNativeSpec' from project 'Pods')
在以下解决方案选项中尝试,但似乎无法
- 重新安装POD文件及其软件包,
- 不包括ARM64 Arch不包括Arm64 Arch从XCode的项目
- 更改拱门到标准体系结构(包括64位)(ARMV7,ARMV7,ARM64)
- POD更新,POD分解,POD
- 通过Rosetta安装Xcode,通过Rosetta更改pod in Code in Code in Code in Code in Code in Code in Code in Code to Arm64
版本: NPM版本-6.14.17 节点版-V14.19.2 世博版-5.4.3 React-native版本-7.0.3
I am trying to run an expo build so that I can use it in the XCode simulator.
I am running on a Macbook M1 chip.
I have simply opened the Expo folder from xCode, then try to click on the run button and I get the following error:
Build fails with the below errors
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'lottie-react-native' from project 'Pods')
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-menu' from project 'Pods')
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'expo-dev-launcher' from project 'Pods')
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/username/Library/Developer/Xcode/DerivedData/appname/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-84523FB004E42E06A56C6DE861F4376B.sh (in target 'FBReactNativeSpec' from project 'Pods')
Tried below resolution options but doesn't seem to work
- Re-installation of pod file and its packages,
- Excluding the arm64 arch from project in xcode
- Changing the arch to Standard architectures (including 64-bit) (armv7, armv7s, arm64)
- pod update, pod disintegrate, pod install
- open Xcode via rosetta, change the arch in pod file in code to arm64
Versions:
npm version - 6.14.17
node version - v14.19.2
expo version -5.4.3
react-native version- 7.0.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论