ios - Cordova 3.5 iOS 编译错误

标签 ios xcode cordova cordova-plugins

我刚刚将我的 phonegap 项目升级到 cordova 3.5,我无法再编译我的应用程序。这是 Xcode 的输出:

    Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_CDVFile", referenced from:
      objc-class-ref in CDVCapture.o
     (maybe you meant: _OBJC_CLASS_$_CDVFileTransfer, _OBJC_CLASS_$_CDVFileTransferEntityLengthRequest , _OBJC_CLASS_$_CDVFileTransferDelegate )
  "_OBJC_CLASS_$_CDVFilesystemURL", referenced from:
      objc-class-ref in CDVFileTransfer.o
  "_CGImageDestinationCreateWithURL", referenced from:
      -[ReaderThumbRender main] in ReaderThumbRender.o
  "_CGImageDestinationAddImage", referenced from:
      -[ReaderThumbRender main] in ReaderThumbRender.o
  "_OBJC_CLASS_$_CMMotionManager", referenced from:
      objc-class-ref in iPhone_Sensors.o
      objc-class-ref in CDVAccelerometer.o
      objc-class-ref in libQCAR.a(libQCAR.a-armv7-master.o)
  "_CGImageDestinationFinalize", referenced from:
      -[ReaderThumbRender main] in ReaderThumbRender.o
  "_CGImageSourceCreateWithURL", referenced from:
      -[ReaderThumbFetch main] in ReaderThumbFetch.o
  "_CGImageSourceCreateImageAtIndex", referenced from:
      -[ReaderThumbFetch main] in ReaderThumbFetch.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我认为 libCordova.a 的链接器标志可能已关闭,但这似乎不是问题所在。谁能指出我正确的方向?

最佳答案

刚才遇到了类似的问题。

在您的 Project > Targets 设置中,转到 Build Phases > Compile Sources 并在 plugins< 下添加所有 *.m 文件 目录。这应该可以解决问题。

关于ios - Cordova 3.5 iOS 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23941507/

相关文章:

ios - 图像在循环动画中移动 - Swift

ios - Mapkit中如何增加userLocation标注的半径

ios - 找不到 Xcode Clang 错误文件

Cordova/PhoneGap 锁屏音乐控件

javascript - 当调用/热点指示器可见时停止 phonegap 应用程序滚动

ios - 从一个类调用另一个类的函数

ios - AppStore 拒绝 : use of private calls refers to my own methods

iOS swift 3 : Custom UIButton using xib

swift - 如何在 UI 测试中将照片添加到模拟器的相机胶卷中

cordova - 如何在phonegap应用程序中传输音频