小能豆

React Native 中的 PhaseScriptExecution [CP-User] 错误

javascript

现在每次我创建一个新项目react-native init ProjectName,创建完成后npx pod-install都会react-native run-ios出现错误。我创建的每个新项目都会发生这种情况。

我不确定是否需要进行更新,但这是错误:

CompileC /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperClient.o /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperClient.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'FlipperKit' from project 'Pods')
    cd /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-ios10.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu++14 -stdlib\=libc++ -fobjc-arc -fmodules -fmodules-cache-path\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=FlipperKit -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -DFB_SONARKIT_ENABLED\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version\=2 -fobjc-legacy-dispatch -index-store-path /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Index/DataStore -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/FlipperKit/include -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Private -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Private/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-Folly -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-Glog -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-PeerTalk -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-RSocket -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Yoga -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Private/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/libevent/include -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Flipper-DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/\*\* -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/libevent/include -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Flipper-DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/libevent/include -IHeaders/Private/FlipperKit -IHeaders/Private/FlipperKit/CppBridge -IHeaders/Private/FlipperKit/FBCxxFollyDynamicConvert -IHeaders/Private/FlipperKit/FBDefines -IHeaders/Private/FlipperKit/FKPortForwarding -IHeaders/Private/FlipperKit/FlipperKitHighlightOverlay -IHeaders/Private/FlipperKit/FlipperKitLayoutPlugin -IHeaders/Private/FlipperKit/FlipperKitLayoutTextSearchable -IHeaders/Private/FlipperKit/FlipperKitNetworkPlugin -IHeaders/Private/FlipperKit/FlipperKitReactPlugin -IHeaders/Private/FlipperKit/FlipperKitUserDefaultsPlugin -IHeaders/Private/FlipperKit/SKIOSNetworkPlugin -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/DerivedSources-normal/x86_64 -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/DerivedSources/x86_64 -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/DerivedSources -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/FlipperKit -F/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -fmodule-map-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/yoga/Yoga.modulemap -DDEBUG\=1 -DFLIPPER_OSS\=1 -DFB_SONARKIT_ENABLED\=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE\=1 -DFOLLY_USE_LIBCPP\=1 -DFOLLY_HAVE_LIBGFLAGS\=0 -DFOLLY_HAVE_LIBJEMALLOC\=0 -DFOLLY_HAVE_PREADV\=0 -DFOLLY_HAVE_PWRITEV\=0 -DFOLLY_HAVE_TFO\=0 -DFOLLY_USE_SYMBOLIZER\=0 -include /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Target\ Support\ Files/FlipperKit/FlipperKit-prefix.pch -MMD -MT dependencies -MF /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperClient.d --serialize-diagnostics /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperClient.dia -c /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperClient.mm -o /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperClient.o

CompileC /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperCppBridgingConnection.o /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/FlipperKit/CppBridge/FlipperCppBridgingConnection.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'FlipperKit' from project 'Pods')
    cd /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-ios10.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu++14 -stdlib\=libc++ -fobjc-arc -fmodules -fmodules-cache-path\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=FlipperKit -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -DFB_SONARKIT_ENABLED\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version\=2 -fobjc-legacy-dispatch -index-store-path /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Index/DataStore -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/FlipperKit/include -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Private -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Private/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-Folly -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-Glog -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-PeerTalk -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Flipper-RSocket -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/Yoga -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Private/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/libevent/include -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Flipper-DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/\*\* -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/libevent/include -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Flipper-DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/libevent/include -IHeaders/Private/FlipperKit -IHeaders/Private/FlipperKit/CppBridge -IHeaders/Private/FlipperKit/FBCxxFollyDynamicConvert -IHeaders/Private/FlipperKit/FBDefines -IHeaders/Private/FlipperKit/FKPortForwarding -IHeaders/Private/FlipperKit/FlipperKitHighlightOverlay -IHeaders/Private/FlipperKit/FlipperKitLayoutPlugin -IHeaders/Private/FlipperKit/FlipperKitLayoutTextSearchable -IHeaders/Private/FlipperKit/FlipperKitNetworkPlugin -IHeaders/Private/FlipperKit/FlipperKitReactPlugin -IHeaders/Private/FlipperKit/FlipperKitUserDefaultsPlugin -IHeaders/Private/FlipperKit/SKIOSNetworkPlugin -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/DerivedSources-normal/x86_64 -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/DerivedSources/x86_64 -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/DerivedSources -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/FlipperKit -F/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -fmodule-map-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Headers/Public/yoga/Yoga.modulemap -DDEBUG\=1 -DFLIPPER_OSS\=1 -DFB_SONARKIT_ENABLED\=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE\=1 -DFOLLY_USE_LIBCPP\=1 -DFOLLY_HAVE_LIBGFLAGS\=0 -DFOLLY_HAVE_LIBJEMALLOC\=0 -DFOLLY_HAVE_PREADV\=0 -DFOLLY_HAVE_PWRITEV\=0 -DFOLLY_HAVE_TFO\=0 -DFOLLY_USE_SYMBOLIZER\=0 -include /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/Target\ Support\ Files/FlipperKit/FlipperKit-prefix.pch -MMD -MT dependencies -MF /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperCppBridgingConnection.d --serialize-diagnostics /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperCppBridgingConnection.dia -c /Users/chaudhrytalha/Documents/xCodeProjects/Learning\ React\ Native/testapp/ios/Pods/FlipperKit/iOS/FlipperKit/CppBridge/FlipperCppBridgingConnection.mm -o /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FlipperKit.build/Objects-normal/x86_64/FlipperCppBridgingConnection.o

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.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'YogaKit' from project 'Pods')
warning: no rule to process file '/Users/chaudhrytalha/Documents/xCodeProjects/Learning React Native/testapp/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/chaudhrytalha/Documents/xCodeProjects/Learning React Native/testapp/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/chaudhrytalha/Documents/xCodeProjects/Learning React Native/testapp/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' 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 'Flipper-DoubleConversion' 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: Skipping duplicate build file in Compile Sources build phase: /Users/chaudhrytalha/Documents/xCodeProjects/Learning React Native/testapp/node_modules/react-native/React/FBReactNativeSpec/Native/testapp/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/chaudhrytalha/Documents/xCodeProjects/Learning React Native/testapp/node_modules/react-native/React/FBReactNativeSpec/Native/testapp/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/chaudhrytalha/Library/Developer/Xcode/DerivedData/testapp-fdikhqqgempmsagsnliemealffwv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-6B583FC85C8A2C3CF6842DBACCA71427.sh

这是一个巨大的错误,所以我添加了最后几行。在此之前,我可以顺利运行应用程序,但最近才开始出现这种情况。

如果我打开 XCode 并从那里运行该应用程序,那么该应用程序就会运行。


阅读 31

收藏
2024-06-12

共1个答案

小能豆

似乎有几个问题导致构建失败。让我们一步步解决它们:

  1. iOS 部署目标警告:iOS 部署目标设置为 8.0 但支持范围为 9.0 至 14.4.99 的警告表明,项目设置中的部署目标太低。您应该将其至少更新为 9.0 以匹配支持范围。
  2. 无规则处理文件警告:这些警告表明您的项目中存在 Xcode 不知道如何在构建过程中处理的文件。您可能需要检查这些文件包含在您的项目中的原因以及它们是否对您的应用必不可少。如果不是,您可以将其删除或从构建过程中排除。
  3. 重复构建文件警告:您的项目中存在有关重复构建文件的警告。这通常发生在项目配置的不同部分多次包含同一个文件时。您应该删除这些重复项,以避免在构建过程中出现混淆和潜在冲突。
  4. 构建失败:主要错误消息表示在执行阶段脚本期间构建失败。这可能是由于多种原因造成的,包括脚本配置不正确、缺少依赖项或项目设置的不同部分之间存在冲突。

要解决这些问题:

  • 将项目设置中的 iOS 部署目标更新为至少 9.0。
  • 调查为什么您的项目中包含某些文件并删除任何不必要的文件。
  • 从项目配置中删除所有重复的构建文件。
  • 检查失败的阶段脚本的配置,确保其正确且所有依赖项都配置正确。

解决这些问题后,请尝试使用重建项目react-native run-ios并查看错误是否仍然存在。如果仍然存在,您可能需要提供更多信息或寻求进一步的帮助来诊断和解决问题。

2024-06-12