My app is using the latest react-native-fabric(version 0.5.2) and I am trying to run it on my iPhone which is using IOS 13.3. However every time I try to run it through XCode Version 11.3 (11C29) onto my device, XCode throws that error message you see below in the XCode console which prevents my app from completely starting.
Weird part is that XCode builds and starts the app perfectly fine on a Simulator & iPad with the same IOS 13.3.
Error message that comes up in the XCODE:
objc[1284]: Class CLSUserDefaults is implemented in both /System/Library/Frameworks/ClassKit.framework/ClassKit (0x1caeb9d40) and /private/var/containers/Bundle/Application/7D65B3-D92B-4BFE-B128-DD84889E7CA2/MyApp.app/MyApp (0x100fdfda0). One of the two will be used. Which one is undefined. 2020-01-14 15:52:32.132510-0800 MyApp[1284:863494] [Crashlytics] Version 3.9.3 (128)
Now Iv'e done extensive research all over Google, Stackoverflow, Github, Blogs and so on about this issue but I have yet to see a solution for this with React Native < 6.0which is NOT using CocoaoPods.
Right now I am on React Native version 0.59.9, therefore I do NOT have Cocoapods available.
Reason I bring this up is because I have seen simple solutions on Stackoverflow of people say "Just update your Crashlytics version and Fabric version in your Pods file". And while that may have worked for some for others that is not even an option.
Aside from that I have tried multiple other things such as,
- Clearing Cache in XCode
- Deleting DerivedData Folder
- Restarting Computer and Device
- Uninstalling the app and clearing cache on device
- Different XCode versions 11.1, 11.2, 11.3 and when you go below 11 XCode alerts you and tells you that it wont be able to build the app on IOS 13 with an XCode version below 11.
If anyone has any ideas please feel free to share, thank you!