I downloaded Titanium, ran the IDE, followed the instructions in GettingStarted PDF, build the HelloWorld app, tried to launch in simulator, got:
[ERROR] Your TARGET_BUILD_DIR is incorrectly set. Most likely you have configured in Xcode a customized build location. Titanium does not currently support this configuration.
[ERROR] Expected dir /Users/dpc/GamesDevelopment/Sonotope/titanium/Sit Your Mind/build/iphone/build/Debug-iphonesimulator, was: /Users/dpc/GamesDevelopment/Sonotope/titanium/Sit Your Mind/build/iphone/build
searched the forums, looked at whether I'd set custom build path in xcode, saw I hadn't puzzled over this.
Searched for app.js in resources folder, which the pdf said I should find, nothing there.
This is seriously dodgy for a first impression…am I missing something?
I did a write up here for this but the short answer is:
Modify the XCode template under your SDK:
Delete any values in the Build Products Path and Intermediate Build Files Path. Then under per-configuration build products path enter the following:
Debug enter - $(BUILD_DIR)/build/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
Release enter - $(BUILD_DIR)/build/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
What does the directory structure look like in your project folder? Any odd file permissions?
There are 2 (or more) Resources folders. One is in the project folder, the others are in the build folder. You'd be after the one in the project folder.
Another question I have is do you have the regular install of the SDK or just the XCode 4 preview?
what is your system configuration?
I think this error is usually to do with a part of the path incorrectly being lowercase or uppercase, which you can switch in Xcode. So check that the path matches exactly, and if that doesn't work it might be worth seeing if taking the spaces out of the folder name works.
I don't know if this helps, but I was able to solve this by opening up XCode, selecting the Building tab in the Preferences and making sure that the "Place Build Products in" is set to Project Directory - rather than a Customized location.
Hopefully this helps you and others…
hi, thanks for your info craig. I resolved mine with the product path etc as "build" and then the per-configuration fields all as
Titanium works now! (In your original article you didn't say you actually needed to put this in Per-Configuration Build Products Path, I'd hardcoded Debug-iphoneos etc so my paths were getting mixed up when compiling a simulator version)
please can you explain why you use titanium.build for your immediate paths though? something to do with separating them from other platforms? also why you have $(BUILD_DIR)/build rather than just $(BUILD_DIR), which is set as build anyway in the product path.
I'm trying to get this to work but I don't understand where to fill in what in xCode. In my version I have the following lines to work with, what values should be where?
As I said, I read the forums and found other people with the same path problem…so my 'unique' first impression is, in fact, not unique. That was a poor reply.
Can anyone speak sense about this?
Is that it? Is no-one from appcelerator going to answer this? Please note, I've just downloaded Titanium to a different OSX machine, followed instructions again, and again, got the error above…
Surely this is a broken release?
Once again, I'd love to be proved wrong…but right now, it seems like this is hookware, and that to get anywhere, these guys will want you to 'go pro' and pay hundreds a month.
I've just tried on a different machine with a fresh download of Titanium, followed instructions, same xcode path error.
Surely this is a broken release?
Anyone from appcelerator even here?
While I've never heard of your problem before (I'm quite new to the SDK myself), I can tell you that despite your unique first impression, Titanium Mobile is truly an incredibly powerful and effective tool for any developer, and you will not regret learning it. (it's really simple compared to others, so it shouldn't take that long!)