Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25196] iOS: CLI throws ATS-warning although *.appcelerator.com is properly whitelisted

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelscb-tooling
ReporterHans Knöchel
AssigneeUnknown
Created2017-08-27T16:44:51.000+0000
Updated2020-01-30T22:59:02.000+0000

Description

_Following up on an email-thread with [~ben.bahrenburg@gmail.com]._ When manually whitelisting ATS domains, he added appcelerator.com to the ATS-configuration, but there was still a warning thrown:
[WARN] :   ATS enabled, however *.appcelerator.com are not whitelisted
[WARN] :   Consider setting the "ios.whitelist.appcelerator.com" property in the tiapp.xml to "true"
Looking into the [related code](https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_build.js#L4001-L4002), it falls through the if-case and lands in the else-case, because he manages the ATS-setting manually instead of setting the ios.whitelist.appcelerator.com property to true. So what should the code do? It should detect ATS references properly in [here](https://github.com/appcelerator/titanium_mobile/blob/master/iphone/cli/commands/_build.js#L2323-L2324), so it either checks if the property is enabled, but also checks if it is manually set.

Comments

No comments

JSON Source