Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

API.info not showing on 1.3.2

Have tried the following:

Titanium.API.warn('Warn');
Titanium.API.debug('Debug');
Titanium.API.info('Info');
Titanium.API.log('Log');

None is working on 1.3.2 on iOS4 SDK. Any help would be appreciated as I really could use these again :)

Conrad

— asked July 20th 2010 by Conrad Fuhrman
  • api.info
  • debug
  • info
  • iphone
  • log
  • output
  • warn
0 Comments

18 Answers

  • Yeah, something's funky with the console logging in Titanium Developer when you mix in iOS4. It happened for me when I first installed iOS4 and XCode 3.2.3. Then, unexpectedly, it started working again. Now that I've installed the 4.0.1 my console messages (debug, info, etc.) are missing again. I've just been debugging with the console straight out of the xcode project that TD creates, but it's annoying the added step to first compile in Titanium Developer and then go to xcode and clean/build just so I can see the console.

    — answered July 21st 2010 by Christopher Rumpf
    permalink
    0 Comments
  • Encountered the same problem with iOS SDK 4.0.2. It can be fixed by editing the logger.py fix and changing references to 4.0.1 to 4.0.2

    — answered September 1st 2010 by Jim K
    permalink
    2 Comments
    • Thank you very much for posting this! I really helped me out!

      — commented September 4th 2010 by Grant Derderian
    • Sorry, meant to say *it really helped me out!

      — commented September 4th 2010 by Grant Derderian
  • Are you using the latest SDK? I think I'm having the same problem. I made the mistake of upgrading my iphone to 4.0.1 which required an SDK update. Since then, I'm not getting any messages in the TI Developer.

    I don't have a solution for you, but just looking to validate that is the problem and see if a TI update is required.

    — answered July 20th 2010 by Curtis Olson
    permalink
    3 Comments
    • I can confirm that it stopped working after the upgrade to the 4.0.1 SDK.

      — commented July 21st 2010 by Dominik Hahn
    • Same here.

      — commented July 21st 2010 by John Welch
    • Same problem here.

      — commented July 22nd 2010 by Lukas Oberhuber
  • I'm kind of running a hybrid of 1.3.2 and 1.3.3. I pillaged the @2x and updated Slider from the 1.3.3 commit and rolled that into the 1.3.2 iPhone classes folder. Everything else seems to be working. I am running 4.0.1 and SDK 4. Good to know its not just me :)

    — answered July 20th 2010 by Conrad Fuhrman
    permalink
    0 Comments
  • Curious if someone can chime in on this from the latest release, are you guys able to get output to the console using Ti.API.info('TEST'). Just created a brand new project and cannot get this to work. Seems like to got broke when SDK 4 was released.

    — answered July 21st 2010 by Conrad Fuhrman
    permalink
    0 Comments
  • Ti.API.info works fine for me in 1.3.0 and 1.3.3 checked out from our master repository. It could be that you're getting a JavaScript exception or something along those lines. Could you share the code you're using?

    — answered July 21st 2010 by Kevin Whinnery
    permalink
    0 Comments
  • Thanks Kevin, I literally create a new project, then at the last line of app.js add

    Ti.API.info('TEST TEST TEST');

    I am using the build from 1:54pm based on the repository. I am compiling to 4.0 and 3.2 and both do not trace the info command.

    — answered July 21st 2010 by Conrad Fuhrman
    permalink
    0 Comments
  • I found out that doing a full rebuild will allow Ti.API.info to work again. The way I did it was to change the SDK from 4.0 to 3.2 wait til it said that it was executing full rebuild then I would quit Titanium and compile with 4.0 SDK,this would allow Ti.API.info to work again.

    — answered July 21st 2010 by Abraham Vivas
    permalink
    0 Comments
  • Thanks Abraham, I tried this and I can get output from 3.2 but not 4. Unfortunately I need to use 4 right now for a project :(

    — answered July 21st 2010 by Conrad Fuhrman
    permalink
    0 Comments
  • I just got a new macbook and did a complete install of everything including ONLY the 4.0.1 SDK and tested with both the 1.3.0 mobile SDK and the github head and am unable to get any console output either. Tried with both a new project and with the imported kitchensink.

    There appear to be several other posts in these Q&A's about similar problems.

    — answered July 21st 2010 by Gregor Munro
    permalink
    0 Comments
  • Anyone found a fix for this? Since the only debugging tool you have it so include Ti.API.log/debug messages, my development is dead. I'd downgrade to 4.0 SDK, but I can't find a link. I guess it's so new, no one has had to downgrade. Can't believe I didn't save the old SDK.

    Appcelerator? Any word on if this is a bug for everyone?

    — answered July 22nd 2010 by Curtis Olson
    permalink
    0 Comments
  • I just created a ticket for this on Lighthouse so hopefully it gets assigned and resolved ASAP. Its really an annoyance. 3.2 properly shows the info though so I test on iPad then 4. Really looking forward to a fix though. Thought there would be one in the nightly's but nothing yet.

    — answered July 22nd 2010 by Conrad Fuhrman
    permalink
    0 Comments
  • This has been resolved by build rf583a07c. Great job on 1.4! Thanks for the constant updates (too bad I cannot mark this answered!)

    — answered July 28th 2010 by Conrad Fuhrman
    permalink
    1 Comment
    • Is this build on GutHub or the like? It doesn't seem to be fixed in the general 1.2.1 build.

      — commented July 30th 2010 by Jon MacDonald
  • I just upgraded to 4.0.1 and now I have this problem as well. But I'm using Titanium 1.4.0 SDK, and these earlier comments seem to suggest that the problem was already fixed. I've tried forcing an app rebuild with no luck. Is anyone else still having this problem?

    — answered August 6th 2010 by Mike Dosey
    permalink
    1 Comment
    • Make sure you are using the build that resolves this with 4.0.1. It wans't in the first release of 1.4. here is a link to the builds: http://builds.appcelerator.com.s3.amazonaws.com/index.html

      — commented August 6th 2010 by Conrad Fuhrman
  • check
    http://developer.appcelerator.com/blog/2010/07/introducing-titanium-mobile-1-4.html
    that solved my logging problem

    — answered August 14th 2010 by Daniel Goergen
    permalink
    0 Comments
  • Seems to be broken again with yesterday's 4.3 SDK & XCode 4.0.2 release.

    — answered April 15th 2011 by Bart McPherson
    permalink
    0 Comments
  • Just jump into /Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone/logger.py, change the iphone simulator versions [ some urls ] up to yours and its over. It works as expected.

    — answered June 7th 2011 by Cem Öztürk
    permalink
    0 Comments
  • It doesnt work again. I'm not sure it its the same issue but i don't get any output on the latest (SDK 1.7.2 reinstalled today on Lion). I always get the same output which comes from a version from last week (i assume that this is the las logged output byt i don't know which file).
    Two days ago it worked after about 10secs from starting the simulator but now it doesn't output anything.

    — answered August 31st 2011 by P B
    permalink
    2 Comments
    • Hey P B did you ever get this working?

      — commented September 16th 2011 by Jay Aguilar
    • Nope, no success.

      — commented September 20th 2011 by P B
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.