Still getting "Your TARGET_BUILD_DIR is incorrectly set."
Before you bash me for not having read the forums already, I have. I've tried everything suggested, and then some. I even understand what's happening.
Xcode is trying to put the build folder in a custom location, which Titanium doesn't support.
I'm using Xcode 4 – which i've configured back to the defaults, and does build in the default location when projects are built in Xcode – but when built through Titanium, it'll use the custom build folder I set up in Xcode 3. Xcode 3 is no longer installed on my system.
So to try and fix the problem, I set Xcode 4 back to defaults. No fix. I deleted the Xcode plist file in Preferences. No fix. I completely uninstalled and reinstalled Xcode 4. No fix. I uninstalled Xcode 4 and reinstalled Xcode 3, confirming that it was set to use the default build folder. No fix. I deleted the iphone/build folder more times than I can count. No fix. I created a blank project and tried to build. Same problem.
But, if I go into the build/iphone folder and open up the Xcode project in Xcode 4 and build, it places files in the correct, default location.
Why does Titanium insist that Xcode is configured for a custom build location? How can I fix this?
7 Answers
-
I've been having this problem and have my own workaround.
For example, I get the following error:
/Users/mark/Dropbox/Development/Titanium Studio Workspace/myProject/build/iphone/build/Debug-iphonesimulator, was: /Users/mark/Dropbox/development/Titanium Studio Workspace/myProject/build/iphone/build/Debug-iphonesimulator
If I rename the "Development" folder to "development" and then back to "Development" the issue fixes itself.
I've not figured out why it occurs but seems to happen quite a lot, and is always the same "Development" folder. I had originally thought it might be a Dropbox issue whilst it is sync'ing but don't think that's the reason now.
Mark
-
Yeah, I'm still getting the same problem as well – none of the fixes have worked yet. The core Library was updated 2 days ago, so I'm wondering if something new is afoot there.
-
I'm having the same problem. I've opened a helpdesk ticket, if I get a solution I'll post it here.
-
I'm also suffering this - I can edit the xcode project and just change it and that is fine for the simulator but when trying to deploy to a iOS device it keep rebuilding the xcode project, finding this non-existant location and failing … what a nightmare. XCode is set to the default locations as well …
-
Check that the name of the project in your tiapp.xml matches the XCode project name.
tiapp.xml:
<ti:app xmlns:ti="http://ti.appcelerator.org"> ... <name>This-Name-Should-Match-Exactly</name> ... </ti:app>
I had this problem when I tried to rename a project. I failed at the renaming and when I tried to revert back to the old name this error was occurring. Once I fixed the name discrepancy it stopped.
If this does not work I would ensure that you do not have any special characters in the project name.
Jason
-
couldnt this be resolved by having Titanium pass the SYMROOT etc to the xcodebuild command line (see example here)
-
Craig William's solution worked for me…
http://developer.appcelerator.com/question/71331/really-thats-the-first-impression.html#answer-218760