iOS应用:在模拟器上运行但不构建.app

时间:2014-03-18 10:00:13

标签: ios objective-c xcode cordova cordova-3

我正在使用Cordova开发iOS应用程序。 该应用程序在我的iPhone 5(iOS 7.1)上运行完美,在模拟器上运行完美,但是当我尝试在我的朋友iPhone上运行它时我出错了,我无法生成.app文件。

以下是我得到的错误:

ld: warning: ignoring file /Users/cherif/Library/Developer/Xcode/DerivedData/Twimbee-apcdinaymdyzzqbxokrfwnthqoes/Build/Intermediates/ArchiveIntermediates/Twimbee/BuildProductsPath/Release-iphoneos/libCordova.a, missing required architecture arm64 in file /Users/cherif/Library/Developer/Xcode/DerivedData/Twimbee-apcdinaymdyzzqbxokrfwnthqoes/Build/Intermediates/ArchiveIntermediates/Twimbee/BuildProductsPath/Release-iphoneos/libCordova.a (2 slices)
Undefined symbols for architecture arm64:
  "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_METACLASS_$_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_CLASS_$_CDVViewController", referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
      objc-class-ref in CDVDevice.o
  "_OBJC_METACLASS_$_CDVCommandQueue", referenced from:
      _OBJC_METACLASS_$_MainCommandQueue in MainViewController.o
  "_CDVPluginHandleOpenURLNotification", referenced from:
      -[AppDelegate application:handleOpenURL:] in AppDelegate.o
  "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_CLASS_$_CDVPluginResult", referenced from:
      objc-class-ref in FacebookConnectPlugin.o
      objc-class-ref in CDVLocation.o
      objc-class-ref in CDVDevice.o
      objc-class-ref in PushPlugin.o
  "_CDVLocalNotification", referenced from:
      -[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
  "_OBJC_CLASS_$_CDVPlugin", referenced from:
      _OBJC_CLASS_$_FacebookConnectPlugin in FacebookConnectPlugin.o
      _OBJC_CLASS_$_CDVLogger in CDVLogger.o
      _OBJC_CLASS_$_CDVLocation in CDVLocation.o
      _OBJC_CLASS_$_CDVDevice in CDVDevice.o
      _OBJC_CLASS_$_PushPlugin in PushPlugin.o
  "_OBJC_METACLASS_$_CDVPlugin", referenced from:
      _OBJC_METACLASS_$_FacebookConnectPlugin in FacebookConnectPlugin.o
      _OBJC_METACLASS_$_CDVLogger in CDVLogger.o
      _OBJC_METACLASS_$_CDVLocation in CDVLocation.o
      _OBJC_METACLASS_$_CDVDevice in CDVDevice.o
      _OBJC_METACLASS_$_PushPlugin in PushPlugin.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我是iOS和xCode的新手,请帮忙!

3 个答案:

答案 0 :(得分:2)

我解决了这个问题。 在为arm64设备构建时,xCode 5.1实际上存在很少的Cordova问题。 有一些简单的构建设置配置要做。 这是一个简短的教程: http://shazronatadobe.wordpress.com/2014/03/12/xcode-5-1-and-cordova-ios/

答案 1 :(得分:0)

好的!我遇到了同样的问题。那样做:

  1. 点击您的项目(目标)
  2. 点击“构建设置”
  3. 在“图书馆搜索路径”下,删除路径
  4. 祝你好运; - )

答案 2 :(得分:0)

构建设置>的架构

enter image description here