添加app groups

This commit is contained in:
2025-11-18 14:41:35 +08:00
parent ced0b88ca4
commit 254e65906a
5 changed files with 28 additions and 6 deletions

View File

@@ -51,6 +51,13 @@
KBGuideVC *vc = [KBGuideVC new];
[weakSelf.navigationController pushViewController:vc animated:true];
};
/// groups
// NSUserDefaults *sharedDefaults = [[NSUserDefaults alloc] initWithSuiteName:AppGroup];
// //
// [sharedDefaults setObject:@"Hello From Main App" forKey:@"TestSharedString"];
// [sharedDefaults synchronize];
// NSLog(@"[MainApp] 写入完成");
}
// viewDidLoad push

View File

@@ -10,6 +10,10 @@
<array>
<string>applinks:app.tknb.net</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.loveKey.nyx</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.loveKey.nyx.shared</string>