Post

Replies

Boosts

Views

Activity

Reply to XCode 27 xcappdata is broken again
I've made a rather horrid work around for now so I can run UITests against different installed data using a shell script, xcodebuild and simctl. Basically I create a simulator, I run xcodebuild test with a dummy test run to install the app on the simulator, use simctl get_app_container to get the apps data container, then using cp to copy individual directories from my xcappdata into their equivalents in the data container. Finally I run xcodebuild test with my actual test plan. This is very slow, and the shell script seems to frequently hang for a while after completing a test run.
2w
Reply to External Display stops working at iOS 27 / Xcode 27
OK, reading the article again it was easy to fix, I just added the following to my root view controller and it started working again: @interface MainViewController () @property (nonatomic, nullable) UISceneAccessoryRegistration *externalDisplayRegistration API_AVAILABLE(ios(27.0)); @end @implementation MainViewController - (void) viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. if (@available(iOS 27.0, *)) { // Support for new external display registration UISceneConfiguration *sceneConfiguration = [UISceneConfiguration new]; sceneConfiguration.delegateClass = [MyExternalDisplayWindowSceneDelegate class]; UISceneAccessory *sceneAccessory = [UISceneAccessory externalNonInteractiveSceneAccessoryWithConfiguration:sceneConfiguration]; self.externalDisplayRegistration = [self registerSceneAccessory:sceneAccessory]; } } The original article provides swift. Be careful to specify your own window scene delegate. It seems ok to leave the original code where it is so previous versions work too.
Topic: UI Frameworks SubTopic: UIKit
3w
Reply to XCode 27 xcappdata is broken again
I can go into device hub, and get it to show me the location of a simulator, and it opens a finder window in 'Devices' which has symlinks to the devices. But I have no idea where that directory is. I can find the simulators in ~/Library/Developer/CoreSimulator/Devices like before, but the directory structures don't look like the ones revealed by device hub. So I search my mac for the same directory names as the ones in 'Devices' but they're nowhere to be found. so even if I want to write a script, the directory locations are a total mystery.
3w
Reply to XCode 27 xcappdata is broken again
I've made a rather horrid work around for now so I can run UITests against different installed data using a shell script, xcodebuild and simctl. Basically I create a simulator, I run xcodebuild test with a dummy test run to install the app on the simulator, use simctl get_app_container to get the apps data container, then using cp to copy individual directories from my xcappdata into their equivalents in the data container. Finally I run xcodebuild test with my actual test plan. This is very slow, and the shell script seems to frequently hang for a while after completing a test run.
Replies
Boosts
Views
Activity
2w
Reply to External Display stops working at iOS 27 / Xcode 27
OK, reading the article again it was easy to fix, I just added the following to my root view controller and it started working again: @interface MainViewController () @property (nonatomic, nullable) UISceneAccessoryRegistration *externalDisplayRegistration API_AVAILABLE(ios(27.0)); @end @implementation MainViewController - (void) viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. if (@available(iOS 27.0, *)) { // Support for new external display registration UISceneConfiguration *sceneConfiguration = [UISceneConfiguration new]; sceneConfiguration.delegateClass = [MyExternalDisplayWindowSceneDelegate class]; UISceneAccessory *sceneAccessory = [UISceneAccessory externalNonInteractiveSceneAccessoryWithConfiguration:sceneConfiguration]; self.externalDisplayRegistration = [self registerSceneAccessory:sceneAccessory]; } } The original article provides swift. Be careful to specify your own window scene delegate. It seems ok to leave the original code where it is so previous versions work too.
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
3w
Reply to XCode 27 xcappdata is broken again
I can go into device hub, and get it to show me the location of a simulator, and it opens a finder window in 'Devices' which has symlinks to the devices. But I have no idea where that directory is. I can find the simulators in ~/Library/Developer/CoreSimulator/Devices like before, but the directory structures don't look like the ones revealed by device hub. So I search my mac for the same directory names as the ones in 'Devices' but they're nowhere to be found. so even if I want to write a script, the directory locations are a total mystery.
Replies
Boosts
Views
Activity
3w