【发布时间】:2013-06-23 01:28:10
【问题描述】:
我刚刚将我的 iPhone 4S 软件更新到 iOS 7 Beta 2,而我正在对一个新应用 (Phonegap) 进行最后的润色。这不是一个好主意!
完成后,Xcode 没有检测到我的 iPhone,所以我安装了 Xcode 5 beta。在修补它之后,我终于让它检测到我的手机。现在唯一的问题是使用的架构有错误。
以下是产生的错误:
ld: warning: ignoring file /Users/-----------/Library/Developer/Xcode/DerivedData/testtest-bmnbmujiosugcmgeiceofgcfmsec/Build/Products/Debug-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/--------/Library/Developer/Xcode/DerivedData/testtest-bmnbmujiosugcmgeiceofgcfmsec/Build/Products/Debug-iphoneos/libCordova.a
Undefined symbols for architecture armv7s:
"_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
"_CDVLocalNotification", referenced from:
-[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
"_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
_OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
"_OBJC_CLASS_$_CDVCommandQueue", referenced from:
_OBJC_CLASS_$_MainCommandQueue in MainViewController.o
"_OBJC_METACLASS_$_CDVViewController", referenced from:
_OBJC_METACLASS_$_MainViewController in MainViewController.o
"_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
_OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
"_CDVPluginHandleOpenURLNotification", referenced from:
-[AppDelegate application:handleOpenURL:] in AppDelegate.o
"_OBJC_CLASS_$_CDVViewController", referenced from:
_OBJC_CLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
对于架构应该改变什么以使其在我的手机上工作有什么想法吗? (在模拟器上运行良好)
【问题讨论】:
-
您的构建设置 -> 架构中有什么?
-
我只有一个:$(ARCHS_STANDARD_32_BIT) 并且在有效架构下我有:armv7 和 armv7s
标签: cordova static-libraries cpu-architecture ios7 xcode5