[TIMOB-24028] iOS: Build errors out with Invalid <log-server-port> found in the tiapp.xml: undefined
| GitHub Issue | n/a |
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-10-13T14:28:41.000+0000 |
| Affected Version/s | Release 6.0.0 |
| Fix Version/s | Release 6.0.0 |
| Components | iOS |
| Labels | qe-6.0.0 |
| Reporter | Ewan Harris |
| Assignee | Chris Barber |
| Created | 2016-10-13T11:23:39.000+0000 |
| Updated | 2016-10-13T16:24:39.000+0000 |
Description
Description
When building a project for iOS device or simulator the build will fail with the following \[ERROR\] Invalid <log-server-port> found in the tiapp.xml: undefined, this happens when building for device or simulator.
*Workaround*
Add <log-server-port>12345</log-server-port> to the iOS section of your tiapp
Steps to reproduce
Create an app using appc new/ti create
Build the app for iOS using appc run -p ios/ti build -p ios
Actual result
Build errors out with the above
Expected result
Build should not error out
Comments
JSON Source
Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8508 Ti SDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8509
I am unable to reproduce this issue with the following components: iPhone 7 (10.0) Simulator Mac OS Sierra (10.12) Ti SDK: 6.0.0.v20161013032040 Appc Studio: 4.8.0.201610060953 Appc NPM: 4.2.8-7 App CLI: 6.0.0-58 Xcode 8.0 Node v4.4.7
[~htbryant] Make sure you don't have a
<log-server-port>in the tiapp.xml. Since it's not there, it'll be undefined, and specifically not a number and thus the bug.Ok, I can reproduce the issue.
Verified as fixed, Error no longer occurs when not specifying
appc new_ _- Tested in Studio_ _-Tested with both iOS9/10 Simulators & Devices_ Tested On: iPhone 6 Plus 10.0.2 Device & Simulator iPhone 5S 9.3.5 Device & Simulator Mac OS Sierra (10.12) Ti SDK: 6.0.0.v20161013072802 Appc Studio: 4.8.0.201610060953 Appc NPM: 4.2.8-7 App CLI: 6.0.0-58 Xcode 8.0 Node v4.4.7 *Closing ticket.*