iOS Mach-o linker error parse - ios

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.

Related

Using Parse Framework with Xcode 6.2 - ie. 64 bit

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.

Cocoapods ld: symbol(s) not found for architecture armv7s

After updating my pods and xcode, I've come across problems in the last phase of the build process (linking). I've tried switching up the architectures as well as setting the build active architecture to on and off, but it doesn't seem to be doing anything.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SRWebSocket", referenced from:
objc-class-ref in BLYClient.o
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in BLYClient.o
"_kReachabilityChangedNotification", referenced from:
-[BLYClient initWithAppKey:delegate:hostName:] in BLYClient.o
"_OBJC_CLASS_$_FBRequestConnection", referenced from:
objc-class-ref in LCAccountRegistrationViewController.o
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in LCAccountRegistrationViewController.o
"_OBJC_CLASS_$_JASidePanelController", referenced from:
_OBJC_CLASS_$_LCMainRevealController in LCMainRevealController.o
"_OBJC_CLASS_$_SEEPhoneNumberFormatter", referenced from:
objc-class-ref in LCPhoneFormatter.o
"_OBJC_CLASS_$_SKInnerShadowLayer", referenced from:
objc-class-ref in LCInnerShadowView.o
"_OBJC_CLASS_$_AFHTTPClient", referenced from:
_OBJC_CLASS_$_LCHTTPClient in LCHTTPClient.o
"_OBJC_METACLASS_$_JASidePanelController", referenced from:
_OBJC_METACLASS_$_LCMainRevealController in LCMainRevealController.o
"_OBJC_CLASS_$_BITHockeyManager", referenced from:
objc-class-ref in LCAppDelegate.o
"_OBJC_CLASS_$_AFNetworkActivityIndicatorManager", referenced from:
objc-class-ref in LCHTTPClient.o
"_OBJC_CLASS_$_Lockbox", referenced from:
objc-class-ref in LCKey.o
objc-class-ref in LCSettings.o
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in LCApi+Internal.o
"_OBJC_CLASS_$_AFHTTPRequestOperationLogger", referenced from:
objc-class-ref in LCAppDelegate.o
"_OBJC_CLASS_$_AFJSONRequestOperation", referenced from:
objc-class-ref in LCHTTPClient.o
"_OBJC_METACLASS_$_AFHTTPClient", referenced from:
_OBJC_METACLASS_$_LCHTTPClient in LCHTTPClient.o
"_OBJC_CLASS_$_RHDisplayLinkStepper", referenced from:
objc-class-ref in LCLockSwipeView.o
objc-class-ref in LCLockUpdatingProgressView.o
"_OBJC_CLASS_$_MagicalRecord", referenced from:
objc-class-ref in LCAppDelegate.o
objc-class-ref in LCApi+Locks.o
objc-class-ref in LCApi+Keys.o
objc-class-ref in LCBTLockScanner.o
objc-class-ref in LCBTLockForegroundScanner.o
objc-class-ref in LCBTLock.o
objc-class-ref in LCRootViewController.o
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas?
I just had the same issue. The "Other Linker Flags" was overriding the flags from CocoaPods. In fact I got a warning about it-
[!] The `sftest [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-sftest/Pods-sftest.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
Changing "Other Linker Flags" to $(inherited) did indeed solve the problem.

Parse framework in Xcode project

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

SWIFT Apple Mach-O Linker Error "_OBJC_CLASS_$_BFExectur"

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! :-)

Error when connecting iOS app to parse: Undefined symbols for architecture i386

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.

Resources