
我已经更新了支持Xcode 8的项目,只有少数东西被改变了:
>在Build Settings中支持Swift 2.3
>并修复了与UIKit隐式展开属性相关的几个错误
在为Xcode 8编译完所有项目之后。
但是在Swift中集成的Obj-C代码没有任何语法高亮,反之亦然:
并且有<<错误类型>>自动完成问题:
@L_419_4@
派生数据删除没有帮助,Xcode重启:) CocoaPods版本0.38.2,iOS 7
解决方法 这个答案帮助我 https://forums.developer.apple.com/thread/46223我的一个项目:I got help from an apple engineer at WWDC on this issue and resolved
it. The problem stemmed from cocoapods… Apparently cocoapods was
copying .h files into the build directory and SourceKit was getting
confused. I’m not entirely sure why the .h files were being copIEd –
they aren’t needed there. So the fix was to add a post-build script
in your build phases section that removes the headers after a build.
It would look something like this:
function removeheaders() { find $BUILD_ROOT/DeBUG-iphonesimulator/ -name '*.h' -exec rm -f {} \; } removeheaders 总结 以上是内存溢出为你收集整理的ios – Xcode 8语法高亮不起作用全部内容,希望文章能够帮你解决ios – Xcode 8语法高亮不起作用所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)