使用Xcode 4.5.1.我们的项目在过去的三个月里一直很好,但突然,当我尝试构建时,它说"构建失败",但没有在三角形感叹号标签上显示任何错误,它也没有给出一个原因当它弹出建立失败.
我们没有更改包标识符或任何其他项目属性.我尝试了干净,然后建立,但没有运气.
可能导致问题的原因是什么?
与此问题类似,但没有一种解决方案适用.
我有一个 Flutter 项目,我试图在 iOS 上运行。它在我的基于 Intel 的 Mac 上正常运行,但在我新的基于 Apple Silicon 的 M1 Mac 上它无法安装 pod。
LoadError - dlsym(0x7f8926035eb0, Init_ffi_c): symbol not found - /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi.rb:6:in `rescue in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi.rb:3:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/ethon-0.12.0/lib/ethon.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:74:in `cdn_url?'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:36:in `create_source_with_url'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:21:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:178:in `block in sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:177:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:177:in `sources'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1073:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:414:in …Run Code Online (Sandbox Code Playgroud) 我使用的是 MacBook Pro
我想按照本教程设置一个名为 AwesomeProject https://reactnative.dev/docs/environment-setup的新 React Native 项目,其中包含 React Native CLI 快速入门部分。
当我尝试通过键入以下内容在终端中运行应用程序时: npx react-native run-ios 我的构建失败并出现以下错误:
PhaseScriptExecution [CP-User]\生成\规格/Users/thomashuber/Library/Developer/Xcode/DerivedData/AwesomeProject-aprperxvqrezbfeyvousbagyesvr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh (在项目“Pods”的目标“FBReactNativeSpec”中)(1 次失败)
当我尝试在模拟器或 iPhone 设备上的 Xcode 中运行它时,我在FBReactNativeSpec中收到以下错误:
命令 PhaseScriptExecution 失败,退出代码非零
我运行它
/bin/sh -c /Users/thomashuber/Library/Developer/Xcode/DerivedData/AwesomeProject-aprperxvqrezbfeyvousbagyesvr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh
Run Code Online (Sandbox Code Playgroud)
我重新启动了 MacBook,删除了该项目并再次尝试。我在 Xcode 中清理了该项目,但没有任何帮助。我怀疑这是由于我的 MacBook 的 M1 芯片造成的。
我在Xcode 10.1中收到以下警告消息。
iOS Simulator部署目标设置为7.0,但是此平台支持的部署目标版本范围是8.0至12.1。
我的模拟器OS在12.1 Xcode 10.1中
然后我更新了pod文件。
我的部署目标是9.0
在我的目标
创建项目后运行 react-native run-ios 时遇到此错误
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening BoltAssignment.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace BoltAssignment.xcworkspace -configuration Debug -scheme BoltAssignment -destination id=3E598855-6D4F-4F36-BEE1-8663A1F71787
nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
nvm is not compatible with the "PREFIX" environment variable: currently set to …Run Code Online (Sandbox Code Playgroud) 每次我尝试在Xcode 10上运行我的iOS应用程序时,它都会失败,并显示错误“命令PhaseScriptExecution失败,退出代码非零”
完整的错误描述是:
bash:/ Users / Noah 1 / Library / Developer / Xcode / DerivedData / WeatherSando-dszhaqymmhxfptfiymvnuvshlbtb / Build / Products / Debug-iphoneos / WeatherSando.app / Frameworks / AerisCore.framework / strip-frameworks.sh:无此类文件或目录PhaseScriptExecution失败,退出代码非零
我从项目中删除了所有AerisWeather CocoaPods,这是怎么回事?
我一直在努力解决这个错误,一周前我换到新机器时就发生了这个错误。下面是我的机器配置 -> node、npm、yarn 等:
\nnode --version -> v16.18.1\nwhich node -> /opt/homebrew/opt/node@16/bin/node\nwhich npm -> /opt/homebrew/opt/node@16/bin/npm\nwhich yarn -> /opt/homebrew/bin/yarn\nRun Code Online (Sandbox Code Playgroud)\n我也安装了nvm。发生这种情况是否是由于yarn未指向节点安装位置所致?因为目录不同。
\n然后我尝试使用卸载纱线npm uninstall -g yarn并使用重新安装它npm install -g yarn并进入我的项目,删除节点模块,重新安装 Pod 以及所有内容,但此错误仍然存在。
我经历了这些解决方案,但没有一个真正适合我 -> React Native 中的 PhaseScriptExecution [CP-User] 错误
\n以下是我收到的构建错误:
\n/bin/sh -c /Users/username/Library/Developer/Xcode/DerivedData/project-bqzfnxmekpsgkmfaztyrfllaudqg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00047A70.sh\nNode found at: /opt/homebrew/Cellar/node/19.0.1/bin/node\n\n/Users/username/Desktop/project/ios/Pods/../../node_modules/react-native/React/FBReactNativeSpec/../../scripts/react_native_pods_utils/script_phases.sh: line 83: /opt/homebrew/Cellar/node/19.0.1/bin/node: No such file or directory\nCommand PhaseScriptExecution failed with a nonzero exit code\n\n** BUILD FAILED **\n\n\nThe following build commands failed:\n PhaseScriptExecution [CP-User]\\ Generate\\ Specs /Users/username/Library/Developer/Xcode/DerivedData/project-bqzfnxmekpsgkmfaztyrfllaudqg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00047A70.sh (in …Run Code Online (Sandbox Code Playgroud)