我刚刚将我的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的链接器标志已关闭,但这似乎不是问题。有人能指出我正确的方向吗?
答案 0 :(得分:6)
刚才有类似的问题。
在Project > Targets
设置中,转到Build Phases > Compile Sources
并在*.m
目录下添加所有plugins
个文件。这应该可以解决问题。