You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2015/09/02 18:53:48 UTC
[jira] [Comment Edited] (CB-9249) Fix iOS warnings in Media Capture
plugin
[ https://issues.apache.org/jira/browse/CB-9249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727621#comment-14727621 ]
Shazron Abdullah edited comment on CB-9249 at 9/2/15 4:53 PM:
--------------------------------------------------------------
Sorry for the late check. I still get the warning:
{code}
// incompatible pointer types initializing 'NSString *__strong' with an expression of type 'CGPathRef'
NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];
if (moviePath) {
result = [self processVideo:moviePath forCallbackId:callbackId];
}
{code}
Using Xcode 7b5, I created a new project and added the cordova-ios platform from master, then added the plugin straight from your repo.
{code}
cordova platform add https://github.com/apache/cordova-ios.git
cordova plugin add https://github.com/macdonst/cordova-plugin-media-capture.git
{code}
I then ran, then built:
{code}
open -a Xcode-beta platforms/ios
{code}
was (Author: shazron):
Sorry for the late check. I still get the warning:
{code}
// incompatible pointer types initializing 'NSString *__strong' with an expression of type 'CGPathRef'
NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];
if (moviePath) {
result = [self processVideo:moviePath forCallbackId:callbackId];
}
{code}
Using Xcode 7b5, I created a new project and added the cordova-ios platform from master, then added the plugin straight from your repo.
> Fix iOS warnings in Media Capture plugin
> ----------------------------------------
>
> Key: CB-9249
> URL: https://issues.apache.org/jira/browse/CB-9249
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Media Capture
> Environment: Xcode 6.3.2
> Reporter: Shazron Abdullah
> Assignee: Simon MacDonald
> Labels: cordova-ios-4.0.x
>
> {code}
> CDVCapture.m:519:19: warning:
> incompatible pointer types initializing 'NSString *__strong' with an expression of type 'CGPathRef'
> (aka 'const struct CGPath *') [-Wincompatible-pointer-types]
> NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~CDVCapture.m:819:60: warning:
> comparison of address of 'UIAccessibilityAnnouncementNotification' not equal to a null pointer is always true
> [-Wtautological-pointer-compare]
> BOOL isUIAccessibilityAnnouncementNotification = (&UIAccessibilityAnnouncementNotification != NULL);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
> 2 warnings generated.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org