如今,每当我创建一个新项目时,react native init ProjectName
创建后,我会安装npx pod
,然后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并从那里运行应用程序,那么应用程序就会运行。
问题是,您在文件夹中创建的项目的名称包含空格,例如:“React Native”,将文件夹重命名为“React Native”,然后重新运行命令npx React Native run ios
,这就足够了。
当您执行命令npx react native run ios时,它可能会为您创建一个新文件夹,您必须删除自动生成的文件夹,并将开始时重命名的文件夹保留为“react native”。删除自动生成的文件夹后,再次运行命令:npx react native run ios
请记住:不要在名称之间包含空格的文件夹中创建React Native项目。
我希望能有所帮助。问候语。
我正在m1上运行我的React Native应用程序,我的问题是nvm
,我设置了默认别名
。我只是运行nvm unalias default
,它解决了问题。
我已经在MacOS M1 Big Sur上尝试解决这个问题好几天了。没有其他人的精确解对我有效,所以我要描述一下我是如何得到我的解的。希望这个过程能帮助其他人找到适合他们的方法。
一切(对我来说)都需要在Rosetta中运行。确保Xcode在Rosetta中运行。确保您的终端在Rosetta中运行。确保pod
、yarn
、npm
,无论您使用什么,都运行x86版本,而不是arm64版本。确保您使用x86版本而不是arm64版本运行yarn install
/npm install
/pod install
。
要澄清arm64与x86的区别,您应该询问您的终端哪个纱线
,哪个节点
,哪个npm
,哪个pod
,以查看这些可执行文件的完整路径。由于安装node的方法太多,这一点很复杂。我通过自制安装了node,下面的路径反映了这一点。
对于x86上的自制(在罗塞塔终端运行),您应该看到:
$ which node
/usr/local/homebrew/bin/node
$ which yarn
/usr/local/homebrew/bin/yarn
$ which npm
/usr/local/homebrew/bin/npm
注意/usr/local/homebrew/bin
。如果你没有在Rosetta终端上运行,你会看到/opt/homebrew/bin
。如果你在任何地方看到/opt/homebrew/bin
,那就是一个危险信号。
另一个陷阱,很容易落入。。。我当时在带有x86节点的罗塞塔终端,但我意识到我的全局纱线
安装是/opt/homebrew/bin/warn
。我正在用arm64 Thread进行纱线安装
,这可能会导致依赖性出现问题。
说真的,把上面所有的命令都作为一种理智的检查来运行。
事情还是不顺利。Xcode中也出现了同样的错误,一些FBReactNativeSpec上出现了神秘的PhaseScriptExecution
错误。构建/脚本-********。sh。我打开了Script-********。sh
,并看到它调用了节点_modules/react native/scripts/generate specs。sh
,这又调用了另一个脚本查找节点。sh
。
查找节点。sh
引导我找到了我的问题。我把“echo”调试语句放在上面,然后运行find node。sh
直接查看打印内容。果然,这只抓到了一些东西:
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
echo "AM I GOING CRAZY?"
. "$(brew --prefix nvm)/nvm.sh"
fi
我不知道这个脚本在做什么,但回到我的终端,我运行了ech$(brew--prefix nvm)
,它输出/usr/local/hombrew/opt/nvm
。显然,react-local
脚本正在根据其查找nvm
做出某种决定。
我根本不想nvm
成为我等式的一部分;我没用。因此,在Rosetta终端和Terminal中,我brew卸载nvm
。
回到XCode,清理构建文件夹,重新构建,它就可以工作了。
对于许多人来说,这不是一个令人满意的答案,因为这些确切的步骤可能对你不起作用。没有其他人的精确步骤对我有效。
在阅读了这个问题的几十个解决方案后,似乎它们中的大多数都有与节点版本/路径/架构相关的原因。我希望这个答案能给你一些工具来自己调查。即:
哪个节点/纱线/npm
指向正确的x86路径
node_模块
node_模块/react native/scripts/find node。sh
查看您是否在环境中遇到任何无关的节点问题
新建一个React Native工程,参考React Native 官网 react-native init hello cd hello yarn add baidumobstat-react-native react-native link 进入新建的目录,打开ios目录下的hello.xcodeproj工程,在iOS工程的Linked Frameworks and Libr
使用 react native 和 socket.io 开发的模仿微信聊天的 app,后台使用 node 和 moogodb,目前还在开发中。 已完成的功能 登录 注册 通讯录 两人文字聊天 下拉获取聊天历史记录 未读消息提示 正在开发的功能 朋友圈 多人聊天 用户管理 系统设置 语音聊天 发送图片 效果展示
我试图在Xcode上构建我的React原生项目,但失败了。构建目标是react-native-config,错误为:运行自定义shell脚本'[CP-User]Config codegen'“command PhaseScriptExecution failed with a nonzero exit code”。 尝试使用--verbose运行它,我得到以下结果: 以下构建命令失败:PhaseS
问题内容: 如何在ReactNative中水平和垂直居中放置文本? 我在rnplay.org中有一个示例应用程序,其中 justifyContent =“ center” 和 alignItems =“ center” 不起作用:https : **//rnplay.org/apps/AoxNKQ** 文本应居中。为什么在文本(黄色)和父容器之间的顶部留有空白? 码: 问题答案: 从‘样式删除,和
我尝试使用ReactNative CLI按照文档中的步骤构建ReactNative应用程序:文档链接 下载应用程序后,我尝试运行应用程序: -启动metro捆绑机并成功启动 它给出了以下错误消息: 错误安装应用程序失败。确保您设置了Android开发环境:https://reactnative.dev/docs/environment-setup.错误:命令失败:gradlew.bat应用程序:安
问题内容: 我试图在FlatList 上调用函数,但无法正常工作。 我在最后打电话给我,它没有更新。我想稍后在无限滚动中使用此逻辑,但现在无法使其工作。 问题答案: 您在FlatList中寻找的属性是onEndReachedThreshold而不是onEndThreshold。