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 build issue Godot 3.x #18

Open
HEAVYPOLY opened this issue Jan 2, 2023 · 0 comments
Open

iOS build issue Godot 3.x #18

HEAVYPOLY opened this issue Jan 2, 2023 · 0 comments

Comments

@HEAVYPOLY
Copy link

Fails to build with these errors on godot today's 3.x branch

modules/share/ios/src/godotShare.mm:29:10:{29:10-29:25}: error: receiver type 'ViewController' for instance message is a forward declaration [5]
[root_controller presentViewController:avc animated:YES completion:nil];
^~~~~~~~~~~~~~~
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
modules/share/ios/src/godotShare.mm:34:9: warning: 'UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController. [-Wdeprecated-declarations,34]
UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:avc];
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h:26:12: note: 'UIPopoverController' has been explicitly marked deprecated here [2]
@interface UIPopoverController : NSObject {}
^
modules/share/ios/src/godotShare.mm:34:40: warning: 'UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController. [-Wdeprecated-declarations,34]
UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:avc];
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h:26:12: note: 'UIPopoverController' has been explicitly marked deprecated here [2]
@interface UIPopoverController : NSObject {}
^
modules/share/ios/src/godotShare.mm:35:66:{35:50-35:65}: error: property 'view' cannot be found in forward class object 'ViewController' [2]
[popup presentPopoverFromRect:CGRectMake(root_controller.view.frame.size.width/2, root_controller.view.frame.size.height/4, 0, 0)inView:root_controller.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
~~~~~~~~~~~~~~~ ^
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
modules/share/ios/src/godotShare.mm:35:107:{35:91-35:106}: error: property 'view' cannot be found in forward class object 'ViewController' [2]
[popup presentPopoverFromRect:CGRectMake(root_controller.view.frame.size.width/2, root_controller.view.frame.size.height/4, 0, 0)inView:root_controller.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
~~~~~~~~~~~~~~~ ^
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
modules/share/ios/src/godotShare.mm:35:161:{35:145-35:160}: error: property 'view' cannot be found in forward class object 'ViewController' [2]
[popup presentPopoverFromRect:CGRectMake(root_controller.view.frame.size.width/2, root_controller.view.frame.size.height/4, 0, 0)inView:root_controller.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
~~~~~~~~~~~~~~~ ^
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
modules/share/ios/src/godotShare.mm:52:10:{52:10-52:25}: error: receiver type 'ViewController' for instance message is a forward declaration [5]
[root_controller presentViewController:avc animated:YES completion:nil];
^~~~~~~~~~~~~~~
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
modules/share/ios/src/godotShare.mm:57:9: warning: 'UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController. [-Wdeprecated-declarations,34]
UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:avc];
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h:26:12: note: 'UIPopoverController' has been explicitly marked deprecated here [2]
@interface UIPopoverController : NSObject {}
^
modules/share/ios/src/godotShare.mm:57:40: warning: 'UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController. [-Wdeprecated-declarations,34]
UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:avc];
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPopoverController.h:26:12: note: 'UIPopoverController' has been explicitly marked deprecated here [2]
@interface UIPopoverController : NSObject {}
^
modules/share/ios/src/godotShare.mm:58:66:{58:50-58:65}: error: property 'view' cannot be found in forward class object 'ViewController' [2]
[popup presentPopoverFromRect:CGRectMake(root_controller.view.frame.size.width/2, root_controller.view.frame.size.height/4, 0, 0)inView:root_controller.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
~~~~~~~~~~~~~~~ ^
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
modules/share/ios/src/godotShare.mm:58:107:{58:91-58:106}: error: property 'view' cannot be found in forward class object 'ViewController' [2]
[popup presentPopoverFromRect:CGRectMake(root_controller.view.frame.size.width/2, root_controller.view.frame.size.height/4, 0, 0)inView:root_controller.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
~~~~~~~~~~~~~~~ ^
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
modules/share/ios/src/godotShare.mm:58:161:{58:145-58:160}: error: property 'view' cannot be found in forward class object 'ViewController' [2]
[popup presentPopoverFromRect:CGRectMake(root_controller.view.frame.size.width/2, root_controller.view.frame.size.height/4, 0, 0)inView:root_controller.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
~~~~~~~~~~~~~~~ ^
platform/iphone/app_delegate.h:33:8: note: forward declaration of class here [2]
@Class ViewController;
^
[ 63%] 4 warnings and 8 errors generated.

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

1 participant