Re: How can I programmatically add build files to Xcode4?
Re: How can I programmatically add build files to Xcode4?
- Subject: Re: How can I programmatically add build files to Xcode4?
- From: Jeff Stedfast <email@hidden>
- Date: Fri, 30 Sep 2011 09:50:39 -0400
On Fri, Sep 30, 2011 at 12:29 AM, Jerry Krinock
<email@hidden> wrote:
On 2011 Sep 27, at 12:09, Jeff Stedfast wrote:
> I've been trying to figure out how to programmatically add files to an Xcode4 project and it seemed like AppleScript would be the way to go, however I'm running into "missing value" errors.
Jeff, I did not read your script, because based on my own experience with Xcode 4.1 and AppleScript, I already know the answer. AppleScriptability is almost completely broken in Xcode 4.1. Search the list archives, and on the Apple Developer forum, and you will see others reporting same. There are a maybe few simple commands that still work. Adding build files is quite substantial. Forget it.
Yea, this is the conclusion I came to before trying this list as my last hope :-(
Thanks for the confirmation, at least.
> Any help would be greatly appreciated!
If AppleScriptability is important to you, you must revert to Xcode 3. File a bug, be very patient, hope and pray.
What "dot" version of Xcode 4 are you using?
Xcode 4.2, which, unfortunately, is the version I need to be able to interoperate with for some of the new features which I'm working to get my company's own IDE, MonoDevelop, to support. I suppose I'll have to continue with the approach of:
1. close the xcode project
2. export my IDE's project to a fresh .xcodeproj
3. use applescript to tell xcode to open the project
I was hoping to find a way of adding new files to Xcode so that the developer could swap back and forth between my company's IDE and Xcode and have files get sync'd back and forth w/o him/her losing any state in the Xcode project view (e.g. losing which doc was opened, where a file might have been scrolled to, etc). When I started examining Xcode's AppleScript API, I was pretty excited that I'd be able to improve the user experience from the old way of doing things and I had gotten so close (my script does actually add the files to the Xcode project, but w/o being able to set the project target, it means the user cannot connect IBActions & IBOutlets). Close but no cigar.
Anyway, thanks for confirming what I had already begun to fear. I'll be keeping an eye on things and hopefully these bugs will get fixed and I'll be able to take advantage of them.
Thanks for your time,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden