After 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.
Seems there's a conflict with RNSensitiveInfo, can you try removing that one?
Yes, it appears that these two libraries don't work well together!
I have this issue too, is there a way to fix it?
It looks like a known issue https://github.com/mCodex/react-native-sensitive-info/issues/6
Created a PR https://github.com/mCodex/react-native-sensitive-info/pull/100 to fix this in react-native-sensitive-info lib.
Hey guys, I'm from RNSensitiveInfo, I've already merged @grigorigoldman's PR and released it as beta version. :)
closing since it was resolved in RNSensitiveInfo
Most helpful comment
Hey guys, I'm from RNSensitiveInfo, I've already merged @grigorigoldman's PR and released it as beta version. :)