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

Can't compile on Cordova 6.1.1 #32

Open
DBZFYAM opened this issue May 19, 2016 · 10 comments
Open

Can't compile on Cordova 6.1.1 #32

DBZFYAM opened this issue May 19, 2016 · 10 comments

Comments

@DBZFYAM
Copy link

DBZFYAM commented May 19, 2016

As soon as I add this plugin and try to run the project on iOS I get the error below (error 65):

The following build commands failed:
CompileC build/Ricoh\ Open.build/Debug-iphoneos/Ricoh\ Open.build/Objects-normal/armv7/CanvasCamera.o Ricoh\ Open/Plugins/com.keith.cordova.plugin.canvascamera/CanvasCamera.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/sdegraaf/Sites/engagement-factory/apps/RicohOpen/platforms/ios/cordova/build-debug.xcconfig,-project,Ricoh Open.xcodeproj,ARCHS=armv7 arm64,-target,Ricoh Open,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/sdegraaf/Sites/engagement-factory/apps/RicohOpen/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/sdegraaf/Sites/engagement-factory/apps/RicohOpen/platforms/ios/build/sharedpch

Also tried removing and readding the platform but this doesn't work. After removing the plugin and readding the platform, all is well again. Does anyone know what causes this and how to fix it?

Thanks in advance,
Regards,
Stefan

@JackConnor
Copy link

Us Too!

@AceLondon
Copy link

AceLondon commented Jun 8, 2016

@DBZFYAM and @JackConnor - This build failure has to due with the plugin using the once-depreciated now-removed resultJS = [pluginResult toSuccessCallbackString:command.callbackId]; or resultJS = [pluginResult toErrorCallbackString:command.callbackId]; and [self writeJavascript:resultJS];! They both need to be updated to the newer [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];

Also, on cordova-ios@4+ you will need to cast the Webview class as it also supports WKWebView:

if ([self.webView isKindOfClass:[UIWebView class]]) { [(UIWebView*)self.webView stringByEvaluatingJavaScriptFromString:jsString]; }

@srnrepo
Copy link

srnrepo commented Jun 17, 2016

Please help me

Android platform build error!

D:\WorkSpace\Mobile Development\Ionic Projects\Ample App\ample\platforms\android
\src\com\keith\canvascameraplugin\CanvasCameraView.java:134: error: package R do
es not exist
m_imgFlash = (ImageView) findViewById(R.id.imgFlash);

Is it a problem of resource package?
How can I fix this?
Looking forward to your reply asap
Thanks

@shrijan
Copy link

shrijan commented Jul 12, 2016

Did you fix it? I am stuck with same thing

@tranlong021988
Copy link

same issue with @srnrepo , anyone how to fix it ?

@jasonvroom
Copy link

The same issue

@happybird100
Copy link

happybird100 commented Sep 28, 2016

@srnrepo you need add a line in CanvasCameraView.java
{PackageName}.R;
example: com.xxxx.xxx.R;

@Francuchin
Copy link

The same issue

@clarzou
Copy link

clarzou commented Dec 12, 2016

@AceLondon hello, i am new to ionic and cordova, could you detail how to cast the Webview class as it also supports WKWebView ? Thank you in advance !

@S0c5
Copy link

S0c5 commented Mar 20, 2017

@clarzou did you solve your issue?

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