Xcode中的博览会构建错误:compileswiftsources普通am64 com.apple.xcode.tools.tools.swift.compiler

发布于 2025-01-28 11:06:26 字数 1524 浏览 3 评论 0原文

我正在尝试运行一个博览会构建,以便可以在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')

在以下解决方案选项中尝试,但似乎无法

  1. 重新安装POD文件及其软件包,
  2. 不包括ARM64 Arch不包括Arm64 Arch从XCode的项目
  3. 更改拱门到标准体系结构(包括64位)(ARMV7,ARMV7,ARM64)
  4. POD更新,POD分解,POD
  5. 通过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

  1. Re-installation of pod file and its packages,
  2. Excluding the arm64 arch from project in xcode
  3. Changing the arch to Standard architectures (including 64-bit) (armv7, armv7s, arm64)
  4. pod update, pod disintegrate, pod install
  5. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文