Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-151] Spawning the ios plugin through appc cli errors with cannot find module plist

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2017-11-16T17:22:14.000+0000
Affected Version/sAppc Daemon 1.0.0
Fix Version/sAppc Daemon 1.0.0
Componentsioslib
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2017-11-16T12:03:58.000+0000
Updated2017-11-17T00:18:55.000+0000

Description

Description

ioslib has a missing dependency which causes an error when distributed in the cli due to the legacy bundling style used.

Steps to reproduce

appc use 7.0.0-master.23

appc appcd start && appc exec /ios/latest/info

Actual

Error cannot find plist

Expected

No error, environment info returned

Comments

  1. Ewan Harris 2017-11-16

    https://github.com/appcelerator/ioslib/pull/70
  2. Chris Barber 2017-11-16

    Fixed in https://github.com/appcelerator/ioslib/commit/e387f07300145e7ba6cb692cbac1912f28676a9c.
  3. Kondal Kolipaka 2017-11-17

    I'm on CLI Core 7.0.0-master.26 still I'm facing this issue Appc Daemon version: 1.0.0-9
       2017-11-17T00:13:34.955Z appcd:plugin:external:parent error Failed to activate plugin: ios@1.0.0-9
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > appcd:plugin:tunnel:child Received response from parent: { message: 'Failed to load plugin: Cannot find module \'plist\'',
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > appcd:plugin:tunnel:child   stack: 'PluginError: Failed to load plugin: Cannot find module \'plist\'\n    at Function.Module._resolveFilename (module.js:536:15)\n    at PluginModule.require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:68:27)\n    at require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:108:33)\n    at Object.<anonymous> (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-default-plugins/node_modules/appcd-plugin-ios/node_modules/ioslib/dist/provisioning.js:24:14)\n    at PluginModule._compile (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:121:19)\n    at Object.Module._extensions..js (module.js:646:10)\n    at PluginModule.Module.load (module.js:554:32)\n    at Function.load (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:35:11)\n    at PluginModule.require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:69:23)\n    at require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:108:33)',
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > appcd:plugin:tunnel:child   status: 400,
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > appcd:plugin:tunnel:child   type: 'error' }
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > appcd:plugin:tunnel:child Deleting request handler: be76d577-7c45-4137-9576-48da183067cd /ios/1.x/info
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error PluginError: Failed to load plugin: Cannot find module 'plist'
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at Function.Module._resolveFilename (module.js:536:15)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at PluginModule.require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:68:27)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:108:33)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at Object.<anonymous> (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-default-plugins/node_modules/appcd-plugin-ios/node_modules/ioslib/dist/provisioning.js:24:14)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at PluginModule._compile (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:121:19)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at Object.Module._extensions..js (module.js:646:10)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at PluginModule.Module.load (module.js:554:32)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at Function.load (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:35:11)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at PluginModule.require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:69:23)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > system-info@1.0.0-9 error     at require (/Users/kkolipaka/.appcelerator/install/7.0.0-master.26/package/node_modules/appcd/node_modules/appcd-core/node_modules/appcd-plugin/dist/src/plugin-module.js:108:33)
       2017-11-17T00:13:34.956Z appcd:plugin:host:19216 > appcd:plugin:tunnel:child Sending tunnel request to parent: { id: '1ac9652d-16a8-43c1-b2e9-594e3617a224',
       201
       

JSON Source