File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,21 @@ - (void)testInstallFailingPackageAlreadyExists
122
122
123
123
- (void )setupInstallablePackage
124
124
{
125
+ _package.folderName = @" testpackage-iOS-phonehd" ;
126
+
125
127
NSString *pathToPackage = [[[NSBundle mainBundle ] bundlePath ] stringByAppendingPathComponent: @" Resources-shared/Packages/testpackage-iOS-phonehd_unzipped" ];
128
+ NSString *unzipPath = [NSTemporaryDirectory () stringByAppendingPathComponent: _package.folderName];
129
+
130
+ NSFileManager *fileManager = [NSFileManager defaultManager ];
131
+ NSError *error;
132
+ [fileManager removeItemAtPath: unzipPath error: nil ];
133
+ if (![fileManager copyItemAtPath: pathToPackage toPath: unzipPath error: &error])
134
+ {
135
+ NSLog (@" %@ " , error);
136
+ }
137
+
138
+ _package.unzipURL = [NSURL fileURLWithPath: unzipPath];
126
139
127
- _package.unzipURL = [NSURL fileURLWithPath: pathToPackage];
128
- _package.folderName = @" testpackage-iOS-phonehd" ;
129
140
_package.enableOnDownload = NO ;
130
141
}
131
142
You can’t perform that action at this time.
0 commit comments