![](/img/trans.png)
[英]NSUserDefaults initWithSuiteName persisting after deleting app
[英]App Group ID and initWithSuiteName: method
我必須使用App Group與我的容器應用程序和Today Widget通信。 我已經創建了類似於group.com.myCompany.myApp
應用程序組ID,並在如下代碼中使用它: NSUserDefaults *shared = [[NSUserDefaults alloc] initWithSuiteName:@"group.com.myCompany.myApp"];
並且所有作品都很棒。 問題是-對於企業和AppStore,我需要創建另一個App Group ID和AppID,依此類推-這是否意味着我每次為Debug / Enterprise / AppStore構建ipa時,都必須更改此部分@"group.com.myCompany.myApp"
手動設置為@"group.com.myCompanyEnterprise.myApp"
和@"group.com.myCompanyAppStore.myApp"
?
您無需為enterprise
和AppStore
創建新的App Group ID
和AppID
。 僅使用相同的AppID
。 您需要在enterprise
和AppStore
構建中進行更改的只是provisioning profile
和相應的生產證書。 那應該使用相同的AppID
進行訪問。 因此,無需每次都更改App Group ID
和AppID
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.