首页 > 代码库 > 报错:Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1
报错:Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1
这里有两种情况:
第一种是某xxx.m文件不存在或路径不对,而且里面有5.1什么的
解决方法如下:
在Build Phases-->Complie Sources中找到有两个xxx.m文件,一个正常,一个标红了xxx.m,只要把标红的丢失文件删除掉就行了。
第二种是,里面有4.1什么的
解决方法如下:
在Build Settings 中,
将Apple LLVM compiler 4.1 - Language 中的
c++Standard Library 修改为
libstdc++(GNU C++ standard library)
报错:Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。