IOS体系结构64位

IOS体系结构64位,ios,iphone,xcode,cordova,app-store-connect,Ios,Iphone,Xcode,Cordova,App Store Connect,我们的phonegap应用程序为iphone模拟器构建良好,但在iphone上构建应用程序时会生成链接器错误。唯一改变的是安装testflight和一个测试应用程序 我们已经删除了testflight和测试应用程序,但链接器错误仍然存在 有没有办法解决这个问题 我们使用的是xcode 6.2和ordova 3.4.0 错误: ld: warning: ignoring file /Users/gusph/Library/Developer/Xcode/DerivedData/momitSHDAp

我们的phonegap应用程序为iphone模拟器构建良好,但在iphone上构建应用程序时会生成链接器错误。唯一改变的是安装testflight和一个测试应用程序

我们已经删除了testflight和测试应用程序,但链接器错误仍然存在

有没有办法解决这个问题

我们使用的是xcode 6.2和ordova 3.4.0

错误:

ld: warning: ignoring file /Users/gusph/Library/Developer/Xcode/DerivedData/momitSHDApp-evgpydfzbrlcmzazjhmquxttnqnq/Build/Products/Debug-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (arm64): /Users/gusph/Library/Developer/Xcode/DerivedData/momitSHDApp-evgpydfzbrlcmzazjhmquxttnqnq/Build/Products/Debug-iphoneos/libCordova.a
Undefined symbols for architecture arm64:
  "_CDVPageDidLoadNotification", referenced from:
      -[CDVSplashScreen pluginInitialize] in CDVSplashScreen.o
  "_OBJC_CLASS_$_CDVWebViewDelegate", referenced from:
      objc-class-ref in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVInvokedUrlCommand", referenced from:
      objc-class-ref in CDVFile.o
  "_CDVLocalNotification", referenced from:
      -[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o
  "_OBJC_CLASS_$_CDVViewController", referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
      objc-class-ref in CDVDevice.o
      objc-class-ref in CDVFile.o
  "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_CLASS_$_CDVUserAgentUtil", referenced from:
      objc-class-ref in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVCommandQueue", referenced from:
      _OBJC_CLASS_$_MainCommandQueue in MainViewController.o
  "_OBJC_CLASS_$_CDVPlugin", referenced from:
      _OBJC_CLASS_$_NotificationsNode in NotificationsNode.o
      _OBJC_CLASS_$_CDVConnection in CDVConnection.o
      _OBJC_CLASS_$_CDVCamera in CDVCamera.o
      _OBJC_CLASS_$_CDVBattery in CDVBattery.o
      _OBJC_CLASS_$_CDVLogger in CDVLogger.o
      _OBJC_CLASS_$_CDVContacts in CDVContacts.o
      _OBJC_CLASS_$_CDVDevice in CDVDevice.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
      -[CDVInAppBrowser openInSystem:] in CDVInAppBrowser.o
  "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from:
      _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o
  "_OBJC_CLASS_$_CDVPluginResult", referenced from:
      objc-class-ref in NotificationsNode.o
      objc-class-ref in CDVConnection.o
      objc-class-ref in CDVCamera.o
      objc-class-ref in CDVBattery.o
      objc-class-ref in CDVContacts.o
      objc-class-ref in CDVDevice.o
      objc-class-ref in CDVAccelerometer.o
      ...
  "_OBJC_METACLASS_$_CDVPlugin", referenced from:
      _OBJC_METACLASS_$_NotificationsNode in NotificationsNode.o
      _OBJC_METACLASS_$_CDVConnection in CDVConnection.o
      _OBJC_METACLASS_$_CDVCamera in CDVCamera.o
      _OBJC_METACLASS_$_CDVBattery in CDVBattery.o
      _OBJC_METACLASS_$_CDVLogger in CDVLogger.o
      _OBJC_METACLASS_$_CDVContacts in CDVContacts.o
      _OBJC_METACLASS_$_CDVDevice in CDVDevice.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

此链接器错误消息是密钥:

.../libCordova.a, file was built for archive which is not the architecture being linked (arm64)
OSX和iOS下的静态库和动态库都很胖,因为它们可以保存多CPU架构的代码。该库没有arm64体系结构,因此无法使用

解决方案是获得一个支持arm64的版本。如果您正在构建该库,则在构建时不包括CPU体系结构。

来源:


确保您使用的是内置64位体系结构的Cordova版本。您当前使用的似乎没有旧版本。

从CordovaLib目标的有效体系结构中删除arm64, 同时设置“否”仅构建活动架构, 对主应用程序进行相同的设置

This means that starting at that time, Cordova-based apps 
should be built using a version of Cordova that has 64-bit iOS support.

The first version of Cordova to include 64-bit for iOS is 3.4.1. 
Therefore, to meet these requirements of the Apple App Store, you should be 
using at least version 3.4.1 of Cordova before this February deadline.