Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS compile errors #17

Open
vcrepin opened this issue Apr 11, 2016 · 5 comments
Open

IOS compile errors #17

vcrepin opened this issue Apr 11, 2016 · 5 comments

Comments

@vcrepin
Copy link

vcrepin commented Apr 11, 2016

Hello. I'm using the latest version of ionic framework (1.2) and this plugin does not compile for IOS. Here are the errors:

/Users/vincentcrepin/ionicProjects/BlitzClock/platforms/ios/BlitzClock/Plugins/at.gofg.sportscomputer.powermanagement/PowerManagement.m:39:28: error: no visible @interface for 'CDVPluginResult' declares the selector 'toSuccessCallbackString:'
jsString = [result toSuccessCallbackString:callbackId];

/Users/vincentcrepin/ionicProjects/BlitzClock/platforms/ios/BlitzClock/Plugins/at.gofg.sportscomputer.powermanagement/PowerManagement.m:43:28: error: no visible @interface for 'CDVPluginResult' declares the selector 'toErrorCallbackString:'
jsString = [result toErrorCallbackString:callbackId];
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/Users/vincentcrepin/ionicProjects/BlitzClock/platforms/ios/BlitzClock/Plugins/at.gofg.sportscomputer.powermanagement/PowerManagement.m:46:11: error: no visible @interface for 'PowerManagement' declares the selector 'writeJavascript:'
[self writeJavascript:jsString];
~~~~ ^~~~~~~~~~~~~~~
/Users/vincentcrepin/ionicProjects/BlitzClock/platforms/ios/BlitzClock/Plugins/at.gofg.sportscomputer.powermanagement/PowerManagement.m:63:28: error: no visible @interface for 'CDVPluginResult' declares the selector 'toSuccessCallbackString:'
jsString = [result toSuccessCallbackString:callbackId];
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/Users/vincentcrepin/ionicProjects/BlitzClock/platforms/ios/BlitzClock/Plugins/at.gofg.sportscomputer.powermanagement/PowerManagement.m:67:28: error: no visible @interface for 'CDVPluginResult' declares the selector 'toErrorCallbackString:'
jsString = [result toErrorCallbackString:callbackId];
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
/Users/vincentcrepin/ionicProjects/BlitzClock/platforms/ios/BlitzClock/Plugins/at.gofg.sportscomputer.powermanagement/PowerManagement.m:70:11: error: no visible @interface for 'PowerManagement' declares the selector 'writeJavascript:'
[self writeJavascript:jsString];
@jhanish
Copy link

jhanish commented Nov 12, 2016

I have same issue. Any movement on this?

@klochko7
Copy link

I have same issue too. Any movement on this?

@andre-arsenault
Copy link

I encountered the same problem and found a solution on this thread: https://stackoverflow.com/questions/28850016/how-do-i-replace-the-deprecated-methods-tosuccesscallbackstring-and-writejavascr

@andre-arsenault
Copy link

Apparently the code has already been fixed in this repository (see this pull request) but the NPM package hasn't been updated. So many people may have the broken version installed.

I suggest re-installing the plug-in via the cordova command-line instead of npm.
$ cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git

@emcniece
Copy link

Confirming @andre-arsenault - installing from git repo works.

ionic cordova plugin rm at.gofg.sportscomputer.powermanagement
ionic cordova plugin add https://github.com/Viras-/cordova-plugin-powermanagement.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants