Skip to content

Commit 754e139

Browse files
Remove app long sharable URL from fastlane export options
1 parent 13c6e6f commit 754e139

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

AppBox/Model/ProjectModel/XCProject.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)