Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,22 @@
20EA2EDD2F2CFC7C001CF0EF /* AgentDeviceRunnerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AgentDeviceRunnerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
20EA2EF02F2CFC7C001CF0EF /* Exceptions for "AgentDeviceRunner" folder in "AgentDeviceRunner" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 20EA2EC52F2CFC7B001CF0EF /* AgentDeviceRunner */;
};
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */

/* Begin PBXFileSystemSynchronizedRootGroup section */
20EA2EC82F2CFC7B001CF0EF /* AgentDeviceRunner */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
20EA2EF02F2CFC7C001CF0EF /* Exceptions for "AgentDeviceRunner" folder in "AgentDeviceRunner" target */,
);
path = AgentDeviceRunner;
sourceTree = "<group>";
};
Expand Down Expand Up @@ -352,6 +365,8 @@
DEVELOPMENT_TEAM = 2S799L9W4M;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = AgentDeviceRunner/Info.plist;
"INFOPLIST_FILE[sdk=macosx*]" = "";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = NO;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
Expand Down Expand Up @@ -386,6 +401,8 @@
DEVELOPMENT_TEAM = 2S799L9W4M;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = AgentDeviceRunner/Info.plist;
"INFOPLIST_FILE[sdk=macosx*]" = "";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = NO;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ - (void)viewDidLoad {

@end

#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
// UIApplicationSceneManifest in Info.plist names this class; a rename must update the manifest.
@interface AgentDeviceRunnerSceneDelegate : UIResponder <UIWindowSceneDelegate>
@property(nonatomic, strong) UIWindow *window;
@end
Expand All @@ -342,46 +342,11 @@ - (void)scene:(UIScene *)scene
}

@end
#endif

@interface AgentDeviceRunnerAppDelegate : UIResponder <UIApplicationDelegate>
@property(nonatomic, strong) UIWindow *window;
@end

@implementation AgentDeviceRunnerAppDelegate

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
(void)application;
(void)launchOptions;

#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
return YES;
#else
self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
self.window.rootViewController = [[AgentDeviceRunnerViewController alloc] init];
[self.window makeKeyAndVisible];

return YES;
#endif
}

#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
- (UISceneConfiguration *)application:(UIApplication *)application
configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession
options:(UISceneConnectionOptions *)options {
(void)application;
(void)connectingSceneSession;
(void)options;

UISceneConfiguration *configuration =
[[UISceneConfiguration alloc] initWithName:@"Default Configuration"
sessionRole:UIWindowSceneSessionRoleApplication];
configuration.delegateClass = AgentDeviceRunnerSceneDelegate.class;
return configuration;
}
#endif

@end

int main(int argc, char *argv[]) {
Expand Down
23 changes: 23 additions & 0 deletions apple/runner/AgentDeviceRunner/AgentDeviceRunner/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>AgentDeviceRunnerSceneDelegate</string>
</dict>
</array>
</dict>
</dict>
</dict>
</plist>
4 changes: 2 additions & 2 deletions docs/agents/device-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ toolchain per command:
reports it as `overlayWarning` on `record stop` rather than returning a broken file. Only reach
for `record start --hide-touches` when you want the fastest raw capture, not to dodge the defect.
See ADR 0025 and #2707.
- An app must adopt the UIScene lifecycle to launch on iOS 27.1 at all: a legacy
`UIApplicationDelegate` app traps at launch inside
- An app built with the iOS 27 SDK must adopt the UIScene lifecycle to launch on an iOS 27.0 or
27.1 simulator at all: a legacy `UIApplicationDelegate` app traps at launch inside
`___UIApplicationEvaluateRuntimeIssueForNoSceneLifecycleAdoption`, which reads like a broken
device but is not one.
- The 27.1 runtime in this beta accepts only the `iPhone Duo` device type, so a second non-foldable
Expand Down
Loading