Get path to iOS application based on name or bundle identifier

前端 未结 3 622
猫巷女王i
猫巷女王i 2021-01-02 22:42

Is there an easier way to get the path to an iOS application, than searching /var/mobile/Applications?

I know both the name and the bundle identifier, h

3条回答
  •  [愿得一人]
    2021-01-02 23:05

    If running in an app, you can define:

    extern NSString* SBSCopyBundlePathForDisplayIdentifier(NSString* bundleId);
    

    and link to the SpringboardServices framework.

提交回复
热议问题