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 {
204204 // Set Shared Variables
205205 NSMutableDictionary *exportVariable = [[NSMutableDictionary alloc ] init ];
206206 [exportVariable setValue: [NSString stringWithFormat: @" %@ " , self .appShortShareableURL] forKey: @" APPBOX_SHARE_URL" ];
207- [exportVariable setValue: [NSString stringWithFormat: @" %@ " , self .appLongShareableURL] forKey: @" APPBOX_LONG_SHARE_URL" ];
208207 [exportVariable setValue: [NSString stringWithFormat: @" %@ " , self .ipaFileDBShareableURL] forKey: @" APPBOX_IPA_URL" ];
209208 [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+
212213 if ([[NSFileManager defaultManager ] fileExistsAtPath: path]){
213214 [[NSFileManager defaultManager ] removeItemAtPath: path error: nil ];
214215 }
You can’t perform that action at this time.
0 commit comments