Xcode 5 app archiving wont work - ios

Please help me out, I get the following warning and 12 errors!
I already tried changing the build active architecture only to no.
l
d: warning: ignoring file /Users/kevin/Library/Developer/Xcode/DerivedData/Move4u-ewfgdiwoasxtpydtflwbbzybqgqp/Build/Intermediates/ArchiveIntermediates/Move4u/BuildProductsPath/Release-iphoneos/libCordova.a, missing required architecture arm64 in file /Users/kevin/Library/Developer/Xcode/DerivedData/Move4u-ewfgdiwoasxtpydtflwbbzybqgqp/Build/Intermediates/ArchiveIntermediates/Move4u/BuildProductsPath/Release-iphoneos/libCordova.a (2 slices)
Undefined symbols for architecture arm64:
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_DatePicker in DatePicker.o
"_OBJC_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_DatePicker in DatePicker.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in DatePicker.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_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Try to remove arm64 from the valid architectures.

Related

iOS Undefined symbols for architecture x86_64 Xcode

I have installed some third party frameworks in my app. Every thing was working fine and suddenly one day i started to get the following errors. Please note that these linker errors appear only when i try to run my app on iOS Simulator.
Undefined symbols for architecture x86_64:
"_AFNetworkingOperationFailingURLResponseDataErrorKey", referenced from:
___61-[DataManager signupWithEmail:password:name:success:failure:]_block_invoke.127 in DataManager.o
___46-[DataManager favoriteLesson:success:failure:]_block_invoke.311 in DataManager.o
___48-[DataManager unfavoriteLesson:success:failure:]_block_invoke.345 in DataManager.o
"_AFStringFromNetworkReachabilityStatus", referenced from:
___41-[DataManager startObservingReachability]_block_invoke in DataManager.o
"_OBJC_CLASS_$_ADJConfig", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_ADJEvent", referenced from:
objc-class-ref in TrackingHelper.o
"_OBJC_CLASS_$_AFCompoundResponseSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFHTTPResponseSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFNetworkReachabilityManager", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFURLSessionManager", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AMTagView", referenced from:
objc-class-ref in CategorySelectionViewController.o
"_OBJC_CLASS_$_Adjust", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in TrackingHelper.o
"_OBJC_CLASS_$_CarbonTabSwipeNavigation", referenced from:
objc-class-ref in MyProfileViewController.o
objc-class-ref in SearchResultsContainerViewController.o
"_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
objc-class-ref in SignUpViewController.o
objc-class-ref in MyProfileViewController.o
"_OBJC_CLASS_$_FBSDKAppEvents", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
objc-class-ref in SignUpViewController.o
objc-class-ref in DataManager.o
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_MGSwipeButton", referenced from:
objc-class-ref in LessonsViewController.o
"_OBJC_CLASS_$_MGSwipeTableCell", referenced from:
_OBJC_CLASS_$_LessonTableViewCell in LessonTableViewCell.o
"_OBJC_CLASS_$_Mixpanel", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in InitialViewController.o
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_WYPopoverController", referenced from:
objc-class-ref in GuideViewController.o
"_OBJC_METACLASS_$_MGSwipeTableCell", referenced from:
_OBJC_METACLASS_$_LessonTableViewCell in LessonTableViewCell.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help will be highly appreciated. I can debug, build and archive my project, if i do it on actual device but not on simulator. I have added all these frameworks via cocapods and i am using Xcode 7.3.
I had faced the same error. Like below
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
objc-class-ref in CuebiqSDK(BADispatcherHelper.o)
"_OBJC_CLASS_$_AFURLSessionManager", referenced from:
objc-class-ref in CuebiqSDK(BADispatcherHelper.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I haven't added the AFURLSessionManager related classes in my project as mentioned in error. So, I added all the AFNetworking classes solved the problem. Make sure they are added to project target and shown under Build phases->Compile Sources

Unity - using Fabric causes problems with iOS

We're using Fabric with Crashlytics in our Unity Game and after building the iOS project with Unity and starting in Xcode we get about 26 errors:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FABNetworkResponseHandler", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_OBJC_CLASS_$_CLSURLSession", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_OBJC_CLASS_$_FABCertificatePinner", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_FABGenerateUUID", referenced from:
-[CLSAnalyticsIdentifierGenerator generateSessionFragmentIdentifier] in Crashlytics(CLSAnalyticsIdentifierGenerator.o)
-[CLSAnalyticsIdentifierGenerator generateEventIdentifier] in Crashlytics(CLSAnalyticsIdentifierGenerator.o)
"_FABApplicationShouldReportDeviceIdentifiers", referenced from:
+[CLSAnalyticsMetadataController identifierForAdvertising] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostGetOSVersion", referenced from:
_CLSHostGetNormalizedOSVersion in Crashlytics(CLSHost.o)
"_FABApplicationInstallationSource", referenced from:
+[CLSBetaController isBetaSupported] in Crashlytics(CLSBetaController.o)
-[CLSBetaController appInstallationSource] in Crashlytics(CLSBetaController.o)
"_CLSMachOFormatVersion", referenced from:
_CLSBinaryImageRecordMainExecutable in Crashlytics(CLSBinaryImage.o)
"_FABHostGetNormalizedOSVersion", referenced from:
_CLSBetaToken in Crashlytics(CLSBetaToken.o)
"_OBJC_CLASS_$_FABURLBuilder", referenced from:
objc-class-ref in Crashlytics(CLSBetaController.o)
objc-class-ref in Crashlytics(CLSReportsController.o)
"_FABApplicationGetShortBundleVersion", referenced from:
___CLSContextInitialize_block_invoke26 in Crashlytics(CLSContext.o)
-[CLSBetaController appDisplayVersion] in Crashlytics(CLSBetaController.o)
+[CLSAnalyticsMetadataController bundleShortVersion] in Crashlytics(CLSAnalyticsMetadataController.o)
"_OBJC_CLASS_$_FABNetworkClient", referenced from:
objc-class-ref in Crashlytics(CLSBetaController.o)
objc-class-ref in Crashlytics(CLSAnalyticsNetworkingClient.o)
"_OBJC_CLASS_$_FABMultipartMimeStreamEncoder", referenced from:
objc-class-ref in Crashlytics(CLSAnalyticsNetworkingClient.o)
objc-class-ref in Crashlytics(CLSReportsController.o)
objc-class-ref in Crashlytics(CLSPackageReportOperation.o)
"_FABNetworkMaximumRetryCount", referenced from:
___51-[CLSBetaController loadUpdateWithCompletionBlock:]_block_invoke in Crashlytics(CLSBetaController.o)
-[CLSAnalyticsNetworkingClient transmitLogFilesAtURLs:toURL:withAPIKey:completionHandler:] in Crashlytics(CLSAnalyticsNetworkingClient.o)
"_OBJC_CLASS_$_CLSURLSessionConfiguration", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_OBJC_CLASS_$_CLSUserDefaults", referenced from:
objc-class-ref in Crashlytics(CLSAnalyticsController.o)
"_FABApplicationGetBundleVersion", referenced from:
___CLSContextInitialize_block_invoke26 in Crashlytics(CLSContext.o)
-[CLSBetaController appBuildVersion] in Crashlytics(CLSBetaController.o)
+[CLSAnalyticsMetadataController bundleVersion] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABEnumerateByteRangesOfNSDataUsingBlock", referenced from:
-[CLSPackageReportOperation compressData:toPath:] in Crashlytics(CLSPackageReportOperation.o)
"_FABApplicationGetName", referenced from:
-[CLSBetaUpdate promptMessage] in Crashlytics(CLSBetaUpdate.o)
"_FABSettingsAvailableNotification", referenced from:
-[CLSAnalyticsController initWithSessionIdentifier:sessionTimestamp:analyticsRootDirectoryWithURL:betaToken:identifierGenerator:timestampGenerator:metadataController:networkingClient:] in Crashlytics(CLSAnalyticsController.o)
-[CLSBetaController start] in Crashlytics(CLSBetaController.o)
"_FABApplicationGetBundleIdentifier", referenced from:
___30-[Answers startWithBetaToken:]_block_invoke in Crashlytics(Answers.o)
___CLSContextInitialize_block_invoke26 in Crashlytics(CLSContext.o)
-[CLSBetaController appBundleIdentifier] in Crashlytics(CLSBetaController.o)
-[CLSCrashReportingController bundleIdentifier] in Crashlytics(CLSCrashReportingController.o)
-[CLSFileManager pathNamespace] in Crashlytics(CLSFileManager.o)
+[CLSAnalyticsMetadataController bundleIdentifier] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostOSBuildVersion", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
+[CLSAnalyticsMetadataController hostOSVersion] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostModelInfo", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
+[CLSAnalyticsMetadataController hostModel] in Crashlytics(CLSAnalyticsMetadataController.o)
+[CLSAnalyticsMetadataController hostMachine] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostOSDisplayVersion", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
+[CLSAnalyticsMetadataController hostOSVersionName] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABBuiltinCertificates", referenced from:
+[CLSBetaController pinnnedCertificates] in Crashlytics(CLSBetaController.o)
+[CLSNetworkClient pinner] in Crashlytics(CLSNetworkClient.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any idea how we can fix that issue? I checked the files in Unity and it seems everything is imported fine.
Fixed it somehow through reimporting the whole Fabric SDK in Unity - so deleting all files regarding Fabric and Crashlytics in the project and then importing Fabric again.

Cordova app fails again on linking after updating to cordova 3.4.1 iOS

When trying to build my app for archiving and updating to cordova 3.4.1 I get this linking error message. I solved something similar before but I am afraid to touch the build settings because x86_64 does not seem to be a supported architecture.
What can I do?
ld: warning: ignoring file /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (x86_64): /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a
Undefined symbols for architecture x86_64:
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_CDVPageDidLoadNotification", referenced from:
This is the error message I get (it's much longer of course).
Any help is appreciated.
Bogdan
Added full error log:
ld: warning: ignoring file /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (x86_64): /Users/bogdan/Library/Developer/Xcode/DerivedData/Eazybreak-ctqyotqyclrvjoghewxpdeoemnkd/Build/Products/Debug-iphonesimulator/libCordova.a
Undefined symbols for architecture x86_64:
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_CDVPageDidLoadNotification", referenced from:
-[CDVSplashScreen pluginInitialize] in CDVSplashScreen.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] 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_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_CDVDevice in CDVDevice.o
_OBJC_CLASS_$_CDVConnection in CDVConnection.o
_OBJC_CLASS_$_CDVNotification in CDVNotification.o
_OBJC_CLASS_$_CDVSplashScreen in CDVSplashScreen.o
"_OBJC_CLASS_$_CDVPluginResult", referenced from:
objc-class-ref in CDVDevice.o
objc-class-ref in CDVConnection.o
objc-class-ref in CDVNotification.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
objc-class-ref in CDVDevice.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_CDVDevice in CDVDevice.o
_OBJC_METACLASS_$_CDVConnection in CDVConnection.o
_OBJC_METACLASS_$_CDVNotification in CDVNotification.o
_OBJC_METACLASS_$_CDVSplashScreen in CDVSplashScreen.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Try removing x86_64 from Build Settings > Valid Architectures. I had a similar problem with arm64 architecture.

Xcode Not Deploying Phonegap App To 64bit Simulator Or Iphone 5s

I have a phonegap project that deploys just fine on Iphone 5 running IOS 7 and older Phones to like Iphone 4. It also deploys to the 4 inch simulator just fine. However if i try to deploy on any 64 bit simulator or Iphone 5S which is a 64bit phone, the build fails and I dont know why.
The error it gives is as below. "_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] 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_CLASS_$_CDVPlugin", referenced from:
_OBJC_CLASS_$_CDVLogger in CDVLogger.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVPlugin", referenced from:
_OBJC_METACLASS_$_CDVLogger in CDVLogger.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Go to Build Settings --> Architectures --> Valid Architectures
Remove arm64 from valid architectures section and try building.

Admob ios x64 error

I'm trying to test Admob Banner on iPad Mini Retina. Now I'm getting this error:
Undefined symbols for architecture arm64:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
l002 in libGoogleAdMobAds.a(GADGestureUtil.o) "_AudioServicesPlaySystemSound", referenced from:
-[GADDefaultGMSGHandler didReceiveVibrateNotification:] in libGoogleAdMobAds.a(GADDefaultGMSGHandler.o)
"_AudioSessionInitialize", referenced from:
-[GADDevice audioRouteUsingAudioToolkit] in libGoogleAdMobAds.a(GADDevice.o) "_OBJC_CLASS_$_AVAudioSession",
referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_AVAudioSessionPortHeadphones", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o) "_AudioSessionGetProperty",
referenced from:
-[GADDevice audioRouteUsingAudioToolkit] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SCNetworkReachabilityGetFlags", referenced from:
l002 in libGoogleAdMobAds.a(GADGestureUtil.o) "_SCNetworkReachabilitySetCallback", referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_OBJC_CLASS_$_MFMessageComposeViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_AVAudioSessionPortBuiltInSpeaker", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[GADNetworkChecker stopNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_SCNetworkReachabilityCreateWithName", referenced from:
-[GADNetworkChecker startNetworkChecking] in libGoogleAdMobAds.a(GADNetworkChecker.o)
"_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o) ld: symbol(s) not found for
architecture arm64 clang: error: linker command failed with exit code
1 (use -v to see invocation)
I found a solution which removes some errors. It is to add some Frameworks. List of them:
AudioToolbox.Framework
MessageUI.Framework
SystemConfiguration.Framework
CoreGraphics.Framework
CoreData.Framework
AdSupport.Framework
MediaPlayer.framework
But anyway I have got this error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_AVAudioSession", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_AVAudioSessionPortBuiltInSpeaker", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) "_AVAudioSessionPortHeadphones", referenced from:
-[GADDevice audioRouteUsingAVAudioSession] in libGoogleAdMobAds.a(GADDevice.o)
"_OBJC_CLASS_$_SKStoreProductViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SKStoreProductParameterITunesItemIdentifier", referenced from:
-[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o) ld: symbol(s) not found for
architecture arm64 clang: error: linker command failed with exit code
1 (use -v to see invocation)
How to solve this issue?
Just add following frameworks BuildSettings -> Build Phase -> Link Binary with libraries
StoreKit.framework
CoreTelephony.framework
AVFoundation.framework

Resources