We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the app in Xcode reports an error when the new architecture mode is turned on.
Ld /Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Intermediates.noindex/RNApp.build/Release-iphonesimulator/RNApp.build/Objects-normal/x86_64/Binary/RNApp normal x86_64 (in target 'RNApp' from project 'RNApp') cd /Users/ying/workspace/FEProjects/pangu/mobile/react-native-app/ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-ios11.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/usr/lib/swift -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/CocoaAsyncSocket -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/DoubleConversion -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/RCT-Folly -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/RCTTypeSafety -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-Codegen -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-Core -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-CoreModules -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-Fabric -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTAnimation -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTBlob -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTFabric -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTImage -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTLinking -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTNetwork -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTSettings -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTText -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-RCTVibration -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-cxxreact -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-graphics -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-hermes -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-jsi -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-jsiexecutor -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-jsinspector -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-logger -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/React-perflogger -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/ReactCommon -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/SocketRocket -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/Yoga -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/YogaKit -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/fmt -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/glog -L/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/libevent -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/usr/lib/swift -F/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator -F/Users/ying/workspace/FEProjects/pangu/mobile/react-native-app/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal -F/Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates/hermes-engine -filelist /Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Intermediates.noindex/RNApp.build/Release-iphonesimulator/RNApp.build/Objects-normal/x86_64/RNApp.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Intermediates.noindex/RNApp.build/Release-iphonesimulator/RNApp.build/Objects-normal/x86_64/RNApp_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Intermediates.noindex/RNApp.build/Release-iphonesimulator/RNApp.build/Objects-normal/x86_64/RNApp.swiftmodule -ObjC -lCocoaAsyncSocket -lDoubleConversion -lRCT-Folly -lRCTTypeSafety -lReact-Codegen -lReact-Core -lReact-CoreModules -lReact-Fabric -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTFabric -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-graphics -lReact-hermes -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReact-logger -lReact-perflogger -lReactCommon -lSocketRocket -lYoga -lYogaKit -lc++ -lc++abi -lfmt -lglog -licucore -llibevent -framework AudioToolbox -framework CFNetwork -framework JavaScriptCore -framework MobileCoreServices -framework Security -framework UIKit -framework hermes -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Intermediates.noindex/RNApp.build/Release-iphonesimulator/RNApp.build/RNApp.app-Simulated.xcent -lPods-RNApp -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Intermediates.noindex/RNApp.build/Release-iphonesimulator/RNApp.build/Objects-normal/x86_64/RNApp_dependency_info.dat -o /Users/ying/Library/Developer/Xcode/DerivedData/RNApp-dfzbmxhodbvamrbilbfveadtbnjl/Build/Intermediates.noindex/RNApp.build/Release-iphonesimulator/RNApp.build/Objects-normal/x86_64/Binary/RNApp Undefined symbols for architecture x86_64: "folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::deferredReaders", referenced from: void folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::applyDeferredReaders<folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::WaitForever>(unsigned int&, folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::WaitForever&) in AppDelegate.o void folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::applyDeferredReaders<folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::WaitForever>(unsigned int&, folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::WaitForever&, unsigned int) in AppDelegate.o "folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::unlock()", referenced from: std::__1::unique_lock<folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false> >::~unique_lock() in AppDelegate.o "folly::SharedMutexImpl<false, void, std::__1::atomic, false, false, false>::~SharedMutexImpl()", referenced from: std::__1::__shared_ptr_emplace<facebook::react::ContextContainer const, std::__1::allocator<facebook::react::ContextContainer const> >::__on_zero_shared() in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
0.68.1
npx react-native info
System: OS: macOS 12.3.1 CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz Memory: 38.88 GB / 64.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.19.1 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 6.14.2 - /usr/local/bin/npm Watchman: 2022.03.21.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8309675 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild Languages: Java: 11.0.14 - /Library/Java/JavaVirtualMachines/jdk-11.0.14.jdk/Contents/Home/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.1 => 0.68.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
RCT_NEW_ARCH_ENABLED=1 pod install
ios
No response
The text was updated successfully, but these errors were encountered:
Duplicated of #33764
Sorry, something went wrong.
No branches or pull requests
Description
Running the app in Xcode reports an error when the new architecture mode is turned on.
Log
Version
0.68.1
Output of
npx react-native info
System:
OS: macOS 12.3.1
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 38.88 GB / 64.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.19.1 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 6.14.2 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8309675
Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild
Languages:
Java: 11.0.14 - /Library/Java/JavaVirtualMachines/jdk-11.0.14.jdk/Contents/Home/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.1 => 0.68.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
RCT_NEW_ARCH_ENABLED=1 pod install
inside theios
folderSnack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: