Apple Mach-O:架构i386的未定义符号:在PhoneGap Cordova 2.9.1中

时间:2014-07-31 11:35:44

标签: ios xcode cordova

我是iOS中phonegap app开发的新手。在我的xcode项目中添加CordovaLib.xcodeproj后,我在构建集中将架构更改为suggested hereOther linker flag-all_load-Obj-C当我构建项目时,我会收到下面描述的Apple Mach-O linker错误。我没有在我的构建设置中的任何地方提到i386。如何否定此错误?

Undefined symbols for architecture i386:
  "_CDVPluginHandleOpenURLNotification", referenced from:
      -[AppDelegate application:handleOpenURL:] in AppDelegate.o
  "_OBJC_CLASS_$_CDVPlugin", referenced from:
      _OBJC_CLASS_$_LoginPlugin in LoginPlugin.o
  "_OBJC_CLASS_$_CDVPluginResult", referenced from:
      objc-class-ref in LoginPlugin.o
  "_OBJC_CLASS_$_CDVViewController", referenced from:
      _OBJC_CLASS_$_MainViewController in MainViewController.o
  "_OBJC_METACLASS_$_CDVPlugin", referenced from:
      _OBJC_METACLASS_$_LoginPlugin in LoginPlugin.o
  "_OBJC_METACLASS_$_CDVViewController", referenced from:
      _OBJC_METACLASS_$_MainViewController in MainViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

0 个答案:

没有答案