Troubleshooting
iOS
App crash on launch: dyld[1484]: symbol not found in flat namespace '_jump_fcontext'
on Xcode 15.3 and above with React Native 0.73
React Native 0.73 is broken only with Dynamic Frameworks. The root cause for the failure is that Folly/Futures
can't find the symbol _jump_fcontext
on newer Xcodes. You can refer this github issue for more context on this issue.
Workaround Options:
- Use Xcode 15.2 or below
- Disable
hermes
in your Podfile as demonstrated in the snippet below
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/..",
# Disable hermes
:hermes_enabled => false
)
- Use React Native 0.74
App Crash dyld[1488]: Symbol not found: __ZN5swift39swift51override_conformsToSwiftProtocol
dyld[1488]: Symbol not found: __ZN5swift39swift51override_conformsToSwiftProtocolEPKNS_14TargetMetadataINS_9InProcessEEEPKNS_24TargetProtocolDescriptorIS1_EEN7__swift9__runtime4llvm9StringRefEPFPKNS_35TargetProtocolConformanceDescriptorIS1_EES4_S8_SC_E
Referenced from: <A6D7A03B-5BFB-3464-AA56-0D4D79448BF9> /private/var/containers/Bundle/Application/01E5E576-4F0A-4304-8431-D16A868A817F/FairmaticSdkExample.app/Frameworks/FairmaticSDK.framework/FairmaticSDK
Expected in: <1A863BA6-46CD-32C1-A0CC-83D7F0E3680E> /private/var/containers/Bundle/Application/01E5E576-4F0A-4304-8431-D16A868A817F/FairmaticSdkExample.app/Frameworks/SQLite.framework/SQLite
Solution:
In your Podfile, add the following post install script:
installer.pods_project.targets.each do |target|
if target.name == 'SQLite.swift'
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
Reference: https://forums.developer.apple.com/forums/thread/687259
Android
Error: Attribute application@allowBackup is also present at ...
If you face the following error while building the android app, either remove android:allowBackup
key from the AndroidManifest.xml
or replace it as described in the error message
Error:
Attribute application@allowBackup value=(false) from AndroidManifest.xml:8:7-34
is also present at [com.fairmatic:sdk:3.0.2] AndroidManifest.xml:13:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml to override.