所以我一直试图让GPUImage库在一个项目中工作,虽然它可以在设备上运行,但却无法在模拟器上运行。我在Xcode 5中尝试过使用Retina和非视网膜模拟器并得到以下错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GPUImageBuffer", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageVideoCamera", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageView", referenced from:
objc-class-ref in StartViewController.o
"_OBJC_CLASS_$_GPUImageiOSBlurFilter", referenced from:
objc-class-ref in StartViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的构建设置如下;
我需要在模拟器和设备上运行。我尝试过只使用Build Active Architecture,以及使用Valid Architectures,拥有armv7,armv7和armv7s,以及armv64,但无济于事。
任何帮助都会很棒。 提前致谢
答案 0 :(得分:3)
构建阶段 - > Link Binary With Libraries ...然后添加“GPUImage.framework”,“libGPUImage.a”
答案 1 :(得分:2)
我刚从“Valid Architectures”中删除了“arm64”,现在它对我有用。也许有帮助。