问题描述
昨天我有一个项目在使用 Xcode 5 时没有问题.今天,在更新到 Xcode 5.1 后,我有 6 个错误并且该项目没有编译.
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)
该项目包含 PayPal 库,并正确链接到代码中.它在那里,我可以看到图书馆,所以它不是一个缺失的图书馆.
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.
在 6.1 Simulator 中运行代码编译没有问题.
Running the code in the 6.1 Simulator compiles without problem.
新的 Xcode 5.1 功能更新 iOS 标准架构设置以包含 64 位."可能有问题吗?
Can be a problem with the new Xcode 5.1 feature "Updates the iOS standard architecture setting to include 64-bit." ?
也许我应该更改标准架构?或者与 PayPal 库相关的东西?
Maybe I should change the standard Architecture? Or something related to the PayPal library?
有人知道怎么解决吗?
推荐答案
我认为您使用的 paypal 库不支持 arm64.
i think the paypal library you are using, does not support arm64.
检查这个 PayPal-iOS-SDK issue-47更新了贝宝库.
check this PayPal-iOS-SDK issue-47 for the updated paypal library.
- 更新链接 paypal 库(支持 arm64)
Edit :- update link for paypal library (with arm64 support)
这篇关于Xcode 5.1 和 x86_64 架构的编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!