Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5.1 and compiling error for architecture x86_64

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?

like image 832
Gabriel.Massana Avatar asked Nov 30 '22 00:11

Gabriel.Massana


2 Answers

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 sameIn app Target's -> Build Settings -> Architectures

Its fix the issue for me.

like image 86
Hardik Darji Avatar answered Dec 06 '22 02:12

Hardik Darji


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)

like image 23
Pawan Rai Avatar answered Dec 06 '22 02:12

Pawan Rai