[TIMOB-17811] CLI: Check for iPhone platform in tisdk3fixes.js breaks Windows environment
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2014-10-01T16:04:06.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 3.4.2, Release 3.5.0, Release 4.0.0 |
| Components | CLI, iOS |
| Labels | 3.4.0, windows7 |
| Reporter | Pier Paolo Ramon |
| Assignee | Chris Barber |
| Created | 2014-10-01T10:03:23.000+0000 |
| Updated | 2015-03-03T22:42:58.000+0000 |
Description
At [tisdk3fixes.js:75](https://github.com/appcelerator/titanium/blob/master/hooks/tisdk3fixes.js#L75) you check for
cli.sdk.platforms.iphone.path but actually cli.sdk.platforms.iphone is undefined.
You can add at line 74 the following as a solution:
// ...
if (!cli.sdk.platforms.iphone) {
return callback();
}
// ...
[~cb1kenobi] let me know if you can take this in this sprint.
Here’s the proposed solution as a PR: https://github.com/appcelerator/titanium/pull/165
Dupe of TIMOB-17808.