Titanium Community Questions & Answer Archive

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

Ti.API.info

For some reason Ti.API.info is not pushing messages to the console when running an App through the simulator.

Anyone know why this would be happening?

(I'm running iOS SDK 4.0.1, Titanium 1.2.1, and with 1.3.2 of the SDK.)

— asked July 19th 2010 by John Welch
  • ios
  • iphone
1 Comment
  • Just started seeing this behavior after upgrading to the 3.1.2 update this morning. Is anyone else seeing this and figured out how to get logging output to show again?

    — commented August 19th 2013 by Monique Barbanson

9 Answers

  • Accepted Answer

    Possible Solution:
    The same thing happened to one of my projects when I opened it up in xCode and started changing some of the settings. I fixed it by:

    • I copied the project to a new directory
    • deleted the project titanium
    • created a project of the same name
    • moved the resources folder of the old project into the freshly created one.

    Hope this helps!

    — answered October 27th 2010 by Philip Joyner
    permalink
    0 Comments
  • Just an FYI…

    This bug has been fixed:

    Navigate to:

    /Users/[user]/Library/Application Support/Titanium/mobilesdk/osx/1.4.0/iphone/logger.py

    Apply this patch:
    http://github.com/appcelerator/titanium_mobile/commit/c8674cefc86a29cd5667a2bb8d9b33ad244bd87a

    — answered July 28th 2010 by John Welch
    permalink
    1 Comment
    • I applied that code to the file and it didn't really change anything. I really need the info stuff to work, my debugging takes ages now, something I can't afford.

      — commented July 31st 2010 by Ian Briggs
  • Since this appears to be a bug noted by a few others, I'm currently using this for testing:

    function sendError(theMessage)
    {
        var a = Titanium.UI.createAlertDialog({title:'Error', message:theMessage});
        a.show();    
    }
    
    try
    {
        // Your Code
    }
    catch(e)
    {
        sendError(e);
    }
    
    — answered July 19th 2010 by John Welch
    permalink
    0 Comments
  • So this has to do with iOS 4.0.1? I am using a github build (not the latest) with the same problems and I was wondering yesterday. :)

    — answered July 20th 2010 by Dominik Hahn
    permalink
    1 Comment
    • I'm presuming so. It probably has to do with something within Xcode.

      — commented July 20th 2010 by John Welch
  • Try creating a new project or/and rebooting you computer. Been fixed that way for number of users.

    — answered July 20th 2010 by Sj Singh
    permalink
    0 Comments
  • Apparently, there seems to be a weird bug when adding a searchbar to a tableview. If you set searchHidden:false in your tableview params, your tableview will not scroll, if you set searchHidden:true, things work normally except that the searchbar is only visible after scrolling down.

    — answered July 20th 2010 by Ben Hornedo
    permalink
    0 Comments
  • I'm having the same issue. I'm using Ti 1.2.1 mobileSDK 1.4.0 and 4.0.2 Apple SDK. I've applied the patch, and I'm getting the console to tell me that 4.0.1 patch installed. I did the chmod +x to the logger.py file and yet I'm still not able to see the messages in the console. However if I look at the log file the messages are there.

    I tried rebooting my machine and that didn't help.

    Any help would be appreciated as this is driving me nuts and it's making it hard to debug the application.

    — answered August 19th 2010 by David Mamber
    permalink
    0 Comments
  • David,

    You have to make some changes for 4.0.2, see post here

    http://developer.appcelerator.com/question/53381/info–logger-fix-for-ios-402

    — answered August 19th 2010 by Daniel Lim
    permalink
    0 Comments
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.