@@ -71,27 +71,27 @@ -(void) LoadSimulatorFramework:(NSString*) developerDir {
71
71
NSBundle * dvtFoundationBundle =
72
72
[NSBundle bundleWithPath: dvtFoundationPath];
73
73
if (![dvtFoundationBundle load ]){
74
- nsprintf (@" Unable to dvtFoundationBundle. Error: " );
74
+ nsprintf (@" Unable to dvtFoundationBundle %@ " , dvtFoundationPath );
75
75
exit (EXIT_FAILURE);
76
76
return ;
77
77
}
78
78
NSString * devToolsFoundationPath = [developerDir stringByAppendingPathComponent: kDevToolsFoundationRelativePath ];
79
79
NSBundle * devToolsFoundationBundle =
80
80
[NSBundle bundleWithPath: devToolsFoundationPath];
81
81
if (![devToolsFoundationBundle load ]){
82
- nsprintf (@" Unable to devToolsFoundationPath. Error: " );
82
+ nsprintf (@" Unable to devToolsFoundationPath %@ " , devToolsFoundationPath );
83
83
return ;
84
84
}
85
85
NSString * coreSimulatorPath = [developerDir stringByAppendingPathComponent: kCoreSimulatorRelativePath ];
86
86
if ([[NSFileManager defaultManager ] fileExistsAtPath: coreSimulatorPath]) {
87
87
NSBundle * coreSimulatorBundle = [NSBundle bundleWithPath: coreSimulatorPath];
88
88
if (![coreSimulatorBundle load ]){
89
- nsprintf (@" Unable to coreSimulatorPath. Error: " );
89
+ nsprintf (@" Unable to coreSimulatorPath %@ " , coreSimulatorPath );
90
90
return ;
91
91
}
92
92
}
93
93
// Prime DVTPlatform.
94
- NSError * error;
94
+ NSError * error = nil ;
95
95
Class DVTPlatformClass = [self FindClassByName: @" DVTPlatform" ];
96
96
if (![DVTPlatformClass loadAllPlatformsReturningError: &error]) {
97
97
nsprintf (@" Unable to loadAllPlatformsReturningError. Error: %@ " ,[error localizedDescription ]);
@@ -103,10 +103,9 @@ -(void) LoadSimulatorFramework:(NSString*) developerDir {
103
103
}
104
104
NSBundle * simBundle = [NSBundle bundleWithPath: simBundlePath];
105
105
if (![simBundle load ]){
106
- nsprintf (@" Unable to load simulator framework. Error: %@ " ,[error localizedDescription ] );
106
+ nsprintf (@" Unable to load simulator bundle %@ " , simBundlePath );
107
107
return ;
108
108
}
109
- return ;
110
109
}
111
110
112
111
NSString * GetXcodeVersion () {
0 commit comments