unable to archive react native IOS application - ios

I'm trying to Archive an react native IOS app via Xcode but it fails with the error. The app builds ok and runs on real device and also on simulator normal only the archive fails. The error is the following:
duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule in:
/Users/simoncigoj/Library/Developer/Xcode/DerivedData/GoOptiDriverProject-fdekgxtfuwblpfbtjzxjseykeddi/Build/Intermediates.noindex/ArchiveIntermediates/GoOptiDriverProject/BuildProductsPath/Release-iphoneos/libReact.a(RCTWebSocketModule.o)
/Users/simoncigoj/Library/Developer/Xcode/DerivedData/GoOptiDriverProject-fdekgxtfuwblpfbtjzxjseykeddi/Build/Intermediates.noindex/ArchiveIntermediates/GoOptiDriverProject/BuildProductsPath/Release-iphoneos/libRCTWebSocket.a(RCTWebSocketModule.o)
ld: 168 duplicate symbols for architecture arm64

Related

After updating to Xcode 12.0 React-Native build failed

I have updated Xcode to 12.0 in order to test React Native project on iOS 14.0.
When I build the project I'm getting the following error. I tried Excluding arm64 architecture from Debug, tried removing bitcode from debug.
in
~/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o),
building for iOS Simulator, but linking in object file
(~/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o))
built for iOS, file
'~/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a'
for architecture arm64

unity project to native IOS App integration

I want to integrate unity project to my native ios Application on a specific screen
I follow below instruction given in below git Repository
https://github.com/blitzagency/ios-unity5
Xcode Version 9.3
unity Version 2018.1.6f1
I got below error
duplicate symbol _main in:
/Users/Library/Developer/Xcode/DerivedData/UnityTest-gdetosseukppilafpxhvtajaihpk/Build/Intermediates.noindex/UnityTest.build/Debug-iphonesimulator/UnityTest.build/Objects-normal/x86_64/main.o
/Users/Library/Developer/Xcode/DerivedData/UnityTest-gdetosseukppilafpxhvtajaihpk/Build/Intermediates.noindex/UnityTest.build/Debug-iphonesimulator/UnityTest.build/Objects-normal/x86_64/AppDelegate.o
ld: 1 duplicate symbol for architecture x86_64

Lazy symbol binding failed in Xcode 8.3.3

My Application has deployment target 8.0. It works well with device running above iOS 10.0, but it gets crashed in the device running below iOS 10.0. Here is the error which I got from console
dyld: lazy symbol binding failed: Symbol not found: _sqlite3_key
Referenced from: /var/containers/Bundle/Application/887A192E-F390-47F6-80F3-768F4F321C8A/xxxx.app/xxx
Expected in: dyld shared cache
Below are the things I have tried to fix this, but nothing worked for me
Force Cleaned the application.
Reloaded the console.
Added the following architectures (armv7s, arm64, armv7).
Deleted the libsqlite3.tbd and added once again.
Generating the build with distribution profile and installed the same in device and tried (Gone through in some threads and found it happens only in the DEBUG mode).

Error in compiling app with MoPub-Fabric iOS

I am using MoPub kit using Fabric SDKs.
Everything works fine on all devices until you run the app on iPad simulator.
Running the app on iPad simulator gives following error while compiling the app:
Error
P.S. I am using XCode 7.3
Edit 1: I get following warnings also while running the app on simulators.
ld: warning: ignoring file /Users/Projects/Directory/Directory_iOS/PassKit.framework/PassKit.tbd, missing required architecture i386 in file /Users/Projects/Directory/Directory_iOS/PassKit.framework/PassKit.tbd
ld: warning: ignoring file /Users/Projects/Directory/Directory_iOS/MoPub.framework/MoPub, missing required architecture i386 in file /Users/Projects/Directory/Directory_iOS/MoPub.framework/MoPub (4 slices)
Only running the app on the iPad causes compilation errors iPhone simulators is not a problem with it.

Apple Mach-O Linker Error (Cannot built my app when i select iOS device)

I built an app that uses ZbarSDK for barcode scan, the app works fine when running over the simulator, but when I try to archive it on a real device this error shows up:
You are compiling your app for the armv7s architecture but ZbarSDK isn’t compiled for armv7s. So either compile ZbarSDK for armv7s (preferred) or don’t compile your app for armv7s.

Resources