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
Appears that there is still an issue with 0.12 [~fmiao] FYI.
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
thenliveview install clihook
to reinstall the hook.[~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
Great! I'm glad you're up and working. Can we close this ticket?
Closing as a duplicate of TIMOB-18538