How to quickly get app's directory from its bundle id on jailbroken iOS device?

前端 未结 2 1209
天涯浪人
天涯浪人 2021-02-06 11:49

In iOS devices, all user applications are located in /var/mobile/Applications directory, and each app has a unique random uuid as its directory name, for instance:<

2条回答
  •  名媛妹妹
    2021-02-06 12:24

    And here this is another solution, if your code runs in SpringBoard:

    NSString *applicationBundleIdentifier = @"...";
    SBApplication *application = [[SBApplicationController sharedInstance]applicationWithDisplayIdentifier:applicationBundleIdentifier];
    NSString *path = application.containerPath;
    

提交回复
热议问题