Xcode 归档构建失败,React Native 项目

7

最新的React / React-Native更新。 自从今天早上开始,我就再也没有将我的应用程序部署到AppleStore上的问题。 我已经为此挣扎了几个小时。当我尝试进行Product->Archive操作时,这里是我得到的错误消息:

Ld /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/IntermediateBuildFilesPath/LesSherpas.build/Release-iphoneos/LesSherpas.build/Objects-normal/arm64/LesSherpas normal arm64 (in target: LesSherpas)
    cd /Users/angeliquesherpa/Terry/sherpas_mobile_app/ios
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos -F/Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos -filelist /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/IntermediateBuildFilesPath/LesSherpas.build/Release-iphoneos/LesSherpas.build/Objects-normal/arm64/LesSherpas.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/IntermediateBuildFilesPath/LesSherpas.build/Release-iphoneos/LesSherpas.build/Objects-normal/arm64/LesSherpas_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos -Xlinker -final_output -Xlinker /Applications/LesSherpas.app/LesSherpas -fobjc-arc -fobjc-link-runtime -ObjC -lc++ /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTBlob.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTAnimation.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libReact.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTActionSheet.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTGeolocation.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTImage.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTLinking.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTNetwork.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTSettings.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTText.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTVibration.a /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/BuildProductsPath/Release-iphoneos/libRCTWebSocket.a -lRNVectorIcons -lRNImagePicker -lRCTOneSignal -lFastImage -lRNGestureHandler -lBVLinearGradient -Xlinker -dependency_info -Xlinker /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/IntermediateBuildFilesPath/LesSherpas.build/Release-iphoneos/LesSherpas.build/Objects-normal/arm64/LesSherpas_dependency_info.dat -o /Users/angeliquesherpa/Library/Developer/Xcode/DerivedData/LesSherpas-exmzjsfkzoxzwcehsbzxjyhztxsa/Build/Intermediates.noindex/ArchiveIntermediates/LesSherpas/IntermediateBuildFilesPath/LesSherpas.build/Release-iphoneos/LesSherpas.build/Objects-normal/arm64/LesSherpas

Undefined symbols for architecture arm64:
  "_JSObjectGetPrototype", referenced from:
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSObjectSetPrototype", referenced from:
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSPropertyNameAccumulatorAddName", referenced from:
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::HostObjectProxy::getPropertyNames(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSPropertyNameAccumulator*) in libReact.a(JSCRuntime.o)
  "_JSObjectCopyPropertyNames", referenced from:
      facebook::jsc::JSCRuntime::getPropertyNames(facebook::jsi::Object const&) in libReact.a(JSCRuntime.o)
  "_JSContextGetGlobalObject", referenced from:
      facebook::jsc::JSCRuntime::global() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSValueMakeString", referenced from:
      facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSValueIsNumber", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSClassCreate", referenced from:
      void std::__1::__call_once_proxy<std::__1::tuple<facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::$_0&&> >(void*) in libReact.a(JSCRuntime.o)
      void std::__1::__call_once_proxy<std::__1::tuple<facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::$_1&&> >(void*) in libReact.a(JSCRuntime.o)
  "_JSObjectGetPropertyAtIndex", referenced from:
      facebook::jsc::JSCRuntime::getValueAtIndex(facebook::jsi::Array const&, unsigned long) in libReact.a(JSCRuntime.o)
  "_JSObjectMakeArray", referenced from:
      facebook::jsc::JSCRuntime::createArray(unsigned long) in libReact.a(JSCRuntime.o)
  "_JSEvaluateScript", referenced from:
      facebook::jsc::JSCRuntime::evaluateJavaScript(std::__1::unique_ptr<facebook::jsi::Buffer const, std::__1::default_delete<facebook::jsi::Buffer const> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libReact.a(JSCRuntime.o)
  "_JSValueIsUndefined", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSPropertyNameArrayGetCount", referenced from:
      facebook::jsc::JSCRuntime::getPropertyNames(facebook::jsi::Object const&) in libReact.a(JSCRuntime.o)
  "_JSPropertyNameArrayGetNameAtIndex", referenced from:
      facebook::jsc::JSCRuntime::getPropertyNames(facebook::jsi::Object const&) in libReact.a(JSCRuntime.o)
  "_JSPropertyNameArrayRelease", referenced from:
      facebook::jsc::JSCRuntime::getPropertyNames(facebook::jsi::Object const&) in libReact.a(JSCRuntime.o)
  "_JSValueMakeUndefined", referenced from:
      facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::HostObjectProxy::getProperty(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSString*, OpaqueJSValue const**) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::call(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) in libReact.a(JSCRuntime.o)
  "_JSValueMakeNull", referenced from:
      facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
  "_JSStringCreateWithUTF8CString", referenced from:
      facebook::jsc::JSCRuntime::evaluateJavaScript(std::__1::unique_ptr<facebook::jsi::Buffer const, std::__1::default_delete<facebook::jsi::Buffer const> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::makeStringValue(OpaqueJSString*) const in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createPropNameIDFromAscii(char const*, unsigned long) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createPropNameIDFromUtf8(unsigned char const*, unsigned long) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createStringFromUtf8(unsigned char const*, unsigned long) in libReact.a(JSCRuntime.o)
      facebook::jsc::(anonymous namespace)::getLengthString() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
      ...
  "_JSObjectSetProperty", referenced from:
      facebook::jsc::JSCRuntime::setPropertyValue(facebook::jsi::Object&, facebook::jsi::PropNameID const&, facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::setPropertyValue(facebook::jsi::Object&, facebook::jsi::String const&, facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createArray(unsigned long) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSObjectHasProperty", referenced from:
      facebook::jsc::JSCRuntime::hasProperty(facebook::jsi::Object const&, facebook::jsi::String const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::hasProperty(facebook::jsi::Object const&, facebook::jsi::PropNameID const&) in libReact.a(JSCRuntime.o)
  "_kJSClassDefinitionEmpty", referenced from:
      void std::__1::__call_once_proxy<std::__1::tuple<facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::$_0&&> >(void*) in libReact.a(JSCRuntime.o)
      void std::__1::__call_once_proxy<std::__1::tuple<facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::$_1&&> >(void*) in libReact.a(JSCRuntime.o)
  "_JSObjectIsFunction", referenced from:
      facebook::jsc::JSCRuntime::isFunction(facebook::jsi::Object const&) const in libReact.a(JSCRuntime.o)
  "_JSValueIsBoolean", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSValueIsInstanceOfConstructor", referenced from:
      facebook::jsc::JSCRuntime::instanceOf(facebook::jsi::Object const&, facebook::jsi::Function const&) in libReact.a(JSCRuntime.o)
  "_JSValueIsObjectOfClass", referenced from:
      facebook::jsc::JSCRuntime::isHostObject(facebook::jsi::Object const&) const in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::isHostFunction(facebook::jsi::Function const&) const in libReact.a(JSCRuntime.o)
  "_JSValueToNumber", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSGlobalContextRelease", referenced from:
      facebook::jsc::JSCRuntime::~JSCRuntime() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
  "_JSValueToBoolean", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSValueIsArray", referenced from:
      facebook::jsc::JSCRuntime::isArray(facebook::jsi::Object const&) const in libReact.a(JSCRuntime.o)
  "_JSValueMakeNumber", referenced from:
      facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createArray(unsigned long) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSObjectSetPrivate", referenced from:
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::HostObjectProxy::finalize(OpaqueJSValue*) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::finalize(OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSValueIsNull", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSObjectSetPropertyAtIndex", referenced from:
      facebook::jsc::JSCRuntime::setValueAtIndexImpl(facebook::jsi::Array&, unsigned long, facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
  "_JSValueIsObject", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSValueMakeBoolean", referenced from:
      facebook::jsc::JSCRuntime::valueRef(facebook::jsi::Value const&) in libReact.a(JSCRuntime.o)
  "_JSValueUnprotect", referenced from:
      facebook::jsc::JSCRuntime::JSCObjectValue::invalidate() in libReact.a(JSCRuntime.o)
  "_JSValueToStringCopy", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSObjectGetProperty", referenced from:
      facebook::jsc::JSCRuntime::getProperty(facebook::jsi::Object const&, facebook::jsi::String const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::getProperty(facebook::jsi::Object const&, facebook::jsi::PropNameID const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSValueToObject", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSObjectGetPrivate", referenced from:
      facebook::jsc::JSCRuntime::getHostObject(facebook::jsi::Object const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::getHostFunction(facebook::jsi::Function const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::HostObjectProxy::finalize(OpaqueJSValue*) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::HostObjectProxy::getProperty(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSString*, OpaqueJSValue const**) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::HostObjectProxy::setProperty(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSString*, OpaqueJSValue const*, OpaqueJSValue const**) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::HostObjectProxy::getPropertyNames(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSPropertyNameAccumulator*) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
      ...
  "_JSGlobalContextRetain", referenced from:
      facebook::jsc::JSCRuntime::JSCRuntime(OpaqueJSContext*) in libReact.a(JSCRuntime.o)
  "_JSStringRelease", referenced from:
      facebook::jsc::JSCRuntime::evaluateJavaScript(std::__1::unique_ptr<facebook::jsi::Buffer const, std::__1::default_delete<facebook::jsi::Buffer const> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::JSCStringValue::invalidate() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createPropNameIDFromAscii(char const*, unsigned long) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createPropNameIDFromUtf8(unsigned char const*, unsigned long) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSStringIsEqual", referenced from:
      facebook::jsc::JSCRuntime::compare(facebook::jsi::PropNameID const&, facebook::jsi::PropNameID const&) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::strictEquals(facebook::jsi::String const&, facebook::jsi::String const&) const in libReact.a(JSCRuntime.o)
  "_JSStringGetMaximumUTF8CStringSize", referenced from:
      facebook::jsc::(anonymous namespace)::JSStringToSTLString(OpaqueJSString*) in libReact.a(JSCRuntime.o)
  "_JSObjectCallAsFunction", referenced from:
      facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) in libReact.a(JSCRuntime.o)
  "_JSStringGetUTF8CString", referenced from:
      facebook::jsc::(anonymous namespace)::JSStringToSTLString(OpaqueJSString*) in libReact.a(JSCRuntime.o)
  "_JSValueProtect", referenced from:
      facebook::jsc::JSCRuntime::makeObjectValue(OpaqueJSValue*) const in libReact.a(JSCRuntime.o)
  "_JSValueIsString", referenced from:
      facebook::jsc::JSCRuntime::createValue(OpaqueJSValue const*) const in libReact.a(JSCRuntime.o)
  "_JSStringRetain", referenced from:
      facebook::jsc::JSCRuntime::makeStringValue(OpaqueJSString*) const in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>) in libReact.a(JSCRuntime.o)
  "_JSObjectMake", referenced from:
      facebook::jsc::JSCRuntime::makeObjectValue(OpaqueJSValue*) const in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>) in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>) in libReact.a(JSCRuntime.o)
  "_JSGlobalContextCreateInGroup", referenced from:
      facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
  "_JSObjectCallAsConstructor", referenced from:
      facebook::jsc::JSCRuntime::callAsConstructor(facebook::jsi::Function const&, facebook::jsi::Value const*, unsigned long) in libReact.a(JSCRuntime.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

使用react-native run-ios build也会出现以下错误:



The following commands produced analyzer issues:
    Analyze /Users/angeliquesherpa/Terry/sherpas_mobile_app/node_modules/react-native/React/Base/RCTModuleMethod.mm normal x86_64
    Analyze /Users/angeliquesherpa/Terry/sherpas_mobile_app/node_modules/react-native/Libraries/Image/RCTImageCache.m normal x86_64
    Analyze /Users/angeliquesherpa/Terry/sherpas_mobile_app/node_modules/react-native/Libraries/Network/RCTNetInfo.m normal x86_64
    AnalyzeShallow /Users/angeliquesherpa/Terry/sherpas_mobile_app/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/Vendors/libwebp/src/enc/analysis_enc.c normal x86_64
    AnalyzeShallow /Users/angeliquesherpa/Terry/sherpas_mobile_app/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/Vendors/FLAnimatedImage/FLAnimatedImage/FLAnimatedImageView.m normal x86_64
    AnalyzeShallow /Users/angeliquesherpa/Terry/sherpas_mobile_app/node_modules/react-native-fast-image/ios/Vendor/SDWebImage/Vendors/FLAnimatedImage/FLAnimatedImage/FLAnimatedImage.m normal x86_64
(6 commands with analyzer issues)

The following build commands failed:
    Ld /Users/angeliquesherpa/Terry/sherpas_mobile_app/ios/build/Build/Products/Debug-iphonesimulator/LesSherpas.app/LesSherpas normal x86_64
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/LesSherpas.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/LesSherpas.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist


Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/LesSherpas.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

    at checkExecSyncError (child_process.js:618:11)
    at Object.execFileSync (child_process.js:636:13)
    at Promise.then (/Users/angeliquesherpa/Terry/sherpas_mobile_app/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)

但实际上该应用程序在模拟器上启动了...
我尝试将react-native降级到之前的版本,删除.rncache,rm -rf node_modules,react-native start --reset-cache,清理构建项目,删除ios/build和以上所有组合。

1
你在升级之前使用的是哪个版本?你升级到了哪个版本? - Andrew
现在我正在使用0.58.5版本,之前是0.57.8。 - Jon Nimrod
你采取了哪些步骤来执行升级? - Andrew
npm i react-native@x.x.x --save - Jon Nimrod
2个回答

39
仅仅更新 react-native 的版本是不足以升级一个 react-native 应用程序的。在升级过程完成之前,必须对其他文件进行更改。查看代码在 0.57.80.58.5 之间的差异是一个好的起点。您可以通过查看 rn-diff-purge 上的 git diff 来找到这些更改。如果您查看以下链接,您将会看到除了 react-native 版本之外有更多的变化。 https://github.com/pvinis/rn-diff-purge/compare/version/0.57.8...version/0.58.5 您也可以使用社区升级助手。 https://react-native-community.github.io/upgrade-helper/?from=0.57.8&to=0.58.5 这有额外的好处,包括链接到升级教程(某些版本)和链接到更改日志。

这些更改中,有些是多余的,可能实际上不会影响应用程序的运行,而其他更改是关键的,并且必须完成。不幸的是,git diff没有告诉我们哪些是必须做的,哪些可以省略,它只告诉我们差异。我的建议是执行它建议的所有更改。

查看您正在开始和移动到的应用程序的基本版本也可能是有益的。您可以使用以下代码在特定版本上创建一个react-native应用:

react-native init newproject --version react-native@0.57.8

在react-native 0.57.80.58.5之间,Xcode项目中添加了一个重大变化,即必须将JavaScriptCore.Framework添加到Linked FrameWorks and Libraries中。

add JavaScriptCore.framework image

从上面的git diff中找出它可能有些棘手。


2
我花了很多时间来解决这个问题 - 这个答案对我有用! - alexfigtree
当添加JavaScriptCore.framework时,Xcode将其列为“iOS 12.2”。这是否意味着我在更新的React版本中将具有最低目标iOS 12.2? - jorisw
@Andrew Re:“我的建议是根据它建议的所有更改进行修改。”从 https://github.com/pvinis/rn-diff-purge/compare/version/0.57.8...version/0.58.5 显示的差异中,我不知道如何解释它们建议进行的更改。您能给我一些指导吗? - gkeenley
@Andrew 非常棒的回答和解释!我正在寻找一些好的Xcode解释,如果你愿意提供一些开源帮助的话,请随时联系我或直接在 https://github.com/react-native-community/upgrade-helper 上联系我 :D。 - pvinis
@gkeenley 目前来说,是的,那就是方法。Xcode 项目文件差异不大,需要经验才能轻松解释,但基本上是这样,您需要查看添加或删除了什么,然后转到 Xcode 并进行更改,以导致类似于升级助手中的差异。这需要对 Xcode 有一定的熟悉程度。许多人已经谈论过这个问题,我正在尝试一种方法来替换这部分内容,并将 Xcode 项目文件基本上变成锁定文件,因此最终用户(您)将不需要进行任何 Xcode 操作。 - pvinis
显示剩余2条评论

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接