Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18574] iOS: Unable to build to iOS sim or device (on Node 0.12)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2015-02-26T01:22:01.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 4.0.0
ComponentsiOS, LiveView
Labelsqe-4.0.0
ReporterEwan Harris
AssigneeTim Poulsen
Created2015-02-13T23:44:56.000+0000
Updated2015-02-26T01:22:01.000+0000

Description

Description

When attempting to build for iOS the SDK throws a longjohn error shown below.
[TRACE] :  ** BUILD SUCCEEDED **
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
        throw e;
              ^
Socket.socketErrorListener (_http_client.js:269:42),Socket.emit (events.js:107:17),net.js:451:14,process._tickCallback (node.js:355:11)

*To work around the above error* Remove liveview from your config.json file manually, using the liveview rm clihook *may not fix the issue*. This can be found at Users -> -> .titanium. In the hooks section remove:
"/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1414188893/node_modules/liveview/hook"
If I change the SDK in the tiapp.xml to a previous SDK that worked then the build fails instantly with the error below
dyld: lazy symbol binding failed: Symbol not found: __ZN2v86Object3SetENS_6HandleINS_5ValueEEES3_NS_17PropertyAttributeE
  Referenced from: /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212164157/node_modules/ioslib/node_modules/node-ios-device/out/node_ios_device_v14.node
  Expected in: dynamic lookup

dyld: Symbol not found: __ZN2v86Object3SetENS_6HandleINS_5ValueEEES3_NS_17PropertyAttributeE
  Referenced from: /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212164157/node_modules/ioslib/node_modules/node-ios-device/out/node_ios_device_v14.node
  Expected in: dynamic lookup

Trace/BPT trap: 5

Steps To Reproduce

1. Download the latest SDK ti sdk install -b master -d 2. Attempt to build to an iOS device or sim

Actual Result

The build will fail and throw a longjohn error

Expected Result

The build should not fail

Comments

  1. Ingo Muschenetz 2015-02-14

    Appears that there is still an issue with 0.12 [~fmiao] FYI.
  2. Tim Poulsen 2015-02-18

    Ewan, I can build to simulator and device running Node 0.12 just fine. I suspect a version problem on your system. * You must be using a master build of the SDK (e.g. v4.0.0) newer than Feb 13th's build. * You must be using a master build of the CLI (e.g. 3.6.0-dev) newer than Feb 9th. * You must be using LiveView 1.0.7 (e.g. master newer than Feb 12th) with its updated CLI hook installed. Do liveview rm clihook then liveview install clihook to reinstall the hook.
  3. Ewan Harris 2015-02-18

    [~skypanther], I managed ti fix the issue on my machine last night after working with Feon. I had installed LiveView from Github and removed the hook but for some reason the hook was still being set to the path of my LiveView within Studio. Everything is working good on my system now. Thanks for the help
  4. Tim Poulsen 2015-02-18

    Great! I'm glad you're up and working. Can we close this ticket?
  5. Ewan Harris 2015-02-26

    Closing as a duplicate of TIMOB-18538

JSON Source