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
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.
-
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
-
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.
-
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 :)
-
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.
-
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?
-
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.
-
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.
-
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 :(
-
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.
-
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?
-
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.
-
This has been resolved by build rf583a07c. Great job on 1.4! Thanks for the constant updates (too bad I cannot mark this answered!)
-
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?
-
check
http://developer.appcelerator.com/blog/2010/07/introducing-titanium-mobile-1-4.html
that solved my logging problem -
Seems to be broken again with yesterday's 4.3 SDK & XCode 4.0.2 release.
-
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.
-
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.