在xcode中添加-ObjC标志 [英] Adding -ObjC flag in xcode
问题描述
我正在尝试将google Street View Image API集成到我的iOS应用中,但是要使用其SDK,我需要使用-ObjC链接器标志来加载其类别方法.没有链接器,一切都可以正常运行,但是当我在Xcode中添加-ObjC标志时,我得到:
I am trying to integrate google Street View Image API into my iOS app, but in order to use their SDK I need to use the -ObjC linker flag to load their category methods. Everything works perfectly without the linker, but when I add the -ObjC flag in Xcode I get:
ld:找不到框架armv7的金属
ld: framework not found Metal for architecture armv7
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
推荐答案
再次检查是否所有文件都已正确添加到您的App中.如果有任何遗漏,请在BuildPhases中进行检查.希望这会有所帮助.
Once check whether all the files are added correctly into your App.check in BuildPhases also if anything is missed.Hope this helps.
这篇关于在xcode中添加-ObjC标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!