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

Ios Apple Mach-O:架构i386的未定义符号:在PhoneGap Cordova 2.9.1中,ios,xcode,cordova,Ios,Xcode,Cordova,我是iOS中phonegap应用程序开发的新手。在我的xcode项目中添加了CordovaLib.xcodeproj之后,我在buildsettings中做了架构更改其他链接器标志是-all_load和-Obj-C当我构建项目时,我会得到苹果Mach-O链接器错误,如下所述。在我的构建设置中,我没有提到i386。我如何否定这个错误 Undefined symbols for architecture i386: "_CDVPluginHandleOpenURLNotification", r

我是iOS中phonegap应用程序开发的新手。在我的xcode项目中添加了
CordovaLib.xcodeproj
之后,我在buildsettings中做了架构更改
其他链接器标志
-all_load
-Obj-C
当我构建项目时,我会得到
苹果Mach-O链接器
错误,如下所述。在我的构建设置中,我没有提到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)

我有完全相同的问题。如果找到任何解决方案,请更新。目标->构建阶段->将二进制文件与库链接(确保添加了必要的库-如果使用了第三方库,请确保添加该库)并编译源代码(所有m文件都已导入)。@JoelJeske我到目前为止没有找到任何解决方案。我开始在objective C(本地)工作。稍后将寻找解决方案。@MohammedImranN我检查并确保所有.m文件都在编译源代码中,并且库都已链接。但仍然得到这个错误。很难说这是phonegap问题还是旧的第三方库问题,但看看错误,我看不出这是库问题。我稍后再查。我也有同样的问题。我使用第三方库。