Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse API 1.6.4 - cannot build project

I downloaded the new iOS Parse API (1.6.4) and tried to build my project. When I do, I get this error:

Undefined symbols for architecture arm64" "_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) 
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Screenshot: screenshot

like image 491
mirap Avatar asked Mar 06 '15 12:03

mirap


3 Answers

Temporary workaround for Parse 1.6.4 and Facebook SDK 3.23:

Add to your AppDelegate.m or another class following constant after imports and before implementation section:

NSString *const BFTaskMultipleExceptionsException = @"BFMultipleExceptionsException";

@interface IPAppDelegate ()
@end

@implementation IPAppDelegate

It should solve the problem until it'll be solved on Parse/Facebook side.

-- Update: This solution is only for Facebook and Parse SDK versions that listed above and these versions right now are outdated.

New Parse SDK 1.7.4 works correct with new Facebook SDK 4.0 and there shouldn't be such a problem.

like image 69
ik1 Avatar answered Nov 15 '22 23:11

ik1


I was able to figure out the URL for anyone that needs Parse iOS v1.6.3.

https://parse.com/downloads/ios/parse-library/1.6.3

I can confirm that everything compiles properly using 1.6.3.

like image 27
jdmorgenstein Avatar answered Nov 15 '22 23:11

jdmorgenstein


Placing

NSString *const BFTaskMultipleExceptionsException = @"BFMultipleExceptionsException";

in the App Delegate as suggested by Sergey Surkov in between the imports and the implementation and then adding libstdc++.6.dylib in build phases worked for me. Please also view https://stackoverflow.com/a/27628797/1036945

like image 3
NSCoder Avatar answered Nov 16 '22 00:11

NSCoder