I get the following 3 new Xcode log messages with iOS 13 on launch (during application didFinishLaunchingWithOptions). Running on iPhone (not simulator). I assume this is just beta noise?[TraitCollection] Class _UISheetPresentationController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.[TraitCollection] Class _UIRootPresentationController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.[TraitCollection] Class UIPopoverPresentationController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.
Post not yet marked as solved
I'm currently using this hack to get a reference to the underlying NSWindow:
func nsWindow(from window: UIWindow) - AnyObject? {
guard let nsWindows = NSClassFromString("NSApplication")?.value(forKeyPath: "sharedApplication.windows") as? [AnyObject] else { return nil }
for nsWindow in nsWindows {
let uiWindows = nsWindow.value(forKeyPath: "uiWindows") as? [UIWindow] ?? []
if uiWindows.contains(window) { return nsWindow }
}
return nil
}
Then this to set the aspect ratio:
nsw.setValue(CGSize(width: 1.5, height: 1.0), forKey: "aspectRatio")
Which gives the following log output:
WARNING: SPI usage of '-[UINSWindow uiWindows]' is being shimmed. This will break in the future. Please file a radar requesting API for what you are trying to do.
Before filing a feedback request, is there a more robust/approved method of doing this?
Post not yet marked as solved
I'm attempting to upload an iOS 13-ready version of an app for TestFlight distribution. I get the following error with no further explanation:"App Store Connect Operation ErrorAn error occurred uploading to the App Store."The error occurs almost immediately after the start of the upload phase.I'm running Xcode 11 beta 6 on MacOS 10.14.6.The only unusual thing that preceeded this was a request to create a new Apple Distribution Certificate, which I let Xcode do.Any suggestions on how to diagnose the issue?