Closed screendriver closed 7 years ago
What version of Xcode you are using?
Try to open platforms/ios/My Project.xcodeproj
file in Xcode. It should not ask you to "Convert Swift code to new format", but if it will - don't do that. Run the "build" from it (cmd + B) and see what errors it will display. Post the screen here, please, if you can.
Xcode Version 8.0 (8A218a
I created a completely new project and it works 😳
I will clean my existing project and try to set it up new. It seems that in my project is something that is cached or something. Thank you for the quick response 👍
Update: I found out that when you add cordova-plugin-camera
your cordova-hot-code-push-local-dev-addon
will not build anymore. I can use either cordova-plugin-camera
or cordova-hot-code-push-local-dev-addon
but not both at the same time.
Cool, at least you found what causing the problem. Will check it out. Also, will rename the issue to be more clear.
Any news about that? It seems that not only cordova-plugin-camera
fails here. I've got other plugins and the build is failing as well.
Was busy with the main plugin: preparing new release with bug fixes and improvements. So, didn't have time for that one.
What other plugins?
I can't figure it out. I have +10 plugins and need all of them. Without them my App doesn't work respectively doesn't start.
Okay, the problem is that this plugin does some changes in application's .plist, and in some situations it breaks it's format. And for some reason that happens only if other plugins add stuff to .plist as well.
Released v0.4.1 with the fix. Should work now. If not - please, reopen the issue.
Now I get a Error: Cannot find module 'plist-native'
PS: I can't reopen it because you closed it 😉
I just tried it and works fine...
Maybe some caching issue, I don't know. Try to reinstall the plugin, cleanup the project.
If it doesn't help - just go to YOUR_PROJECT_NAME/plugins/cordova-hot-code-push-local-dev-addon/
and run npm i
, or even npm i plist-native
.
npm i
:
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/me/.nvm/versions/node/v6.7.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.0.0
gyp ERR! command "/Users/me/.nvm/versions/node/v6.7.0/bin/node" "/Users/me/.nvm/versions/node/v6.7.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/me/Development/frame/plugins/cordova-hot-code-push-local-dev-addon/node_modules/libxmljs
gyp ERR! node -v v6.7.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/me/.nvm/versions/node/v6.7.0/bin/node" "/Users/me/.nvm/versions/node/v6.7.0/bin/npm" "i"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! libxmljs@0.17.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxmljs@0.17.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs libxmljs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls libxmljs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/me/Development/frame/plugins/cordova-hot-code-push-local-dev-addon/npm-debug.log
npm i plist-native
: the same
It seems like it is not compatible with your OS for some reason. Okay, will try to use another package...
Please, try now by installing plugin like this:
cordova plugin add https://github.com/nordnet/cordova-hot-code-push-local-dev-addon.git
Thank you. Now it seems to work 👍
Cool, closing then. Uploaded this version on npm.
gives me on macOS Sierra: