unity project to native IOS App integration - ios

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

Related

Want to remove duplicate symbol error during compile time xcode ios

I running my code old code in the latest XCode 13.2 iOS 15 version. While running my application I got the following error,
duplicate symbol '__toSelectedDate' in:
/Users/userName/Library/Developer/Xcode/DerivedData/Administrator-ewwyjnbeieucitgvjwslljnpgsqr/Build/Intermediates.noindex/Administrator.build/Debug-iphonesimulator/Administrator.build/Objects-normal/x86_64/BarGraph.o
/Users/userName/Library/Developer/Xcode/DerivedData/Administrator-ewwyjnbeieucitgvjwslljnpgsqr/Build/Intermediates.noindex/Administrator.build/Debug-iphonesimulator/Administrator.build/Objects-normal/x86_64/AdherenceOut.o
duplicate symbol '_y_MarkerLblRange' in:
/Users/userName/Library/Developer/Xcode/DerivedData/Administrator-ewwyjnbeieucitgvjwslljnpgsqr/Build/Intermediates.noindex/Administrator.build/Debug-iphonesimulator/Administrator.build/Objects-normal/x86_64/AppDelegate.o
/Users/userName/Library/Developer/Xcode/DerivedData/Administrator-ewwyjnbeieucitgvjwslljnpgsqr/Build/Intermediates.noindex/Administrator.build/Debug-iphonesimulator/Administrator.build/Objects-normal/x86_64/LoginViewController.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already cleaned my project & removed derived data but not worked. There is no double import or declaration or added in compile sources in xcode build setting.
My code is perfectly runnable on Xcode 10.1 version for iOS 12 version. But apple does not upgrade the build version to upload the build in-app store why I'm stuck to making a compatible code version with the latest iOS.
I resolved this issue using a change in XCode build settings,
GCC_NO_COMMON_BLOCKS = YES to NO

Native linking error: 1 duplicate symbol for architecture x86_64

I am working on Xamarin.Forms Version 3.4. I am executing iOS project from windows machine(As my visual studio connected to Mac machine).
iOS project showing few errors saying
Native linking error: 1 duplicate symbol for architecture x86_64
Native linking failed, duplicate symbol: '_main'
Native linking failed. Please review the build log
This is the screenshot for all errors
This issue solved by adding --registrar:static in iOS Build's Additional mtouch arguments.

unable to archive react native IOS application

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

iOS build error: framework not found FileProvider for architecture x86_64

I am trying to build an Ionic 3 app for iOS and I keep getting this error when building both with Xcode and on Ionic Pro.
When using Xcode I get:
[x] ld: framework not found FileProvider for architecture x86_64
On Ionic Pro I get:
[x] ld: framework not found FileProvider for architecture armv7
This same project already builds and works on Android.
Solved, just had to update Xcode. That doesn't really explain why it wasn't working on Ionic Pro though. But it worked fine in Xcode after updating.

Google Conversion Tracking for iOS linker error for architecture armv7

I'm trying to add the Google Conversion Tracking for iOS feature to my iPhone app.
The app's base SDK is iOS6
the app's valid architectures is armv7, armv7s
the app's iOS deployment targer is 4.3
I'm using the latest xcode 4.5.2 and OSX 10.8.2
The app is in appstore and is ok for iPhone 3-4-5
When I try to add the Google Conversion Tracking for iOS following this link: https://developers.google.com/mobile-ads-sdk/docs/admob/conversion-tracking
I have this error:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in libGoogleConversionTracking.a(PingUtil.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The SDK library references the iOS AdSupport development framework
which may not already be part of your project. It can be resolved by
including AdSupport.Framework.
To adding the Framework, just follow the steps below. Select the
project file at the top. Open the Link Binary With Libraries drop-down
under the Build Phases tab. Add the framework from the iOS SDK using
the + button.

Resources