如何获取.ipa文件路径

6

我的应用程序包含敏感数据,因此我想为.ipa文件生成哈希密钥,是否可能实现?如何获取.ipa文件路径以生成密钥。

我已经在.app文件中完成了几个文件的操作。


2
我觉得你的问题有点毫无意义...如果你担心有人绕过应用程序未经授权访问那些敏感数据,你应该通过编程方式对其进行加密。 - holex
@holex,是的,你说得对。但是我的程序是银行应用,所以我们想采取分层安全措施。我已经为.app文件内部做了我需要的一切。在这一点上需要帮助吗? - simbesi.com
2个回答

7

在iPhone上

如果您正在使用install0us,则位置为

/var/Mobile/Library/Downloads/

如果您通过iTunes传输购买内容,则不会将ipa文件复制到iPhone上,它们会以“Application.app”的形式安装在** /Applications/ 或 /var/mobile/Library/Applications **中。

此外,在Mac OS中的.ipa文件位置

1- Launch iTunes
2- Under Library menu, click on [Apps] menu.
3- The iTunes will display all installed app
4- Right-click on one of those apps
5- Then click “Show in Finder” option
Alternative way to do that is, by simply open the directory of .ipa files stored by using this path:
User/Music/iTunes/Mobile Applications

目前为止,我是这样为配置文件做的: NSString *certificatePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"embedded.mobileprovision"]; - simbesi.com
你可以从以下代码中获取.app路径:NSString *certificatePath = [[NSBundle mainBundle] executablePath]; - Neenu
1
这种方法可能在iTunes 12.7.0之后无法使用。 相反,您可以使用Apple Configurator。 您需要使用USB电缆将手机连接到Mac,然后导航到此路径:〜/ Library / Group Containers / K36BKF7T3D.group.com.apple.configurator / Library / Caches / Assets / TemporaryItems / MobileApps / - MrDEV

3

在Windows中查找.ipa文件的位置

 - Launch iTunes
 - Under Library menu, click on [Apps] menu.
 - The iTunes will display all installed app
 - Right-click on one of those apps
 - Then click “Show in Windows Explorer” option
 - A Windows Explorer will be opened navigating directly to the path of .ipa files.

或者,

 you can simply open a Windows Explorer and type this path in the address bar: C:\Users\User\Music\iTunes\iTunes Media\Mobile Applications`

Mac OS中.ipa文件的位置

 -  Launch iTunes
 -  Under Library menu, click on [Apps] menu.
 -  The iTunes will display all installed app
 -  Right-click on one of those apps
 -  Then click “Show in Finder” option

替代方案

way to do that is, by simply open the directory of .ipa files stored by using this path: User/Music/iTunes/Mobile Applications

Reference


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接