On 22 juin 2011, at 04:52, Dmitry Markman wrote:
Hi
I was asking questions about Applescript support for Xcode4 few times
and didn't get any answer. (and yes, I sent question to the applescript list as well with the same result)
Yes, I know our communication to developers about developer tools was not really clear lately. I hope this message will answer your questions better. It''s substantially the same message, but expressed more clearly.
I think I was polite, question wasn't off topic
not even one Apple engineer answered
I understand they don't have to, but still
that is weird.
I submitted few bugreports related to Applescript support in Xcode, one of them about 4 years ago
none of them are fixed
We don't care.
if Apple doesn't support Applescript in Xcode, just say so
We don't care.
but it looks like there is no any testing (or almost there is no testing) for Xcode AppleScript dictionary.
and in Xcode 4 it is complete disaster.
There is no testing at all on Xcode 4 done internally. We rely on you developers to do testing for us. That's because we don't care. In any case what do you imagine? That we use Xcode internally?
if something worked in Xcode 3.2.6, in Xcode 4 practically nothing works, zero.
Agreed. But we don't care.
I'm working for big and very respectable company
Wow. Except we don't care.
we have thousand and thousands files, literally millions lines of code (C/C++/Java)
Impressive! But we don't care.
so we need to organize our code.
we need autogenerate our projects.
It is relatively easy for VisualStudio,
Ah! So indeed you are a real programmer? Not that we care actually.
so Mac programmers like to have autogenerated
Xcode projects as well.
If we cared, we would ask you to stop using rude words.
Apple doesn't publish Xcode project format
Correct. Why would we? We don't care.
I don't want to use reverse engineering (I'm aware about open source that do just that)
so we have only one path to generate Xcode projects - AppleScript
Not even that actually, as you correctly point out. After all, we don't care.
I managed to create script that successfully does it, but I must admit it was a pain in the ass (sorry)
but with "System Events" scriptability help I was successful
Hats off. But who cares?
unfortunately Xcode4 broke practically everything
ROTFL
yes I submitted bugreport (3-4 months ago - no answer)
We don't care.
Apple didn't publish any transition guide related to AppleScript support, even simple things don't work
say I want to set build setting
in Xcode 3.X it works
set project_path to "/Users/Shared/Scripts/Xcode_test/Xcode_test.xcodeproj"
set project_file
to POSIX file
project_path as alias
set sandbox to "/path/to/sandbox"
tell application
id "com.apple.Xcode"
open
project_file
activate
set
my_project
to active project document
tell
my_project
delete
every build setting of
every build configuration
set
value of build setting "SANDBOX"
of every build configuration
to sandbox
end tell
end tell
in Xcode 4 it failed:
set project_path to "/Users/Shared/Scripts/Xcode4_test/Xcode4_test.xcodeproj"
set project_file
to POSIX file
project_path as alias
set sandbox to "/path/to/sandbox"
tell application
id "com.apple.dt.Xcode"
open
project_file
activate
set
my_work_space
to active workspace document
set
my_project to item 1
of projects
of my_work_space
tell
my_project
delete
every build setting of
every build configuration --ok
set
value of build setting "SANDBOX"
of every build configuration
to sandbox
--error
end tell
end tell
iI'm getting the following error:
error "Xcode got an error: Can’t set build setting \"SANDBOX\" of every build configuration of project \"Xcode4_test\" of workspace document \"project.xcworkspace\" to \"/path/to/sandbox\"."
number -10006 from
build setting "SANDBOX" of every
build configuration of
project "Xcode4_test" of workspace document "project.xcworkspace"
so what's wrong?
Even if we knew, we wouldn't care.
I was able to add targets (from target templates), now there is no target templates (why BTW), so I can not autogenerate targets
or maybe I can, I just don't know how (well System Events to the rescue, but that means that I can not send my AppleScript application to background)
I'm just desperate :-(
We don't care.
sorry if I upset somebody,
Well, you didn't upset us. I hope you are relieved.
Signed: Apple
This translation to English of Apple's communication to developers was brought to you by Jean-Denis Muys. I am not with Apple, I do not speak for Apple. I have been a happy (not always) Apple developers well, for ever, at least since 1984. This disclaimer
to avoid a strike by Poe's law.
|