Titanium 1.6.1 and XCode 4.3 - Debug/Info problem

You must Login before you can answer or comment on any questions.

Im update my XCode and now, Ti.API.info dont work.

I have clean project, reinstall titanium, delete build folder and a problem persist.

thanks :)

3 Answers

Accepted Answer

Was having the same problem.

This is a workaround. The appcelerator team needs to update logger.py to permanently correct.

The problem is that in xcode 4.0.2, the current iPhone / iPad simulator is actually 4.3.2, but Titanium is looking for 4.3 (as you can tell from the drop down box in the Test & Package screen).

So logger.py cannot find the log file.

The very simple way to resolve this is to create a symlink to the 4.3.2 directory called 4.3

With the symlink, the logger finds the log file and prints it to the console window.

You cannot just create an alias in Finder ... you need to do this in terminal.

in Finder browse to the iPhone Simulator directory under <your username>/Application Support/iPhone Simulator and confirm that there is no 4.3 directory but there is a 4.3.2 directory.

Open up a terminal and enter the following commands:

$ cd ~/Library/Application\ Support/iPhone\ Simulator (you can just drag the iPhone Simulator directory from finder to the terminal after you type cd)

$ ln -s 4.3.2 4.3 (This creates the symlink)

$ ls -la (This displays links)

Voila ... logging should work immediately.

— answered 1 year ago by Tim Alosi
answer permalink
2 Comments
  • I have the same problem... I can't see Ti.API.* messages on console... I'm working with alerts for now...

    — commented 1 year ago by Andrea Frittella

  • Didn't work for me...

    — commented 12 months ago by James Adams

Works

I can confirm this worked on "osx", using 1.8.0.v20110707160638 from http://build.appcelerator.net/.

I would suggest you move the current "4.3" incase you want to go back.

cd ~/Library/Application\ Support/iPhone\ Simulator
mv 4.3 4.3.old
ln -s 4.3.2 4.3

Going into the directory I am working in and running.

xcodebuild clean -configuration Debug

Moving to the latest 1.8 made my code work correctly when working with "registerBackgroundService".

— answered 11 months ago by freshteapot #
answer permalink
1 Comment
  • Good man, worked! BUT

    Why hasn't this been fixed even in Ti SDK 1.7.2 or a Studio update!

    Disgraceful!

    — commented 10 months ago by James Adams

I am facing same problem with Titanium 1.6.1 on Windows 7. Tried all tricks mentioned above. Nothing works. Changed from Titanium Developer to Titanium Studio but the problem still persists. Any help?

— answered 1 year ago by Abdul Hafeez
answer permalink
1 Comment
  • Abdul, you aren't able to use Xcode or test iOS on a Windows computer. You need a Mac to do iOS compiling.

    — commented 10 months ago by Jeff Cross

Your Answer

Think you can help? Login to answer this question!