@@ -9,7 +9,7 @@ import { schema, syncXcodeDefaultsLogic } from '../sync_xcode_defaults.ts';
99const EXAMPLE_PROJECT_PATH = join ( process . cwd ( ) , 'example_projects/iOS/MCPTest.xcodeproj' ) ;
1010const EXAMPLE_XCUSERSTATE = join (
1111 EXAMPLE_PROJECT_PATH ,
12- 'project.xcworkspace/xcuserdata/cameroncooke .xcuserdatad/UserInterfaceState.xcuserstate' ,
12+ 'project.xcworkspace/xcuserdata/johndoe .xcuserdatad/UserInterfaceState.xcuserstate' ,
1313) ;
1414
1515describe ( 'sync_xcode_defaults tool' , ( ) => {
@@ -59,14 +59,14 @@ describe('sync_xcode_defaults tool', () => {
5959 async ( ) => {
6060 const simctlOutput = JSON . stringify ( {
6161 devices : {
62- 'com.apple.CoreSimulator.SimRuntime.iOS-18 -0' : [
63- { udid : 'CE3C0D03-8F60-497A-A3B9-6A80BA997FC2 ' , name : 'Apple Vision Pro' } ,
62+ 'com.apple.CoreSimulator.SimRuntime.xrOS-2 -0' : [
63+ { udid : 'B38FE93D-578B-454B-BE9A-C6FA0CE5F096 ' , name : 'Apple Vision Pro' } ,
6464 ] ,
6565 } ,
6666 } ) ;
6767
6868 const executor = createCommandMatchingMockExecutor ( {
69- whoami : { output : 'cameroncooke \n' } ,
69+ whoami : { output : 'johndoe \n' } ,
7070 find : { output : `${ EXAMPLE_PROJECT_PATH } \n` } ,
7171 stat : { output : '1704067200\n' } ,
7272 'xcrun simctl' : { output : simctlOutput } ,
@@ -82,14 +82,14 @@ describe('sync_xcode_defaults tool', () => {
8282 expect ( result . content [ 0 ] . text ) . toContain ( 'Synced session defaults from Xcode IDE' ) ;
8383 expect ( result . content [ 0 ] . text ) . toContain ( 'Scheme: MCPTest' ) ;
8484 expect ( result . content [ 0 ] . text ) . toContain (
85- 'Simulator ID: CE3C0D03-8F60-497A-A3B9-6A80BA997FC2 ' ,
85+ 'Simulator ID: B38FE93D-578B-454B-BE9A-C6FA0CE5F096 ' ,
8686 ) ;
8787 expect ( result . content [ 0 ] . text ) . toContain ( 'Simulator Name: Apple Vision Pro' ) ;
8888 expect ( result . content [ 0 ] . text ) . toContain ( 'Bundle ID: com.example.MCPTest' ) ;
8989
9090 const defaults = sessionStore . getAll ( ) ;
9191 expect ( defaults . scheme ) . toBe ( 'MCPTest' ) ;
92- expect ( defaults . simulatorId ) . toBe ( 'CE3C0D03-8F60-497A-A3B9-6A80BA997FC2 ' ) ;
92+ expect ( defaults . simulatorId ) . toBe ( 'B38FE93D-578B-454B-BE9A-C6FA0CE5F096 ' ) ;
9393 expect ( defaults . simulatorName ) . toBe ( 'Apple Vision Pro' ) ;
9494 expect ( defaults . bundleId ) . toBe ( 'com.example.MCPTest' ) ;
9595 } ,
@@ -98,14 +98,14 @@ describe('sync_xcode_defaults tool', () => {
9898 it . skipIf ( ! existsSync ( EXAMPLE_XCUSERSTATE ) ) ( 'syncs using configured projectPath' , async ( ) => {
9999 const simctlOutput = JSON . stringify ( {
100100 devices : {
101- 'com.apple.CoreSimulator.SimRuntime.iOS-18 -0' : [
102- { udid : 'CE3C0D03-8F60-497A-A3B9-6A80BA997FC2 ' , name : 'Apple Vision Pro' } ,
101+ 'com.apple.CoreSimulator.SimRuntime.xrOS-2 -0' : [
102+ { udid : 'B38FE93D-578B-454B-BE9A-C6FA0CE5F096 ' , name : 'Apple Vision Pro' } ,
103103 ] ,
104104 } ,
105105 } ) ;
106106
107107 const executor = createCommandMatchingMockExecutor ( {
108- whoami : { output : 'cameroncooke \n' } ,
108+ whoami : { output : 'johndoe \n' } ,
109109 'test -f' : { success : true } ,
110110 'xcrun simctl' : { output : simctlOutput } ,
111111 xcodebuild : { output : ' PRODUCT_BUNDLE_IDENTIFIER = com.example.MCPTest\n' } ,
@@ -125,7 +125,7 @@ describe('sync_xcode_defaults tool', () => {
125125
126126 const defaults = sessionStore . getAll ( ) ;
127127 expect ( defaults . scheme ) . toBe ( 'MCPTest' ) ;
128- expect ( defaults . simulatorId ) . toBe ( 'CE3C0D03-8F60-497A-A3B9-6A80BA997FC2 ' ) ;
128+ expect ( defaults . simulatorId ) . toBe ( 'B38FE93D-578B-454B-BE9A-C6FA0CE5F096 ' ) ;
129129 expect ( defaults . bundleId ) . toBe ( 'com.example.MCPTest' ) ;
130130 } ) ;
131131
@@ -139,14 +139,14 @@ describe('sync_xcode_defaults tool', () => {
139139
140140 const simctlOutput = JSON . stringify ( {
141141 devices : {
142- 'com.apple.CoreSimulator.SimRuntime.iOS-18 -0' : [
143- { udid : 'CE3C0D03-8F60-497A-A3B9-6A80BA997FC2 ' , name : 'Apple Vision Pro' } ,
142+ 'com.apple.CoreSimulator.SimRuntime.xrOS-2 -0' : [
143+ { udid : 'B38FE93D-578B-454B-BE9A-C6FA0CE5F096 ' , name : 'Apple Vision Pro' } ,
144144 ] ,
145145 } ,
146146 } ) ;
147147
148148 const executor = createCommandMatchingMockExecutor ( {
149- whoami : { output : 'cameroncooke \n' } ,
149+ whoami : { output : 'johndoe \n' } ,
150150 find : { output : `${ EXAMPLE_PROJECT_PATH } \n` } ,
151151 stat : { output : '1704067200\n' } ,
152152 'xcrun simctl' : { output : simctlOutput } ,
@@ -162,7 +162,7 @@ describe('sync_xcode_defaults tool', () => {
162162
163163 const defaults = sessionStore . getAll ( ) ;
164164 expect ( defaults . scheme ) . toBe ( 'MCPTest' ) ;
165- expect ( defaults . simulatorId ) . toBe ( 'CE3C0D03-8F60-497A-A3B9-6A80BA997FC2 ' ) ;
165+ expect ( defaults . simulatorId ) . toBe ( 'B38FE93D-578B-454B-BE9A-C6FA0CE5F096 ' ) ;
166166 expect ( defaults . simulatorName ) . toBe ( 'Apple Vision Pro' ) ;
167167 expect ( defaults . bundleId ) . toBe ( 'com.example.MCPTest' ) ;
168168 // Original projectPath should be preserved
0 commit comments