3 Replies Latest reply on Jul 10, 2017 11:49 AM by kerrishotts

    OpenTok Plugin fails to build for Ios

    stagerap Level 1

      Hello, I am trying to build my app with the opentok plugin to allow for webcams. When building the app, it is giving me this error: plugin unsupported: com.tokbox.cordova.opentok @ 1.0.3

       

      There is also a log for the IOS build here:

       

      Error - Plugin error (you probably need to remove plugin files from your app): //github.com/songz/cordova-plugin-opentok/": Fetching plugin "https://github.com/songz/cordova-plugin-opentok/" via git clone Using shallow clone Repository "https://github.com/songz/cordova-plugin-opentok/" checked out to git ref "master" at "9f863b6". Installing "com.tokbox.cordova.opentok" at "1.0.3" for ios Error during processing of action! Attempting to revert... Failed to install 'com.tokbox.cordova.opentok':CordovaError: Uh oh! Cannot find framework "/private/tmp/gimlet/70271353716540/2335649/project/cordova/plugins/com.tokbox.cordova.op entok/src/ios/OpenTok.framework" for plugin com.tokbox.cordova.opentok in iOS platform at install (/private/tmp/gimlet/70271353716540/2335649/project/cordova/lib/plugman/pluginHandlers.js :82:48) at Object.process (/private/tmp/gimlet/70271353716540/2335649/project/cordova/node_modules/cordova-common/s rc/ActionStack.js:56:25) at PluginManager.doOperation (/private/tmp/gimlet/70271353716540/2335649/project/cordova/node_modules/cordova-common/s rc/PluginManager.js:117:20) at PluginManager.addPlugin (/private/tmp/gimlet/70271353716540/2335649/project/cordova/node_modules/cordova-common/s rc/PluginManager.js:147:17) at Api.addPlugin (/private/tmp/gimlet/70271353716540/2335649/project/cordova/Api.js:219:10) at handleInstall (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install .js:580:6) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install. js:384:20 at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:749:13) Uh oh! Cannot find framework "/private/tmp/gimlet/70271353716540/2335649/project/cordova/plugins/com.tokbox.cordova.op entok/src/ios/OpenTok.framework" for plugin com.tokbox.cordova.opentok in iOS platform - You can fix this here

       

      I have also added the plugin to my config.xml using the plugin tag that was recommended:

      <plugin name="com.tokbox.cordova.opentok" spec="1.0.3" source="pgb" />

       

      Information was retrieved from the phonegap website: https://build.phonegap.com/plugins/1867

       

      Is there any other way to install this plugin to my app without using the config.xml plugin tag?

       

      The plugin successfully compiles for windows and android but throws an error for ios. Would prefer using config.xml to install the plugin.