Skip to content
New issue

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

[iOS14] simulator crashes, however real device works #326

Closed
TrustDec opened this issue Sep 17, 2020 · 15 comments
Closed

[iOS14] simulator crashes, however real device works #326

TrustDec opened this issue Sep 17, 2020 · 15 comments
Labels

Comments

@TrustDec
Copy link

TrustDec commented Sep 17, 2020

rn:0.63
Xcode:Version 12.0 (12A7209)

dyld: Library not loaded: /usr/lib/libnfshared.dylib
  Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreNFC.framework/CoreNFC
  Reason: image not found
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/XXX/Library/Developer/CoreSimulator/Caches/dyld/20A5364e/com.apple.CoreSimulator.SimRuntime.iOS-14-0.18A372
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/trust/Library/Developer/Xcode/DerivedData/MobileIntegration-eyrbnwcfymemnmgrsfzearpkmypp/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer
@toshe
Copy link

toshe commented Sep 17, 2020

This seems to be related to this thread and CoreNFC in general:

https://stackoverflow.com/questions/63915728/xcode12-corenfc-simulator-library-not-loaded

The simulator doesn't support NFC but the libraries are included when compiling. Since CoreNFC is not compiled for sim it won't work. I would start with inspecting all the NFC references and exclude them when building for simulator.

@toshe
Copy link

toshe commented Sep 17, 2020

@TrustDec does this happen only in a simulator or also on a real device?

@toshe
Copy link

toshe commented Sep 17, 2020

https://developer.apple.com/forums/thread/660398 here's more info related to the thread.

@whitedogg13
Copy link
Member

@TrustDec have you ever tried RN62? My app works fine with RN62.2. I will try to use RN63 and feedback later.

@toshe
Copy link

toshe commented Sep 20, 2020

I'm using RN62 and can confirm that this issue happens in a simulator on iOS 14. The links above show more info.

@whitedogg13
Copy link
Member

@toshe Thanks! you're totally right and I can also reproduce this. It looks like an issue from Apple, I will update README to warn other users. Thanks again for bringing this.

@whitedogg13 whitedogg13 changed the title Xcode 12 & iOS 14 run error.. [iOS14] simulator crashes, however real device works Sep 20, 2020
@ibogdan94
Copy link

I'm using RN 63.2 and xcode Version 12.0.1 (12A7300) -- the problem still happens on all simulators on iOS 14

@sallar
Copy link

sallar commented Sep 30, 2020

The funny thing is it's not possible to download and install iOS 13 Simulator because the list of runtimes is empty https://developer.apple.com/forums/thread/662072

@tsiory
Copy link

tsiory commented Oct 2, 2020

It's only happens on simulator or device too? Thanks!

@toshe
Copy link

toshe commented Oct 2, 2020

The issue affects ONLY iOS 14 simulators in XCode 12.0 and 12.0.1.
It doesn't affect devices (iOS 13.1.1 and iOS 14.0.1).

@toshe
Copy link

toshe commented Oct 2, 2020

@sallar in my XCode I have the options of iOS 14 and iOS 13.5 simulators. The iOS 13.5 simulators work without issues. Maybe downgrade to XCode 12 ? Seems this affects only 12.0.1.

@sallar
Copy link

sallar commented Oct 2, 2020

@toshe yeah that particular issue is only on 12.0.1. 12.0 is fine and i can download 13.5 there

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label May 11, 2021
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@ashok-sl
Copy link

IOS 15, It is still crashing in simulator, however, it works on real devices.

xCode: 13.1
SDKs:
    iOS SDK:   Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
npmPackages:
    @react-native-community/cli: ^6.1.0 => 6.1.0 
    react: ^17.0.2 => 17.0.2 
    react-native: 0.66.1 => 0.66.1 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants