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.
Related
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!
This problem has begun occurring since updating my app for IOS 9 and is driving me crazy.
There were no problems with the app in IOS 8.4.1
I have listed the problem below first for reference and then after described what i have tried so far:
Ld /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos/PulseGuard.app/PulseGuard normal armv7
cd /Users/Chris/Documents/pulseguardproject
export IPHONEOS_DEPLOYMENT_TARGET=7.1
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.0.sdk -L/Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos -F/Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos -F/Users/Chris/Documents/pulseguardproject/sdk/dependencies -filelist /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Intermediates/PulseGuard.build/Debug-iphoneos/PulseGuard.build/Objects-normal/armv7/PulseGuard.LinkFileList -miphoneos-version-min=7.1 -dead_strip -all_load -lstdc++ -fobjc-arc -fobjc-link-runtime -lz -framework WFConnector -framework MessageUI -framework ExternalAccessory -framework MediaPlayer -framework AudioToolbox -framework AVFoundation -framework CoreBluetooth -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -Xlinker -dependency_info -Xlinker /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Intermediates/PulseGuard.build/Debug-iphoneos/PulseGuard.build/Objects-normal/armv7/PulseGuard_dependency_info.dat -o /Users/Chris/Library/Developer/Xcode/DerivedData/PulseGuard-fqkhdzxugiorktbjaulqdzejnydu/Build/Products/Debug-iphoneos/PulseGuard.app/PulseGuard
Undefined symbols for architecture armv7:
"_SCNetworkReachabilityGetFlags", referenced from:
-[WFAPIReachability isReachable] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isReachableViaWWAN] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isReachableViaWiFi] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability connectionRequired] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isConnectionOnDemand] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability isInterventionRequired] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability reachabilityFlags] in WFConnector(WFAPIReachability.o)
...
"_SCNetworkReachabilitySetDispatchQueue", referenced from:
-[WFAPIReachability startNotifier] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability stopNotifier] in WFConnector(WFAPIReachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[WFAPIReachability startNotifier] in WFConnector(WFAPIReachability.o)
-[WFAPIReachability stopNotifier] in WFConnector(WFAPIReachability.o)
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[WFAPIReachability reachabilityWithAddress:] in WFConnector(WFAPIReachability.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
+[WFAPIReachability reachabilityWithHostname:] in WFConnector(WFAPIReachability.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is what i have tried so far:
Updating the WFConnector framework to the latest version which is compatible with IOS 9.
Looked through the Build Settings and removed any reference to the old version of the framework.
Searched the internet for any other references to the problem, the only one found was here Undefined symbols for architecture armv7 which i have checked through however has not solved my problem.
I did notice that the libz.dylib framework was missing since updating and so have tried searching in /usr/lib/ and manually adding the framework back in, this has not worked, i have also added the new libz.tbd file into the framework list however this also has not fixed the problem.
Can anyone please suggest the correct solution to this problem?
I discovered the answer to this problem was a missing framework called "SystemConfiguration.framework"
Once this had been added all the errors resolved and the app loaded without issue.
When integrating the Apptentive iOS SDK via Cocoapods, I get the following errors:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ATConnect", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_ATAppRatingFlow", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_ATSurveys", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang:
error: linker command failed with exit code 1 (use -v to see invocation)
How should these errors be fixed?
We have found that adding the Apptentive cocoa pod to an existing Xcode project may potentially not include some of our required frameworks.
Check your linker flags:
Target > Build Settings > Other Linker Flags
You should see -lApptentiveConnect listed as a linker flag:
... -ObjC -lApptentiveConnect ...
You should also see our required Frameworks listed:
Accelerate
CoreData
CoreText
CoreGraphics
CoreTelephony
Foundation
QuartzCore
StoreKit
SystemConfiguration
UIKit
-ObjC -lApptentiveConnect -framework Accelerate -framework CoreData -framework CoreGraphics -framework CoreText -framework Foundation -framework QuartzCore -framework SystemConfiguration -framework UIKit -framework CoreTelephony -framework StoreKit
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
I have this message from Xcode
Ld /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp normal armv7
cd /Users/myUsername/Documents/_IPAD/myApp
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
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/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Products/Debug-iphoneos -F/Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Products/Debug-iphoneos -filelist /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=4.3 -framework AudioToolbox -framework SystemConfiguration -framework QuartzCore -framework OpenAL -framework CoreGraphics -framework CFNetwork -framework MessageUI -framework CoreData -framework AVFoundation -framework StoreKit -framework UIKit -framework Foundation -o /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What exactly is not found? If it is saying that something was not found where is this not found stuff being looked for? Or in other words, if xcode is searching for something it is searching somewhere, where and what?
The ViewController object is not found and it was referenced within AppDelegate. You do not link ViewController into your app. Check if your Compile Sources section within the Build Phases of your project shows ViewController.m.
I just ran into this. Turns out I didn't add the new source to all of the targets that needed it. Maybe this will help someone in the future.. :)
I got same error after updating xCode 6beta to xCode 6.0.1. After spending a lot of time I fixed it by deleting "Derived Data" from Window -> Organizer -> Projects -> #Select project# and pressed Delete in the "Derived Data".