Yesterday I had a project working without problem with Xcode 5. Today, after the update to Xcode 5.1 i have 6 errors and the project is not compiling.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PayPal", referenced from:
objc-class-ref in SUAppDelegate.o
objc-class-ref in SUTViewController.o
"_OBJC_CLASS_$_PayPalAdvancedPayment", referenced from:
objc-class-ref in SUTViewController.o
"_OBJC_CLASS_$_PayPalInvoiceData", referenced from:
objc-class-ref in SUTViewController.o
"_OBJC_CLASS_$_PayPalInvoiceItem", referenced from:
objc-class-ref in SUTViewController.o
"_OBJC_CLASS_$_PayPalReceiverPaymentDetails", referenced from:
objc-class-ref in SUTViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The project includes the PayPal library and it is linked properly into the code. It is there, I can see the library, so it is not a missing library.
Running the code in the 6.1 Simulator compiles without problem.
Can be a problem with the new Xcode 5.1 feature "Updates the iOS standard architecture setting to include 64-bit." ?
Maybe I should change the standard Architecture? Or something related to the PayPal library?
Someone know how to solve that?
Select app target's Build Settings, select Architectures, click on Other... and remove $(ARCHS_STANDARD) and add $(ARCHS_STANDARD_32_BIT)
Below is image for same
Its fix the issue for me.
i think the paypal library you are using, does not support arm64.
check this PayPal-iOS-SDK issue-47 for the updated paypal library.
Edit :- update link for paypal library (with arm64 support)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With