yarn ios、构建失败、iOS 模拟器部署目标、跳过重复构建文件以及签名功能和功能可能无法正常工作



在尝试运行yarn ios时,我收到以下错误:

** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User] Generate Specs /Users/username/Library/Developer/Xcode/DerivedData/BuildName-faygufgdsrfglcfahsrkkmtauupe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-0C35A2F56EF75176BBFC7752C41EE8DC.sh
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.

我得到这些错误:

warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-Glog' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.4, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-PeerTalk' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'boost-for-react-native' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'YogaKit' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-DoubleConversion' from project 'Pods')

也得到这个错误:

warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the project name editor. (in target 'project name' from project 'project name')
warning: Skipping duplicate build file in Compile Sources build phase: /Users/...../node_modules/react-native/React/FBReactNativeSpec/..../node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm (in target 'FBReactNativeSpec' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase: /Users/.../node_modules/react-native/React/FBReactNativeSpec/..../node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h (in target 'FBReactNativeSpec' from project 'Pods')
** BUILD FAILED **

The following build commands failed:
PhaseScriptExecution [CP-User] Generate Specs /Users/..../Library/Developer/Xcode/DerivedData/...-faygufgdsrfglcfahsrkkmtauupe/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-0C35A2F56EF75176BBFC7752C41EE8DC.sh
(1 failure)

我跑了";纱线起始";。我安装了XCode。我做了

sudo gem install cocoapods 
pod install

有什么想法吗?Thnx

有必要先安装XCode b4,然后执行所有这些步骤,如:

npx react-native init TikTok
yarn start 
yarn ios

我没有安装XCode&在经历了所有这些步骤之后尝试安装它&得到了上面列出的所有错误。

我最终重新开始了&刚刚运行

npx react-native init TikTok
yarn start 
yarn ios

在另一个文件夹&它解决了的问题

最新更新