Godot-Share
Godot-Share copied to clipboard
iOS build issue Godot 3.x
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 <UIAppearanceContainer> {} ^ 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 <UIAppearanceContainer> {} ^ 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 <UIAppearanceContainer> {} ^ 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 <UIAppearanceContainer> {} ^ 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.