相关疑难解决方法(0)

更新到Xcode 5 - ld:未找到架构armv7或armv7s链接器错误的符号

我刚刚将我的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: …
Run Code Online (Sandbox Code Playgroud)

cpu-architecture static-libraries cordova ios7 xcode5

69
推荐指数
4
解决办法
6万
查看次数

Phonegap/Cordova构建错误 - Apple Mach-O链接器错误:没有这样的文件或目录:libCordova.a

创建一个新的Cordova 2.1.0项目并使用以前的PhoneGap应用程序中的一些代码更新www文件夹后,我收到一个错误.

clang: error: no such file or directory: '/Users/peterbanjo/Library/Developer/Xcode/DerivedData/OpuzMobile-bhwawiqfaptmxvfosawfabudgbkj/Build/Products/Debug-iphoneos/libCordova.a'
Run Code Online (Sandbox Code Playgroud)

只有当我尝试在设备上运行应用程序时才会出现错误 - 在模拟器中它运行正常.

我在目标iPad上运行Xcode 4.5和iOS6.我尝试了一个干净的构建,并且libCordova.a出现在Build Phases> Link Library With Libraries选项卡中,但它是红色的.

xcode cordova

32
推荐指数
3
解决办法
3万
查看次数