Firebase with Unity causing Linker Error in XCode - ios

I have added Firebase to my Unity project, using the FirebaseMessaging.unitypackage.
It works when I am building and running for Android, but when I am trying to build for iOS, I get the following error in XCode:
Ld /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos/one4freeapp.app/one4freeapp normal armv7
cd /Users/one4freedk/Desktop/One4Free/One4Free/iosbuild
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos -L/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild -L/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild/Libraries -F/Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos -F/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild/Frameworks/FacebookSDK/Plugins/iOS -F/Users/one4freedk/Desktop/One4Free/One4Free/iosbuild/Frameworks -filelist /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/one4freeapp.LinkFileList -Xlinker -map -Xlinker /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/one4freeapp-LinkMap-normal-armv7.txt -miphoneos-version-min=7.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/one4freeapp_lto.o -Xlinker -no_deduplicate -fembed-bitcode-marker -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -ObjC -lc++ -lsqlite3 -lz -licucore -lc++ -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -framework Bolts -framework FBSDKShareKit -framework FBSDKCoreKit -framework FBSDKLoginKit -weak_framework Metal -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework FirebaseMessaging -framework GoogleInterchangeUtilities -framework GoogleSymbolUtilities -framework StoreKit -framework AddressBook -Xlinker -dependency_info -Xlinker /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/one4freeapp_dependency_info.dat -o /Users/one4freedk/Library/Developer/Xcode/DerivedData/Unity-iPhone-eijzxgpugrgbhsfkgmdnrbljevok/Build/Products/Debug-iphoneos/one4freeapp.app/one4freeapp
Undefined symbols for architecture armv7:
"_SWIGRegisterExceptionCallbacksArgument_FirebaseMessaging", referenced from:
_SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_FirebaseMessaging_m2946342211 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_FirebaseMessaging_m2946342211)
"_SWIGRegisterStringCallback_FirebaseMessaging", referenced from:
_SWIGStringHelper_SWIGRegisterStringCallback_FirebaseMessaging_m1829604336 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _SWIGStringHelper_SWIGRegisterStringCallback_FirebaseMessaging_m1829604336)
"_Firebase_Messaging_SendPendingEvents", referenced from:
_FirebaseMessagingPINVOKE_Firebase_Messaging_SendPendingEvents_m696476573 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_SendPendingEvents_m696476573)
"_Firebase_Messaging_SetListenerCallbacksEnabled", referenced from:
_FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacksEnabled_m633290538 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacksEnabled_m633290538)
"_Firebase_Messaging_SetListenerCallbacks", referenced from:
_FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacks_m2687428259 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacks_m2687428259, _FirebaseMessagingPINVOKE_Firebase_Messaging_SetListenerCallbacksEnabled_m633290538 )
"_Firebase_Messaging_FirebaseMessage_From_get", referenced from:
_FirebaseMessagingPINVOKE_Firebase_Messaging_FirebaseMessage_From_get_m3347431359 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_FirebaseMessage_From_get_m3347431359)
"_Firebase_Messaging_delete_FirebaseMessage", referenced from:
_FirebaseMessagingPINVOKE_Firebase_Messaging_delete_FirebaseMessage_m1658331736 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _FirebaseMessagingPINVOKE_Firebase_Messaging_delete_FirebaseMessage_m1658331736)
"_SWIGRegisterExceptionCallbacks_FirebaseMessaging", referenced from:
_SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_FirebaseMessaging_m2350026019 in Bulk_Firebase.Messaging_0.o
(maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_FirebaseMessaging_m2350026019)
"_Firebase_App_FirebaseApp_CreateInternal__SWIG_0", referenced from:
_AppUtilPINVOKE_Firebase_App_FirebaseApp_CreateInternal__SWIG_0_m2787922779 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_FirebaseApp_CreateInternal__SWIG_0_m2787922779)
"_SWIGRegisterExceptionCallbacksArgument_AppUtil", referenced from:
_SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_AppUtil_m386473544 in Bulk_Firebase.App_0.o
(maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacksArgument_AppUtil_m386473544)
"_Firebase_App_FirebaseApp_Name_get", referenced from:
_AppUtilPINVOKE_Firebase_App_FirebaseApp_Name_get_m2545680430 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_FirebaseApp_Name_get_m2545680430)
"_Firebase_App_SetLogFunction", referenced from:
_AppUtilPINVOKE_Firebase_App_SetLogFunction_m3733654825 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_SetLogFunction_m3733654825)
"_SWIGRegisterStringCallback_AppUtil", referenced from:
_SWIGStringHelper_SWIGRegisterStringCallback_AppUtil_m4196108411 in Bulk_Firebase.App_0.o
(maybe you meant: _SWIGStringHelper_SWIGRegisterStringCallback_AppUtil_m4196108411)
"_Firebase_App_SetEnabledAllAppCallbacks", referenced from:
_AppUtilPINVOKE_Firebase_App_SetEnabledAllAppCallbacks_m3339389901 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_SetEnabledAllAppCallbacks_m3339389901)
"_Firebase_App_delete_FirebaseApp", referenced from:
_AppUtilPINVOKE_Firebase_App_delete_FirebaseApp_m1137114670 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_delete_FirebaseApp_m1137114670)
"_Firebase_App_FirebaseApp_DefaultName_get", referenced from:
_AppUtilPINVOKE_Firebase_App_FirebaseApp_DefaultName_get_m4097276820 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_FirebaseApp_DefaultName_get_m4097276820)
"_Firebase_App_AppEnableLogCallback", referenced from:
_AppUtilPINVOKE_Firebase_App_AppEnableLogCallback_m3057939313 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_AppEnableLogCallback_m3057939313)
"_SWIGRegisterExceptionCallbacks_AppUtil", referenced from:
_SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_AppUtil_m1809271624 in Bulk_Firebase.App_0.o
(maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_AppUtil_m1809271624)
"_Firebase_App_PollCallbacks", referenced from:
_AppUtilPINVOKE_Firebase_App_PollCallbacks_m784944262 in Bulk_Firebase.App_0.o
(maybe you meant: _AppUtilPINVOKE_Firebase_App_PollCallbacks_m784944262)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have looked for solutions, but haven't found any so far. I have tried disabling BitCode, only building for one architecture, edited the Linker Flags, checked the Library Search Paths, but haven't had any luck.
Currently, this error makes me unable to build my project for iOS.
I am running Unity 5.5.0f3, XCode 8.2 and Firebase 1.1.0

I've just figured out what the issue for the problem was. My current setup consists of working on the project on my Windows machine, and then using a Mac for building. I found out that the version control software I use (TortoiseSVN), does not automatically include ".a" files, and that resulted in the libApp.a and libMessaging.a not getting transferred to the Mac.

Apparently, you are missing Firebase library. It's not get exported for xcode project from unity. Please check if you have set the plugin import settings for it and select ios platform as well.
Please find more information about settings here https://docs.unity3d.com/Manual/PluginInspector.html
Otherwise, I would search on the plugin developer site or write their support.

I think the problem might be the deployment target. Try set it to ios 9.0 in unity before trying to build ios.
It should probably work with 8.0 also, but not before that i think.

I had this issue and seemed to have gotten through it.
I did not have CocoaPods installed when I first ran the build. Which quietly results in an unbuildable xcode project.
Install CocoaPods, delete the xcode project and build again.
Good luck!

Related

Issues with archiving iOS project: libz.dylib not found

I have issues when making an archive from a (legacy) iOS project. While archiving I get the following error:
Libtool /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a normal armv7
cd /Users/appcell/Documents/Projects/Elho/Libraries/PSPDFKit
export IPHONEOS_DEPLOYMENT_TARGET=5.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/BuildProductsPath/Release-iphoneos -filelist /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/PSPDFKit.LinkFileList /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib -framework AssetsLibrary -framework CoreMedia -framework AVFoundation -framework ImageIO -framework MediaPlayer -framework CoreText -framework CoreGraphics -weak_framework UIKit -framework MessageUI -framework QuartzCore -framework Foundation -o /Users/appcell/Library/Developer/Xcode/DerivedData/elho-ctuevlyyxtyssvblxkqezbfgdtyq/Build/Intermediates/ArchiveIntermediates/Elho/IntermediateBuildFilesPath/PSPDFKit-lib.build/Release-iphoneos/PSPDFKit.build/Objects-normal/armv7/libPSPDFKit.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (No such file or directory)
When I create a link frrom the /usr/lib/libz.dylib file to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib (which used to work in the past), I now get the following error:
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libz.dylib (2 slices)
Undefined symbols for architecture armv7:
"_deflateInit_", referenced from:
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflate", referenced from:
-[ASIDataCompressor compressBytes:length:error:shouldFinish:] in ASIDataCompressor.o
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflateInit2_", referenced from:
-[ASIDataCompressor setupStream] in ASIDataCompressor.o
"_inflate", referenced from:
_unzReadCurrentFile in unzip.o
-[ASIDataDecompressor uncompressBytes:length:error:] in ASIDataDecompressor.o
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_get_crc_table", referenced from:
_unzOpenCurrentFile3 in unzip.o
"_inflateEnd", referenced from:
_unzCloseCurrentFile in unzip.o
-[ASIDataDecompressor closeStream] in ASIDataDecompressor.o
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_crc32", referenced from:
_unzReadCurrentFile in unzip.o
"_inflateInit_", referenced from:
-[NSData(PSPDFCompression) pspdf_zlibInflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_deflateEnd", referenced from:
-[ASIDataCompressor closeStream] in ASIDataCompressor.o
-[NSData(PSPDFCompression) pspdf_zlibDeflate] in libPSPDFKit.a(NSData+PSPDFCompression.o)
"_inflateInit2_", referenced from:
_unzOpenCurrentFile3 in unzip.o
-[ASIDataDecompressor setupStream] in ASIDataDecompressor.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Has anyone ever had the same issues?
PSPDFKit founder here. Our PDF SDK uses libz, so either link with libz.dylib (which has been renamed in later Xcode versions to be libz.tbd) or add the linker flag -lz which should als do the trick.
If you update our SDK to the latest version this all happens automatically, since we're using a dynamic framework which already knows what dependencies it requires.

UniWebView linker errors when compiling for iOS (using Unity 5, XCode 7.3.1 and iOS SDK 9.3)

I am using UniWebView 2 in a cross-platform application and while the app compiles and runs on Android, when building it for iOS, I get errors when building the project in XCode. I tried creating an empty project and compiling one of the UniWebView example scenes and got the same errors.
Said errors are as follows:
Undefined symbols for architecture armv7:
"__WebViewPlugin_EvaluateJS", referenced from:
_WebViewObject__WebViewPlugin_EvaluateJS_m3600170591 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject__WebViewPlugin_EvaluateJS_m3600170591 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _WebViewObject__WebViewPlugin_EvaluateJS_m3600170591)
"__WebViewPlugin_SetVisibility", referenced from:
_WebViewObject__WebViewPlugin_SetVisibility_m1941317136 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_SetVisibility_m1306909320 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject__WebViewPlugin_SetVisibility_m1941317136 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_SetVisibility_m1306909320 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _WebViewObject__WebViewPlugin_SetVisibility_m1941317136)
"__WebViewPlugin_SetMargins", referenced from:
_WebViewObject__WebViewPlugin_SetMargins_m46209250 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_SetMargins_m3594992190 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject__WebViewPlugin_SetMargins_m46209250 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_SetMargins_m3594992190 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _WebViewObject__WebViewPlugin_SetMargins_m46209250)
"__WebViewPlugin_LoadURL", referenced from:
_WebViewObject__WebViewPlugin_LoadURL_m3058146388 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject__WebViewPlugin_LoadURL_m3058146388 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _WebViewObject__WebViewPlugin_LoadURL_m3058146388)
"__WebViewPlugin_Destroy", referenced from:
_WebViewObject__WebViewPlugin_Destroy_m2965791645 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_OnDestroy_m852260632 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject__WebViewPlugin_Destroy_m2965791645 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_OnDestroy_m852260632 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _WebViewObject__WebViewPlugin_Destroy_m2965791645)
"__WebViewPlugin_SetFrame", referenced from:
_WebViewObject__WebViewPlugin_SetFrame_m3791199226 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_SetCenterPositionWithScale_m3707009509 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject__WebViewPlugin_SetFrame_m3791199226 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject_SetCenterPositionWithScale_m3707009509 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _WebViewObject__WebViewPlugin_SetFrame_m3791199226)
"__WebViewPlugin_Init", referenced from:
_WebViewObject__WebViewPlugin_Init_m1745555759 in Bulk_Assembly-CSharp-firstpass_0.o
_WebViewObject__WebViewPlugin_Init_m1745555759 in Bulk_Assembly-CSharp-firstpass_0.o
(maybe you meant: _WebViewObject__WebViewPlugin_Init_m1745555759)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The command that causes them is this:
Ld /Users/studentdeveloper/Library/Developer/Xcode/DerivedData/Unity-iPhone-cufatstjeeklntdglsasxcmmpkyu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName normal armv7
cd /Users/studentdeveloper/projects/UniWebViewTest/build/move_prefab_and_scripts_2
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/studentdeveloper/Library/Developer/Xcode/DerivedData/Unity-iPhone-cufatstjeeklntdglsasxcmmpkyu/Build/Products/Release-iphoneos -L/Users/studentdeveloper/projects/UniWebViewTest/build/move_prefab_and_scripts_2 -L/Users/studentdeveloper/projects/UniWebViewTest/build/move_prefab_and_scripts_2/Libraries -F/Users/studentdeveloper/Library/Developer/Xcode/DerivedData/Unity-iPhone-cufatstjeeklntdglsasxcmmpkyu/Build/Products/Release-iphoneos -filelist /Users/studentdeveloper/Library/Developer/Xcode/DerivedData/Unity-iPhone-cufatstjeeklntdglsasxcmmpkyu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName.LinkFileList -Xlinker -map -Xlinker /Users/studentdeveloper/Library/Developer/Xcode/DerivedData/Unity-iPhone-cufatstjeeklntdglsasxcmmpkyu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/ProductName-LinkMap-normal-armv7.txt -miphoneos-version-min=6.0 -dead_strip -fembed-bitcode-marker -weak_framework CoreMotion -weak-lSystem -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -weak_framework iAd -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -liPhone-lib -Xlinker -dependency_info -Xlinker /Users/studentdeveloper/Library/Developer/Xcode/DerivedData/Unity-iPhone-cufatstjeeklntdglsasxcmmpkyu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_dependency_info.dat -o /Users/studentdeveloper/Library/Developer/Xcode/DerivedData/Unity-iPhone-cufatstjeeklntdglsasxcmmpkyu/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName
I have kept the Plugins directory structure
I use IL2CPP as the scripting backend
I'm targeting the correct device, SDK and iOS version
I have tried disabling bitcode and enabling Preserve Private External Symbols in the XCode project settings
I managed to build and deploy on an iPad simulator(x86_64, since I'm building on a 64-bit Mac)
Here is the WebViewObject.cs file where the methods in question are defined
Thank you for your time.
WebViewPlugin is the Gree's unity web view, so it is not probably a UniWebView issue (they are different package).
You could try to remove the WebViewPlugin and related things from your project if you are not using them. And try again with only UniWebView.

Missing required architecture arm64 in file Telerik

I have downloaded Telerik's IOS UI trial and opened its example project in it. It runs properly on simulator but when I want to run on the real device it gives me error.
Ld
/Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos/TelerikUIExamples.app/TelerikUIExamples
normal arm64
cd "/Users/gg/Documents/Telerik/UI for iOS Q2 2014/TelerikUIExamples"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
-L/Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos
-F/Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos
-F. -FTelerikUIExamples -FTelerikUIExamples/Images.xcassets -FTelerikUIExamples/Images.xcassets/AppIcon.appiconset -FTelerikUIExamples/Images.xcassets/calendar_cell.imageset -FTelerikUIExamples/Images.xcassets/calendar_current_cell.imageset -FTelerikUIExamples/Images.xcassets/calendar_header.imageset -FTelerikUIExamples/Images.xcassets/calendar_selected_cell.imageset -FTelerikUIExamples/Images.xcassets/LaunchImage.launchimage -FTelerikUIExamples/Images.xcassets/logo.imageset -FTelerikUIExamples/Images.xcassets/menu.imageset -FTelerikUIExamples/Images.xcassets/pattern1.imageset -filelist /Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Intermediates/TelerikUIExamples.build/Debug-iphoneos/TelerikUIExamples.build/Objects-normal/arm64/TelerikUIExamples.LinkFileList
-dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework SystemConfiguration -lsqlite3.0 -framework EventKit -framework EventKitUI -framework TelerikUI -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Intermediates/TelerikUIExamples.build/Debug-iphoneos/TelerikUIExamples.build/Objects-normal/arm64/TelerikUIExamples_dependency_info.dat
-o /Users/gg/Library/Developer/Xcode/DerivedData/TelerikUIExamples-fsncxcpsvysvphgxrqnhuzcltumd/Build/Products/Debug-iphoneos/TelerikUIExamples.app/TelerikUIExamples
ld: warning: ignoring file ./TelerikUI.framework/TelerikUI, missing
required architecture arm64 in file ./TelerikUI.framework/TelerikUI (3
slices) Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_TKChartPaletteItem", referenced from:
objc-class-ref in Customize.o "_OBJC_CLASS_$_TKLinearGradientFill", referenced from:
objc-class-ref in Customize.o "_OBJC_CLASS_$_TKChartOhlcSeries", referenced from:
objc-class-ref in FinancialChart.o "_OBJC_CLASS_$_TKChartCandlestickSeries", referenced from:
objc-class-ref in IndicatorsViewController.o
objc-class-ref in FinancialChart.o
..
.. and so on

Mach-O Linker Error Xcode 5

I have just updated my Xcode to version 5.0.2
And after updating, all my previously running apps (*perfectly running and archiving) are now giving following errors when I try to archive them for testing on my devices (not connected devices).
Ld /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test normal armv7s
cd /Users/dharammalik/Documents/PhonegapWorkspace/lite_test
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -F/Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos -filelist /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -all_load -Obj-C -fobjc-link-runtime -miphoneos-version-min=5.0 -framework CoreLocation -framework ImageIO -framework OpenAL -framework AssetsLibrary /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -weak_framework CoreMedia -framework CoreLocation -Xlinker -dependency_info -Xlinker /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test_dependency_info.dat -o /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/IntermediateBuildFilesPath/lite_test.build/Release-iphoneos/lite_test.build/Objects-normal/armv7s/lite_test
ld: warning: ignoring file /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/dharammalik/Library/Developer/Xcode/DerivedData/lite_test-hblolzuqyvugvdfpenjeoxvmovrk/Build/Intermediates/ArchiveIntermediates/lite_test/BuildProductsPath/Release-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tried changing the Architectures, but nothing worked. Any idea how to resolve these issues? They were not there at all in the previous version of Xcode I had.
Remove armv7s from valid architectures section and it will work.
Build Settings --> Architectures --> Valid Architectures
Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes
This solved my issue for using old cordova versions in new Xcode 5
I had the same problem and the issue was that I have accidently imported a .m file instead of .h in an implementation file - hope it helps
libCordova.a, file was built for archive which is not the architecture being linked (armv7s)
Looks like your copy of libCordova framework does not contain a armv7s binary.
You need to change the Architectures in the CordovaLib project, not in your lite_test project. I assume when you said you tried changing the Architectures, you only tried in your project and not the Cordova project (since changing in Cordova worked for me) . Remember that Cordova is a dependent project and is compiled into the binary each time you run.

iOS Linking Issues for iOS6 and Armv7

I've recently opened my previously working apps (before i upgraded to the new Xcode for iOS6) and i'm getting some errors. I've redownloaded the frameworks that were kicking back the errors but those same frameworks now seem to be giving me more trouble. Below is the error...
Ld /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp normal armv7
cd "/Users/JohnSlater/Desktop/iOS Apps/iFestival for V 2012"
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Products/Debug-iphoneos "-L/Users/JohnSlater/Desktop/iOS Apps/iFestival for V 2012/iFestApp/Resources/Frameworks/Airship" -F/Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Products/Debug-iphoneos -filelist /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=5.0 -framework QuartzCore -framework Security -framework AudioToolbox -framework MessageUI -framework StoreKit -framework CoreTelephony -lsqlite3 -framework AVFoundation -lz -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework CoreLocation -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lUAirship-1.3.3 -lUAirshipPush-1.3.3 -o /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FlurryAnalytics", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone give me some guidance as i've been unable to find a straight answer.
Thanks.
If you want to support iPhone 5 configurations you have to reconfigure the whole project and make it run with armv7s architecture.
If you just want to get rid of the errors you should remove all the armv7s references, including all libs.
This may help a little: Moving to iOS6 I get this linker error with almost all external packages

Resources