I added the latest framework 1.64 to my project and now it won't build with the following errors:-
Undefined symbols for architecture x86_64:
"_BFTaskMultipleExceptionsException", referenced from:
___53+[PFObject(Private) deleteAllAsync:withSessionToken:]_block_invoke214 in Parse(PFObject.o)
___65+[PFObject(Private) _deepSaveAsync:withCurrentUser:sessionToken:]_block_invoke311 in Parse(PFObject.o)
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(Parse.o)
objc-class-ref in Parse(PFCommandCache.o)
objc-class-ref in Parse(PFConfig.o)
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFPinningEventuallyQueue.o)
objc-class-ref in Parse(PFUser.o)
objc-class-ref in Parse(PFEventuallyQueue.o)
...
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(PFQuery.o)
objc-class-ref in Parse(Parse.o)
objc-class-ref in Parse(PFCommandCache.o)
objc-class-ref in Parse(PFConfig.o)
objc-class-ref in Parse(PFEventuallyPin.o)
objc-class-ref in Parse(PFInstallation.o)
objc-class-ref in Parse(PFObject.o)
...
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFOfflineStore.o)
objc-class-ref in Parse(PFEventuallyQueue.o)
objc-class-ref in Parse(PFSQLiteDatabase.o)
objc-class-ref in Parse(BFTask+Private.o)
objc-class-ref in Parse(PFNetworkCommandRunner.o)
objc-class-ref in Parse(PFTaskHTTPRequestOperation.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code
Seems to suggest that the Parse framework isn't 64bit. Any ideas how to fix, as all apps submitted to the App Store have to be 64bit.
I had the same problem as you and first off you may try to overcome that by upgrading Parse.framework since it already supported 64-bit. Also make sure you setup architectures correctly for that. You may check this out for more details. Also install new Facebook SDK. In my case once I've done the above, my errors are gone. Hope this helps.
Related
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
Undefined symbols for architecture x86_64:
"_BFTaskMultipleExceptionsException", referenced from:
___53+[PFObject(Private) deleteAllAsync:withSessionToken:]_block_invoke226 in Parse(PFObject.o)
___65+[PFObject(Private) _deepSaveAsync:withCurrentUser:sessionToken:]_block_invoke319 in Parse(PFObject.o)
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFFile.o)
objc-class-ref in Parse(PFFileManager.o)
objc-class-ref in Parse(PFInstallation.o)
objc-class-ref in Parse(PFPin.o)
objc-class-ref in Parse(PFSession.o)
objc-class-ref in Parse(PFUser.o)
...
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFEventuallyPin.o)
objc-class-ref in Parse(PFFile.o)
objc-class-ref in Parse(PFFileManager.o)
objc-class-ref in Parse(PFInstallation.o)
objc-class-ref in Parse(PFPin.o)
objc-class-ref in Parse(PFEncoder.o)
...
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFOfflineStore.o)
objc-class-ref in Parse(BFTask+Private.o)
objc-class-ref in Parse(PFEventuallyQueue.o)
objc-class-ref in Parse(PFSQLiteDatabase.o)
objc-class-ref in Parse(PFTaskHTTPRequestOperation.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 am getting this error
I used below link as reference and I implemented all framework from that
Apple Mach-O Linker Error Parse
My code is in Swift and I can not able to find that how to solve that error.
Anyone can reply for this?
Try this ways:
1) if you use also use the Facebook SDK look at this question. The solution seems to be:
Add to your AppDelegate.m or another class following constant after
imports and before implementation section: NSString *const
BFTaskMultipleExceptionsException = #"BFMultipleExceptionsException";
2) check your Library Search Paths Flag, maybe you have old reference no more present in your project.
3) remove the -ObjC flag in Other Linker Flags on Build Settings.
My app that I am making requires Parse framework, but when I import Parse framework into my app, I get many errors that say the following in Apple Mach-O Linker error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(BFTask+Private.o)
l_OBJC_$_CATEGORY_BFExecutor_$_Background in Parse(BFTask+Private.o)
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFQuery.o)
objc-class-ref in Parse(PFCachedCommandRunner.o)
objc-class-ref in Parse(PFFile.o)
objc-class-ref in Parse(PFNetworkCommandRunner.o)
objc-class-ref in Parse(PFRetryingCommandRunner.o)
objc-class-ref in Parse(PFTaskQueue.o)
...
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFCommandCache.o)
objc-class-ref in Parse(PFNetworkCommandRunner.o)
objc-class-ref in Parse(PFTaskHTTPRequestOperation.o)
objc-class-ref in Parse(BFTask+Private.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If you know how to fix this, and make the app able to build, please let me know.
Make sure that you have the bolts.framework in your app
Trying to use Parse with X-code and objective C. 4 different errors pop up. Suggestions?
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(BFTask+Private.o)
l_OBJC_$_CATEGORY_BFExecutor_$_Background in Parse(BFTask+Private.o)
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(PSObject.o)
objc-class-ref in Parse(PFFile.o)
objc-class-ref in Parse(PFNetworkCommandRunner.o)
objc-class-ref in Parse(PFQuery.o)
objc-class-ref in Parse(PFRetryingCommandRunner.o)
objc-class-ref in Parse(PFTaskQueue.o)
objc-class-ref in Parse(PFUser.o)
...
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFCommandCache.o)
objc-class-ref in Parse(PFFile.o)
objc-class-ref in Parse(PFNetworkCommandRunner.o)
objc-class-ref in Parse(BFTask+Private.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You need to add the Bolts.framework as well. That's why you are getting those errors! :-)
I am new to iOS and Parse and have successfully utilized the service for one of my current apps. However, I have started a second app and when I go to connect the app to parse (using application ID and client key) I am getting 4 errors. They read as:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BFExecutor", referenced from:
objc-class-ref in Parse(BFTask+Private.o)
l_OBJC_$_CATEGORY_BFExecutor_$_Background in Parse(BFTask+Private.o)
"_OBJC_CLASS_$_BFTask", referenced from:
objc-class-ref in Parse(PFUser.o)
objc-class-ref in Parse(PFFile.o)
objc-class-ref in Parse(PFNetworkCommandRunner.o)
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(PFPush.o)
objc-class-ref in Parse(PFRetryingCommandRunner.o)
l_OBJC_$_CATEGORY_BFTask_$_Private in Parse(BFTask+Private.o)
...
"_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
objc-class-ref in Parse(PFCommandCache.o)
objc-class-ref in Parse(PFFile.o)
objc-class-ref in Parse(PFNetworkCommandRunner.o)
objc-class-ref in Parse(PFObject.o)
objc-class-ref in Parse(BFTask+Private.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You forgot to add Bolts.framework . Please add it. All the errors shall be fixed after that.