Skip to content

Xcode Build error (incompatible pointer) #200

@Noblauch

Description

@Noblauch

After updating Mac OS to 11.4 and Xcode to 12.5 we can't build anymore!

We have a similar bug as ONTOPStudios. However the compile errors we are getting are different.
We get two incompatible pointer errors, that prevent the Unity project to compile:
Xcode incompatible pointer

Both errors are inside NativeGallery.mm
Error 1:

// Credit: https://stackoverflow.com/a/10531752/2373034
+ (void)pickMedia:(int)mediaType savePath:(NSString *)mediaSavePath {
	imagePicker = [[UIImagePickerController alloc] init];
	imagePicker.delegate = self; <––––– ERROR OCCURS HERE
	imagePicker.allowsEditing = NO;
	imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
        [...]

Error 2:

        [...]
	else { // iPad
		popup = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
		popup.delegate = self; <––––– ERROR OCCURS HERE
		[popup presentPopoverFromRect:CGRectMake( rootViewController.view.frame.size.width / 2, rootViewController.view.frame.size.height / 2, 1, 1 ) inView:rootViewController.view permittedArrowDirections:0 animated:YES];
	}
       [...]

I then updated native gallery, since I thought this was just a version issue, but the error stayed, I'm on the newest version.
We are blocked by this completely, I know this plugin is free and all, but any help for a workaround would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions