简体   繁体   English

在xcode6上使用KIF时出现链接器错误

[英]Linker error while using KIF on xcode6

When i'm trying to use KIF, I get this linker error. 当我尝试使用KIF时,出现此链接器错误。 Anybody know what is it? 有人知道吗?

ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Framework'
ld: file not found: -fobjc-arc
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks for any idea. 感谢您的任何想法。

I had this happen many times to me. 我曾多次发生这种情况。 Every time it was because I missed a step in the installation of KIF. 每次都是因为我错过了安装KIF的步骤。 Go back to the installation instructions and ensure you set all the configurations correctly. 返回安装说明,并确保正确设置所有配置。 Pay special attention to the instructions for header paths. 请特别注意标题路径的说明。 I am on my phone right now or else I would be able to give you the exact settings. 我现在正在使用手机,否则我可以为您提供确切的设置。 Go double check the instructions. 仔细检查说明。 If your settings are correct reply here with that info and we can try to figure it out together. 如果您的设置正确,请在此处回复该信息,我们可以尝试一起解决。 First though make sure these things are correct. 首先,请确保这些内容正确无误。 Once you do, clean your project (Cmd-shift-K), close project, delete your derived data (preferably through Terminal) and then try to build again). 完成后,清理项目(Cmd-shift-K),关闭项目,删除派生数据(最好通过Terminal),然后尝试重新构建)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM