When i use Xcode 4 with an external build system like make, i lose code completion and syntax highlighting. Is there any way to fix this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A quite ugly solution I have used is to add an additional dummy iOS or Mac OS X Application target that I only use to get code completion and documentation.
Do something like this:
Now edit along and build using your external build system target.
If this is a iOS project you can even take it one step further and add an additional “Empty Application” <project name>-run target used to “fool” Xcode to run your externally built application in the simulator or even on a device, assuming your external build system know how to sign and build universal or just normal binaries with correct architecture(s).
Now edit along and build and run using the <project name>-run target and it will trigger your external target and then run in the simulator or debug on the device. I have done this in combination with a <project name>-doc target and it works fine, just make sure to mark files you edit to only be a member of the <project name>-doc target or else Xcode will try to build things for you.