File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
AppBox/Model/ProjectModel Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -204,11 +204,12 @@ - (BOOL)exportSharedURLInSystemFile {
204
204
// Set Shared Variables
205
205
NSMutableDictionary *exportVariable = [[NSMutableDictionary alloc ] init ];
206
206
[exportVariable setValue: [NSString stringWithFormat: @" %@ " , self .appShortShareableURL] forKey: @" APPBOX_SHARE_URL" ];
207
- [exportVariable setValue: [NSString stringWithFormat: @" %@ " , self .appLongShareableURL] forKey: @" APPBOX_LONG_SHARE_URL" ];
208
207
[exportVariable setValue: [NSString stringWithFormat: @" %@ " , self .ipaFileDBShareableURL] forKey: @" APPBOX_IPA_URL" ];
209
208
[exportVariable setValue: [NSString stringWithFormat: @" %@ " , self .manifestFileSharableURL] forKey: @" APPBOX_MANIFEST_URL" ];
210
-
211
- NSString *path = [[NSString stringWithFormat: @" ~/%@ " , FILE_NAME_SHARE_URL] stringByExpandingTildeInPath ];
209
+
210
+ NSString *documentDirectory = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES ) firstObject ];
211
+ NSString *path = [documentDirectory stringByAppendingPathComponent: FILE_NAME_SHARE_URL];
212
+
212
213
if ([[NSFileManager defaultManager ] fileExistsAtPath: path]){
213
214
[[NSFileManager defaultManager ] removeItemAtPath: path error: nil ];
214
215
}
You can’t perform that action at this time.
0 commit comments