自动导入Xcode [英] Auto import for Xcode

查看:114
本文介绍了自动导入Xcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode是否可以自动自动导入框架和类标头?

Is it possible for Xcode to auto import the frameworks and class headers automatically?

发生的事情是,每次构建时,由于缺少导入,我都会遇到错误.我知道如何修复,但是我觉得Xcode可以通过给我一个自动修复导入"选项来变得更加智能.

What happens is that every time I build, I will encounter errors due to missing import. I know how to fix, but I felt Xcode can be more intelligent by perhaps giving me an option to "Auto fix imports".

推荐答案

我知道这个问题很旧,但是很高兴知道@import是使用XCode 5添加到LLVM的.您可以在此处此处

I know the question is old, but it is good to know that @import was added to LLVM with XCode 5. It gives you features that you wanted. You can find more here and here

这篇关于自动导入Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆