Bring your iOS app to the Mac

RSS for tag

Discuss the WWDC22 Session Bring your iOS app to the Mac

Posts under wwdc2022-10076 tag

3 Posts

Post

Replies

Boosts

Views

Activity

Xcode Cloud Fails to export archive: Command exited with non-zero exit-code: 70
Hi. I'm using Xcode Version 13.4.1. I have a project that builds an iOS app successfully in Xcode cloud. However, I am getting errors when trying to execute the archiving action. It seems archiving for app-store distribution works but fails archiving for development distribution and ad-hoc distribution. I only need the archive for app-store distribution and so what is the way to disable archiving for the other two ? Also, is there any way to provide a custom export options plist ?
6
2
5.8k
Mar ’23
Mac Catalyst on Multiple Displays: Using UIWindowSceneGeometryPreferencesMac to set a default window size causes new windows to open on the wrong display
In the WWDC 2022 video "Bring your iOS App to the Mac" there is sample code which shows the recommended way to set the default window size for a new window. According to the presenter it is considered good practice to do this in -scene:willConnectToSession:options: CGRect systemFrame = scene.effectiveGeometry.systemFrame; CGRect newFrame = CGRectMake(systemFrame.origin.x,                                      systemFrame.origin.y,                                      defaultWindowSize.width,                                      defaultWindowSize.height);  UIWindowSceneGeometryPreferencesMac *geometryPrefs = [[UIWindowSceneGeometryPreferencesMac alloc]initWithSystemFrame:newFrame];         [scene requestGeometryUpdateWithPreferences:geometryPrefs errorHandler:^(NSError * _Nonnull error)          {         //Error         }]; So I have a button in my UI that opens a new window that uses this window scene delegate class. I have a laptop and external display connected. Now my app's window is on the external display and when I click the button the opens the new window, the new window opens on the laptop's main display (the display physically attached). This is wrong. Setting the requestingScene property on UISceneActivationRequestOptions makes no difference, the new window still opens on the wrong display no matter what. If I comment out the above code that sets the initial window size... the window opens on external display as expected (but now I've lost my window size).
3
0
1.4k
Dec ’22
UNNavigationController to NSToolBar Catalyst
Hello there, Does the UNNavigationController have to be the rootViewController to get the automatic conversion to an NSToolBar? For example, I have a UITabBarController which contain several views, each with their own UINavigationController but they are not converting to NSToolBars. Is this a beta 2 limitation? Also, the sample code linked for session wwdc2022-10076 won’t compile for macOS vis Catalyst. https://developer.apple.com/documentation/uikit/app_and_environment/supporting_desktop-class_features_in_your_ipad_app Thanks, Matt
1
0
823
Jul ’22
Xcode Cloud Fails to export archive: Command exited with non-zero exit-code: 70
Hi. I'm using Xcode Version 13.4.1. I have a project that builds an iOS app successfully in Xcode cloud. However, I am getting errors when trying to execute the archiving action. It seems archiving for app-store distribution works but fails archiving for development distribution and ad-hoc distribution. I only need the archive for app-store distribution and so what is the way to disable archiving for the other two ? Also, is there any way to provide a custom export options plist ?
Replies
6
Boosts
2
Views
5.8k
Activity
Mar ’23
Mac Catalyst on Multiple Displays: Using UIWindowSceneGeometryPreferencesMac to set a default window size causes new windows to open on the wrong display
In the WWDC 2022 video "Bring your iOS App to the Mac" there is sample code which shows the recommended way to set the default window size for a new window. According to the presenter it is considered good practice to do this in -scene:willConnectToSession:options: CGRect systemFrame = scene.effectiveGeometry.systemFrame; CGRect newFrame = CGRectMake(systemFrame.origin.x,                                      systemFrame.origin.y,                                      defaultWindowSize.width,                                      defaultWindowSize.height);  UIWindowSceneGeometryPreferencesMac *geometryPrefs = [[UIWindowSceneGeometryPreferencesMac alloc]initWithSystemFrame:newFrame];         [scene requestGeometryUpdateWithPreferences:geometryPrefs errorHandler:^(NSError * _Nonnull error)          {         //Error         }]; So I have a button in my UI that opens a new window that uses this window scene delegate class. I have a laptop and external display connected. Now my app's window is on the external display and when I click the button the opens the new window, the new window opens on the laptop's main display (the display physically attached). This is wrong. Setting the requestingScene property on UISceneActivationRequestOptions makes no difference, the new window still opens on the wrong display no matter what. If I comment out the above code that sets the initial window size... the window opens on external display as expected (but now I've lost my window size).
Replies
3
Boosts
0
Views
1.4k
Activity
Dec ’22
UNNavigationController to NSToolBar Catalyst
Hello there, Does the UNNavigationController have to be the rootViewController to get the automatic conversion to an NSToolBar? For example, I have a UITabBarController which contain several views, each with their own UINavigationController but they are not converting to NSToolBars. Is this a beta 2 limitation? Also, the sample code linked for session wwdc2022-10076 won’t compile for macOS vis Catalyst. https://developer.apple.com/documentation/uikit/app_and_environment/supporting_desktop-class_features_in_your_ipad_app Thanks, Matt
Replies
1
Boosts
0
Views
823
Activity
Jul ’22