Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4192] XCode 4.0.2 breaks log messages in Ti Dev and Ti Studio against iOS 4.3

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-05-25T17:06:42.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-21
ComponentsiOS
Labelsregression
ReporterDawson Toth
AssigneeReggie Seagraves
Created2011-05-23T16:57:18.000+0000
Updated2011-05-25T17:06:42.000+0000

Description

Problem

Ti.API.log (including info, warn, error) messages don't show up in a very particular scenario. If you use the latest version of XCode (4.0.2) and target iOS 4.3 from Titanium Developer, the messages don't show up. Point at iOS 4.2, and the messages will show up.

Sample Code

Ti.UI.createWindow({ backgroundColor: '#fff' }).open();
Ti.API.info('PASS: You saw this message! Hoot hoot.');

How To Reproduce

Open up Ti Dev or Ti Studio

Make sure XCode 4.0.2 installed

Target iOS 4.3 with the sample code

Run it, and you won't see the "PASS:" message.

Target iOS 4.2

Run it, and you will see the "PASS:" message.

Tested On

BROKEN with XCode 4.0.2 targeting iOS 4.3 WORKS with XCode 4.0.2 targeting iOS 4.2 WORKS with XCode 4.0 targeting iOS 4.3 WORKS with XCode 4.0 targeting iOS 4.2 REPRODUCED IN: Ti Studio, Ti Developer 1.2.1, Ti Developer 1.2.2

Run in XCode

As a side note... if you run the Titanium mobile project directly from XCode, you will see the log messages you expect. Even though they don't show up in Ti Stud or Ti Dev, they will show up in XCode's console.

Associated Helpdesk Ticket

http://appc.me/c/APP-476989

Comments

  1. Stephen Tramer 2011-05-24

    Have to log hours for this bug.
  2. Stephen Tramer 2011-05-24

    logger.py. Never forget.
  3. Natalie Huynh 2011-05-25

    Tested with 1.7.0.294b6aa... on 4.0-4.3 Simulator

JSON Source