运行react-native run-ios显示错误

时间:2019-02-16 06:35:20

标签: ios react-native

在运行react-native run-ios时出现构建失败的错误

    Analyze /Users/eshantb/echoes2/node_modules/react-native/React/Base/RCTConvert.m normal x86_64 (in target: React)
    cd /Users/eshantb/echoes2/node_modules/react-native/React
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/eshantb/echoes2/ios/build/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/eshantb/echoes2/ios/build/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wmissing-prototypes -Werror=return-type -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 -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wshadow -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 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DRCT_DEBUG=1 -DRCT_DEV=1 -DRCT_NSASSERT=1 -DRCT_METRO_PORT=8081 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang nullability:NoDiagnoseCallsToSystemHeaders=true -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checker -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote /Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I/Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I/Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-all-target-headers.hmap -iquote /Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I/Users/eshantb/echoes2/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/eshantb/echoes2/node_modules/react-native/third-party/boost_1_63_0 -I/Users/eshantb/echoes2/node_modules/react-native/third-party/folly-2018.10.22.00 -I/Users/eshantb/echoes2/node_modules/react-native/third-party/glog-0.3.5/src -I/Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/DerivedSources -Wextra -Wall -Wno-semicolon-before-method-body -F/Users/eshantb/echoes2/ios/build/Build/Products/Debug-iphonesimulator -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -MMD -MT dependencies -MF /Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTConvert.d --analyze /Users/eshantb/echoes2/node_modules/react-native/React/Base/RCTConvert.m -o /Users/eshantb/echoes2/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/StaticAnalyzer/React/React/normal/x86_64/RCTConvert.plist
error: PCH was compiled with module cache path '/Users/eshantb/AcharyaApp/ios/build/ModuleCache.noindex/3LKJ6B5EN5KJX', but the path is currently '/Users/eshantb/echoes2/ios/build/ModuleCache.noindex/3LKJ6B5EN5KJX'
1 error generated.
Command Analyze failed with a nonzero exit code


** BUILD FAILED **


The following build commands failed:

    Analyze /Users/eshantb/echoes2/node_modules/react-native/React/Base/RCTConvert.m normal x86_64
(1 failure)

0 个答案:

没有答案