Build failed after linking
See original GitHub issueAfter running react-native link react-native-keychain
I can’t install the app on a simulator, getting the following errors:
ld: warning: object file (/Users/xxx/tmp/myapp/ios/build/Build/Products/Debug-iphonesimulator/libRNSensitiveInfo.a(RNSensitiveInfo.o)) was built for newer iOS version (9.1) than being linked (8.0)
ld: warning: object file (/Users/xxx/tmp/myapp/ios/build/Build/Products/Debug-iphonesimulator/libRNKeychain.a(RNKeychainManager.o)) was built for newer iOS version (8.3) than being linked (8.0)
duplicate symbol _messageForError in:
/Users/xxx/tmp/myapp/ios/build/Build/Products/Debug-iphonesimulator/libRNSensitiveInfo.a(RNSensitiveInfo.o)
/Users/xxx/tmp/myapp/ios/build/Build/Products/Debug-iphonesimulator/libRNKeychain.a(RNKeychainManager.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Build/Products/Debug-iphonesimulator/myapp.app/myapp normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/myapp.app
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/xxx/Library/Developer/CoreSimulator/Devices/0EA7A82B-98EF-4DED-9178-30F58B394E8B/data/Library/Caches/com.apple.containermanagerd/Bundle/Application/FE49E634-43CA-407E-8617-817BC7175D52/myapp.app/myapp : No such file or directory
I tried linking manually but unfortunately getting the same error.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Xcode12 build error. The linked fr… | Apple Developer Forums
I'm having the same problem with a project of mine after updating to Xcode 12, except the "embedded framework" here is one of...
Read more >IOS build fails because of linking - xcode - Stack Overflow
As you can see in the picture, my build fails. I suspect it's something regarding the link. I used react-native link , not...
Read more >Xcode 12 fails to build a project containing Batch
Linking error. After updating, your project might fail to build if you update to Xcode's recommended build settings. The error looks like this:...
Read more >Xamarin.iOS build Native linking failed - Visual Studio Feedback
This error start to occur today. Our build was working yesterday without any changes. I believe this is due to Azure DevOps upgraded...
Read more >Xcode 12 Build Issues (iOS 14 Simulators, Archive) | Medium
Step 2: You should do is delete VALID_ARCHS from your project altogether (Main Project & Pod Project Both), and make sure Architectures (ARCHS) ......
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
Hey guys, I’m from RNSensitiveInfo, I’ve already merged @grigorigoldman’s PR and released it as beta version. 😃
Created a PR https://github.com/mCodex/react-native-sensitive-info/pull/100 to fix this in
react-native-sensitive-info
lib.