【发布时间】:2013-06-06 13:06:11
【问题描述】:
我在 phonegap-2.7.0 中使用create 创建了一个模板项目。该项目将不启用 ARC,我想将其转换为 ARC。
我去了 Edit -> Refractor -> Convert to Objective-C ARC 和 unselected libCordova.a(as mentioned here 和 upgrade guide 2.0.0 to 2.0.1)并尝试转换为 ARC。一切都正确编译,但最后我得到了这个链接器错误。
我使用的是 Xcode 4.5
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: 无法弄清楚以下架构类型: /Users/administrator/Library/Developer/Xcode/DerivedData/ServerSockPG-cbdtpihmguyehtaqenaxuqiwkpyz/Build/Intermediates/ServerSockPG.build/Debug-iphoneos/ServerSockPG.build/Objects-normal/armv7/ServerSockPG 命令
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo 失败,退出代码 1
请指导我如何解决这个问题。
【问题讨论】:
-
转到构建设置 -> 架构并确保选择的架构是 armv7、armv7s
标签: ios cordova automatic-ref-counting xcode4.5