簡體   English   中英

是否可以從安裝plist中獲取信息?

[英]Is it possible to get information out of install plist?

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

我想做的是在安裝時將一些信息傳遞給應用程序,以便它隨后可以在應用程序中使用該信息。 我無法將此數據設為靜態,因此無法將其存儲在根目錄下的Info.plist文件中。 它必須是動態的,並且會根據安裝情況進行更改。 我也無法通過Web服務等傳遞信息,它需要在安裝時進行。

非常感謝,

達科

由於您是為企業發行的(即不是通過App Store進行分發),因此有一個想法:既然您可以在構建應用程序包后重新設計該應用程序包,而ipa只是一個重命名的zip,那么為什么不放置它呢?服務器上的應用程序作為未壓縮的軟件包,並讓服務器端腳本插入設置。每次有人下載該應用程序時,plist,zip和對該應用程序進行代碼簽名?

綜上所述:

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.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM