[TIMOB-11678] CLI: iOS: iPad Simulator launches as iPhone Simulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-11T21:21:09.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2012 Sprint 23 JS, 2012 Sprint 23, 2012 Sprint 25 JS, 2013 Sprint 05 API, 2013 Sprint 05 |
Components | CLI |
Labels | 3.0.0beta2, js, qe-closed-3.3.0, qe-ios100112, qe-testadded, regression |
Reporter | Pragya Rastogi |
Assignee | Sabil Rahim |
Created | 2012-10-19T11:56:51.000+0000 |
Updated | 2014-07-23T11:03:42.000+0000 |
Description
This is regression issue. With 2.1.2 Studio and latest SDK, iPAD Simulator launches.
Steps To Reproduce:
1. Install Studio 3.0 latest version with latest SDK and plugins.
2. Create a default app.
3. Run same app using iPAD Simulator
Actual: App launches in iPhone Simulator.
Expected: App must launch in iPAD Simulator.
Able to reproduce, here is the studio shell command:
Please pull the latest 3.0.X build and latest CLI, then try again. I think this is no longer an issue. Thanks!
Recreated issue in Titanium Studio, build: 3.1.0.201210221756 using Titanium SDK: 3.0.0.v20121019153308 and CLI 3.0.9.
This issue does appear fixed in Titanium Studio, build: 3.0.0.201210220122 using Titanium SDK: 3.0.0.v20121019153308.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3393 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3394
Reopening, issue has returned. Does not occur in Xcode 4.4.1 using iPad Simulator 5.1. Does not occur in Titanium SDK 2.1.4.GA. This fails in every CLI going back to 3.0.14. CLI 3.0.13 does not work at all in this current environment. Titanium Studio: 3.0.0.201211301903 Titanium SDK: 3.0.0.v20121130200208 Titanium CLI: 3.0.19 OS: Mountain Lion 10.8.2 Xcode: 4.5.2 studio log:
console log:
I can't reproduce this anymore, it must be either intermittent, related to changing from one version of Xcode to another, or some other edge case.
Steps to Reproduce: 1. Deploy Titanium Project to iPad Simulator. 2. Using the same run configuration, run in iPhone Simulator. The project does not appear to be rebuilt and runs on whatever simulator type it was built for first. It looks like Studio is making the correct calls.
Could be caused by or related to TISTUD-2950.
Log excerpt from TISTUD-2950:
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3539 3.0.x pull request: https://github.com/appcelerator/titanium_mobile/pull/3542
I am no longer seeing this issue after a full Xcode/SDK/Studio/Node.JS reinstall. It is possible the Xcode 4.4 installation interfered with the existing 4.5 simulators, for lack of a better explanation. Titanium Studio: 3.0.0.201212071410 Titanium SDK: 2.1.4.GA, 3.0.0.v20121207120202 Titanium CLI: 3.0.20 iOS Simulators: iPhone/iPad 6.0/5.1. Xcode: 4.5.2 OS: Mountain Lion 10.8.2
Opening ipad and iphone simulator alternatively works fine.Verified with following environment- Titanium Studio:3.0.1.201212181159 Titanium SDK: 3.0.0.GA Titanium CLI: 3.0.22 iOS Simulators: iPhone/iPad 6.0 Xcode: 4.5 OS: Mountain Lion 10.8
Re-opening it as it is still not working through CLI. Earlier I just launched it through studio and it worked fine for iphone as well as ipad. But when a project is launched from CLI for ipad simulator,iphone simulator is launched always. Even if iphone is never launched before and supplied ipad in command, then also iphone simulator is launched. Checke if for the latest sdk 3.1.0.v20130114171802 as well as 3.0.0.GA
@Shyam, launch and reset the iOS Simulator, then try it again. It should work. The question is, if you do it again, does it work the second time?
It works fine as far as user do not changes titanium sdk build(with which the project was created), no issue comes on switching between iphone and ipad. But when titanium sdk is changed (through 'titanium setup' command), two bugs occur a) it starts asking for "Target platform [android,ios,mobileweb]:" twice. b) it stops launching ipad(even do not launches any simulator at all).Error is as shown below [ERROR] An error occurred running the iOS Simulator [ERROR] [DEBUG] Sessiocould not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "iOS Simulator failed to install the application." UserInfo=0x100123400 {NSLocalizedDescription=iOS Simulator failed to install the application., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
Shyam, what is the CLI command you are running? Are you passing in the "-Y" simulator type?
Eric, I was using the command "titanium build -F ipad". But now I also tried with "titanium build -Y ipad" and the results are the same. Switching between iphone and ipad simulator is good till titanium sdk remains same as with which the project was created. When the titanium sdk is changed from its origin, ipad simulator stops launching. Steps to reproduce: 1) In terminal with CLI installed, create a titanium project, target platform = iOS 2) Build the created project "titanium build -F ipad" 3) Now build it with command "titanium build -F iphone" 4) Now build it with command ""titanium build -F ipad -s 3.0.0.GA" (it should be different from what the project was created with) Expected result: ipad simulator should be launched. Actual result: iphone simulator is launched.
I understand now. One thing to note: -F is device family. This is used for determining what iOS device the app will run on: -F ipad - iPad only app -F iPhone - iPhone/iPod, will run on iPad but in iPhone idiom -F universal - works on all devices, on iPad should be in iPad idiom
Chris indicates this may be fixed as a result of addressing TIMOB-5992.
Should have been fixed as a result of TIMOB-5992 - PR 3945
Looks like it is fixed as a result of TIMOB-5992. Tested with: Titanium Studio, build: 3.1.0.201303182358 Titanium SDK, build: 3.1.0.v20130320123256 CLI 3.0.25 XCode 4.6 iOS Mountain Lion 10.8.2 and confirmed that iPad Simulator launches properly.
Verified as fixed using: OSX: 10.9.3 Xcode: 5.1.1 Appcelerator Studio: 3.3.0.201406171619 SDK -3.3.0.v20140617161713 acs-1.0.14 alloy-1.4.0-rc npm-1.3.2 titanium-3.3.0-rc titanium-code-processor-1.1.1