Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhaseScriptExecution [CP-User] error in React Native

Nowadays everytime I create a new project react-native init ProjectName and after it is created I do npx pod-install and then react-native run-ios it gives me error. It happens with every project that I create new.

I'm not sure if there is an update that I have to do but here is the error:

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

It's a huge error so I included the last few lines. Before this, I use to run the apps smoothly but this just started recently.

If I open XCode and run the app from there then the app runs.

like image 860
Chaudhry Talha Avatar asked Mar 22 '21 07:03

Chaudhry Talha


3 Answers

I've been trying to solve this problem for days on MacOS M1 Big Sur. Nobody else's exact solution worked for me, so I'm going to describe how I came to my solution. Hopefully the process will help someone else figure out what works for them.

Everything (for me) needed to be running in Rosetta. Make sure Xcode is running in Rosetta. Make sure your Terminal is running in Rosetta. Make sure pod, yarn, npm, whatever you use, is running the x86 version, not the arm64 version. Make sure you ran yarn install/npm install/pod install with the x86 versions, not the arm64 versions.

To clarify arm64 vs. x86, you should ask your Terminal which yarn, which node, which npm, which pod to see the full path to those executables. This is complicated by there being so many ways to install node. I installed node through Homebrew, so my paths below reflect that.

For Homebrew on x86 (running in Rosetta Terminal), you should see:

$ which node
/usr/local/homebrew/bin/node
$ which yarn
/usr/local/homebrew/bin/yarn
$ which npm
/usr/local/homebrew/bin/npm

Note the /usr/local/homebrew/bin. If you're not running in Rosetta Terminal, you'll see /opt/homebrew/bin. If you're seeing /opt/homebrew/bin anywhere, it's a red flag.

Another trap, easy to fall into... I was in Rosetta Terminal with the x86 node, but I realized that my global yarn installation was /opt/homebrew/bin/yarn. I was doing yarn install with arm64 yarn, which can cause problems with your dependencies.

Seriously, run all the commands above as a sanity check.

Things still weren't working. Same error in Xcode, a mysterious PhaseScriptExecution error on some FBReactNativeSpec.build/Script-********.sh. I opened up Script-********.sh, and saw that it called node_modules/react-native/scripts/generate-specs.sh, which in turned called another script find-node.sh.

find-node.sh led me to my problem. I put "echo" debugging statements all over it, and then I ran find-node.sh directly to see what was printed. Sure enough, this one caught something:

elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
  echo "AM I GOING CRAZY?"
  . "$(brew --prefix nvm)/nvm.sh"
fi

I have no idea what this script is doing, but back in my Terminal I ran echo $(brew --prefix nvm), which output /usr/local/homebrew/opt/nvm. Clearly, the react-native script is making some kind of decision based on its finding nvm.

I don't want nvm to be part of my equation at all; I'm not using it. So in both Rosetta Terminal and Terminal, I brew uninstall nvm.

Back in XCode, clean build folder, rebuild, and it works.

This is not going to be a satisfying answer for many, as these exact steps will likely not work for you. No one else's exact steps worked for me.

After reading dozens of solutions to this problem, it seems that most of them have causes that are node version/path/architecture related. I hope this answer gives you some tools to investigate that yourself. Namely:

  1. Make sure which node/yarn/npm is pointing to the correct x86 path.
  2. Make sure you installed your node_modules with the correct x86 executable.
  3. Debug your node_modules/react-native/scripts/find-node.sh to see if you're tripping up on any extraneous node things in your environment.
like image 165
Neil Hansen Avatar answered Oct 20 '22 04:10

Neil Hansen


I'm running my React Native app on m1 and my problem was with nvm which I set the default alias. I just run the nvm unalias default and it solved the issue.

like image 30
davychhouk Avatar answered Oct 20 '22 04:10

davychhouk


The problem is because you have the project created inside a folder with a name that contains spaces, example: "React Native", rename your folder to "React-Native" and rerun the command npx react-native run-ios, that should be enough.

When you execute the command npx react-native run-ios it may create a new folder for you, you must delete the folder that was generated automatically and keep the folder that you renamed at the beginning as "React-Native". Once the automatically generated folder is deleted, run the command again: npx react-native run-ios

Remember: Do not create React Native projects inside folders that contain spaces between their names.

I hope to be helpful. Greetings.

like image 17
Angel Guillen Avatar answered Oct 20 '22 05:10

Angel Guillen