[TIMOB-8967] iOS: Compiler/Titanium needs to warn if <ios> section of tiapp.xml is malformed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-01-10T18:06:48.000+0000 |
Affected Version/s | Release 2.0.1, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | SupportTeam, cb-tooling, core |
Reporter | Shannon Hicks |
Assignee | Chris Barber |
Created | 2012-05-02T17:36:52.000+0000 |
Updated | 2020-01-10T18:06:48.000+0000 |
Description
Problem Description
If the
[INFO] One moment, building ...
Traceback (most recent call last):
Test case
Here's a sample of malformed code:
<ios>
<plist>
<key>CFBundleDisplayName</key>
<string>New Eng Inn</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
</plist>
</ios>
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
This is still broken in Titanium SDK master 6.1.0.
I tried linting it but then noticed it actually goes through (even though the
Everything else (plist key-structure, missing values) are processed even before, so we may do this validation in the tiappxml.js already.