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

x/mobile/app: warnings on compiling #50519

Open
hajimehoshi opened this issue Jan 9, 2022 · 1 comment
Open

x/mobile/app: warnings on compiling #50519

hajimehoshi opened this issue Jan 9, 2022 · 1 comment
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@hajimehoshi
Copy link
Member

I saw these warnings when compiling an iOS application with gomobile:

# golang.org/x/mobile/app
darwin_ios.m:89:74: warning: 'statusBarOrientation' is deprecated: first deprecated in iOS 13.0 - Use the interfaceOrientation property of the window scene instead. [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:146:55: note: property 'statusBarOrientation' is declared deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:146:55: note: 'statusBarOrientation' has been explicitly marked deprecated here
darwin_ios.m:97:75: warning: 'statusBarOrientation' is deprecated: first deprecated in iOS 13.0 - Use the interfaceOrientation property of the window scene instead. [-Wdeprecated-declarations]
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:146:55: note: property 'statusBarOrientation' is declared deprecated here
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:146:55: note: 'statusBarOrientation' has been explicitly marked deprecated here
darwin_ios.m:140:77: warning: null passed to a callee that requires a non-null argument [-Wnonnull]

Gomobile version: 4a8be17bd2e3f4793a871839e766cbea7e999464

/CC @hyangah

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jan 9, 2022
@gopherbot gopherbot added this to the Unreleased milestone Jan 9, 2022
@heschi heschi added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 20, 2022
@caiwenju
Copy link

caiwenju commented Oct 8, 2022

Has the problem been solved at last?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants