IOS: Undefined symbols for architecture x86_64: "_swift_getFunctionReplacement", referenced from:
See original GitHub issueEnvironment
System:
OS: macOS 10.15.4
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 1.58 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.17.0 - ~/.nvm/versions/node/v10.17.0/bin/node
Yarn: 1.21.1 - ~/.nvm/versions/node/v10.17.0/bin/yarn
npm: 6.11.3 - ~/.nvm/versions/node/v10.17.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6241897
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
Languages:
Java: javac 14 - /usr/bin/javac
Python: 3.7.7 - /Users/jariza/.pyenv/shims/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
Upgrading version
0.62.2
Description
Good day, I am trying to upgrade a project to RN 0.62.2 from 0.61. On android it is working fine, however on iOS I am getting this error when running react-native run-ios
Undefined symbols for architecture x86_64:
"_swift_getFunctionReplacement", referenced from:
_swift_getFunctionReplacement50 in libswiftCompatibilityDynamicReplacements.a(DynamicReplaceable.cpp.o)
(maybe you meant: _swift_getFunctionReplacement50)
"_swift_getOrigOfReplaceable", referenced from:
_swift_getOrigOfReplaceable50 in libswiftCompatibilityDynamicReplacements.a(DynamicReplaceable.cpp.o)
(maybe you meant: _swift_getOrigOfReplaceable50)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I followed all instructions detailed here #13 and When I build the app from xcode interface, it runs with no errors. However, when trying to run it with react-native run-ios
it raises the error. Do you have any idea why is it happening?
Thank you
Issue Analytics
- State:
- Created 3 years ago
- Reactions:10
- Comments:10
Top Results From Across the Web
IOS Undefined symbols for architecture x86_64 - Stack Overflow
Any library, framework that you previously had, and didn't have the symbols to be compiled to iOS simulator(x86_64) can show these errors.
Read more >Undefined symbols for architecture… | Apple Developer Forums
Undefined symbols for architecture x86_64 in Xcode 14.1 M1 Chip of New Build System - Archive the Project successfully, While debugging the below...
Read more >Xcode 9 Undefined Symbols For Architecture X86_64 - ADocLib
Undefined symbols for architecture armv7: "type metadata for Swift. ... symbols for architecture x8664: "swiftgetFunctionReplacement", referenced from: #72.
Read more >iOS : Undefined symbols for architecture x86_64 ... - YouTube
iOS : Undefined symbols for architecture x86_64 : "_OBJC_CLASS_$_WKWebView", referenced from : [ Beautify Your Computer ...
Read more >undefined symbols for architecture arm64 xcode 12 - You.com
Exclude arm64 from the Screenshot 2020-09-18 at 17 34 17 build phase · Try to compile to the simulator · Get error Undefined...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved following #25 (comment) per @JeremyBradshaw7’s comments. I’ve placed Yes for Dead Code Stripping, however it doesn’t work in the first time, because I forgot to set this option for All the Targets as well and NOT ONLY the project.
Got past this issue with https://blog.cpming.top/p/undefined-symbol-swift-getfunctionreplacement @0.63.2