Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24028] iOS: Build errors out with Invalid <log-server-port> found in the tiapp.xml: undefined

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-10-13T14:28:41.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.0.0
ComponentsiOS
Labelsqe-6.0.0
ReporterEwan Harris
AssigneeChris Barber
Created2016-10-13T11:23:39.000+0000
Updated2016-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

  1. Chris Barber 2016-10-13

    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
  2. Harry Bryant 2016-10-13

    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
  3. Chris Barber 2016-10-13

    [~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.
  4. Harry Bryant 2016-10-13

    Ok, I can reproduce the issue.
  5. Harry Bryant 2016-10-13

    Verified as fixed, Error no longer occurs when not specifying in tiapp.xml. _- Tested on CLI with 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.*

JSON Source