2012-03-05 72 views
1

我試圖找出是否有可能從用於安裝企業應用程序到設備上的plist獲取任何信息,然後存儲以供應用程序使用。是否可以從安裝plist中獲取信息?

我想要做的是將一些信息傳遞給安裝的應用程序,以便它可以在應用程序內使用該信息。我無法將此數據設置爲靜態,因此無法將其存儲在根目錄中的Info.plist文件中;它需要是動態的,並且會在安裝的基礎上進行更改。我也不能通過網絡服務等傳遞信息,它需要在安裝時發生。

非常感謝,

Davoc

回答

0

既然要分發的企業(即不通過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

相關問題