Auto import for Xcode

samwize picture samwize · Feb 24, 2011 · Viewed 11.6k times · Source

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

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".

Answer

Stelian Iancu picture Stelian Iancu · Feb 24, 2011

At the moment it's not possible to do that. I suppose what you want is something like Eclipse's auto-import, i.e. when you first use a class in code, it auto-imports the package.

You should open a bug report here to let the Apple people know about it.