[TIMOB-15121] iOS7: Launching invalid iOS 7 Simulator prevents application logging
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-02-19T17:43:23.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | Release 3.2.2, Release 3.3.0 |
Components | CLI, iOS |
Labels | ios7, module_api, qe-3.1.3, qe-testadded |
Reporter | Dustin Hyde |
Assignee | Chris Barber |
Created | 2013-09-11T18:40:47.000+0000 |
Updated | 2014-07-25T21:50:07.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
run config.png | 2013-09-11T18:40:47.000+0000 | 442536 |
simulator.png | 2013-09-11T18:40:47.000+0000 | 201713 |
Note when it's in this state, the console does not seem to register logging events from app.
There should be some sort of internal validation inside CLI and studio that prevents user from ever selecting non-supported Simulator version's.
I was able to reproduce the issue and get into the broken event state following those steps: 1) Create a new project. Open "Run configuration" and run it using iOS SDK 7.0, Simulator version 7.0 and Display Type "Non-Retina". Result: iOS 7 Retina simulator is opening. Everything works fine as expected. 2) After point 1, "Run configuration" and run the project using iOS SDK 7.0, Simulator version 6.1 and Display Type "Non-Retina". Result: iOS 6.1 Simulator opens and everything works fine as expected. 3) After point 2, 'Run configuration" and run the project using iOS SDK 7.0, Simulator version 7.0 and Display Type "Non-Retina". Result: iOS 6.1 Simulator is being opened instead of the 7.0. In this states, all events are not diplayed in console. For example, something like:
clicking on the 'label1' when the simulator is in this state does not produce any output in the console log.
I am going to repurpose this ticket and change the title to reflect the lack of logging. We have another ticket that covers the root behavior.
With SDK 3.2, when I say --ios-version 7.0, it will set --sim-version also to 7.0 and the iOS Simulator launches running 7.0. As far as retina, there is no such thing anymore of a non-retina simulator running iOS 7.0. As far as the logging output, it works as expected.
I can confirm the console logging is not working as it should. Everything works well until the console gets to "[INFO] Focusing the iOS Simulator" and nothing else will output. Here are my versions: - node v0.10.21 (I tried multiple versions down to 0.9) - Titanium (CLI) 3.1.2 - Titanium SDK 3.1.3.GA - Xcode 5.0.1 Command: node ./node_modules/titanium/bin/titanium build --platform iphone --project-dir ./ --log-level trace --ios-version 7.0 -f -F iphone
Should be fixed as part of TIMOB-15741. There are additional checks inside CLI itself that prevents this bad behavior from happening. In the off case where, it slips through over checks, the simulator would still give back logging info(confirmed it from ios-sim app side) Tested from within iossim using Xcode 5.0.2 (trying to launch iPad retina 64bit simulator)(using following command : ios-sim launch "/Users/sabilrahim/Documents/Appcelerator_Studio_Workspace/timob15796/build/iphone/build/Debug-iphonesimulator/timob15796.app" --xcode-dir "/Applications/temp folder/Xcode502.app/Contents/Developer/" --sdk 7.0 --family ipad --retina --sim-64bit)
Closing ticket as fixed. Verified application logging appears on iOS 7 simulator with Alloy and Classic app. In the default Alloy app, added this code in index.js to verify:
And in the default Classic app, added this code in app.js to verify:
Tested on: Appcelerator Studio, build: 3.2.1.201402061120 SDK build: 3.2.2.v20140214120903, 3.3.0.v20140214150951 CLI: 3.2.1 Alloy: 1.3.1 Xcode: 5.0.2, 5.1 beta 5 Devices: iphone retina 3.5 inch simulator (7.0.3, 7.1), ipad retina simulator (7.0.3, 7.1)