是否可以从安装plist中获取信息?

问题描述:

我试图找出是否有可能从用于安装企业应用程序到设备上的plist获取任何信息,然后存储以供应用程序使用。是否可以从安装plist中获取信息?

我想要做的是将一些信息传递给安装的应用程序,以便它可以在应用程序内使用该信息。我无法将此数据设置为静态,因此无法将其存储在根目录中的Info.plist文件中;它需要是动态的,并且会在安装的基础上进行更改。我也不能通过网络服务等传递信息,它需要在安装时发生。

非常感谢,

Davoc

既然要分发的企业(即不通过App Store),这里有一个想法:它已经建立了一个应用程序包后,因为你可以重新协同设计,而且ipa只是一个重命名的zip文件,为什么不把它作为一个解压缩的包放到服务器上,并且每次有人下载应用程序时都要有一个服务器端脚本插入settings.plist,zip和codesign应用程序?

总结:

1. Compile the package, but don't code-sign it. 
2. Place the app folder (*.app) onto a server. 
3. When the user downloads it by requesting a link, have the server generate your desired url into a plist and overwrite the existing settings.plist in the bundle 
4. Code-sign the package using apple's codesign tool via command line 
5. Zip the whole thing and rename to .ipa 
6. Serve the package to the client. 
+0

嗨,这就是我试图避免真的,这是我想到的,但我害怕的时候签署了一大捆(100MB +),其中一些的应用程序将是。你对性能有任何想法吗?另一个问题是我们运行的是Windows Server,因为我们需要一些苹果构建服务器。感谢您的回答,恐怕我认为这看起来像唯一的选择(因为我已经回到绘图板这么多次了!)Davoc – 2012-03-06 09:34:39

+0

您是否尝试过在Windows中运行cygwin上的apple codeign工具?看起来像是一个BSD工具 – futureelite7 2012-03-14 10:26:46

+0

不知道这是可能的,因为钥匙串? – 2012-03-26 15:07:18