Cotton code
51 lines · 2.5 KBRaw
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>	<!-- The app↔extension shared container, and the ONLY channel between them	     (design P9). Derived from the bundle id through COTTON_APP_GROUP, so a	     bundle-id change carries the group with it rather than stranding the	     extensions on a container the app no longer opens. COTTON_APP_ID is	     the flavor's (`project.yml`'s COTTON_FLAVOR), so the real app and	     Cotton Dev each get their own group and never share a container. -->	<key>com.apple.security.application-groups</key>	<array>		<string>$(COTTON_APP_GROUP)</string>		<!-- The group every Cotton app shares, for the voice models		     (`project.yml`'s COTTON_SHARED_GROUP). -->		<string>$(COTTON_SHARED_GROUP)</string>	</array>	<!-- PUSH. On the app and on NO extension: an extension receives no pushes,	     and a push entitlement on one is a code-signing failure with no useful	     message. The iOS project spec test holds both halves.	     `production`, and it is a decision rather than a derivation. An earlier	     build derived it from a debug flag; the two build configurations this	     app has "differ in optimisation and in DEBUG, and in NOTHING about	     identity", there is	     ONE App ID, and the only distribution is TestFlight — which is	     production APNs. Apple refuses a mismatch silently: a sandbox token	     offered to the production host is `BadDeviceToken` and the phone is	     simply quiet.	     A debug run on a cabled device would want `development`. That is a	     one-line change, rather than a second build configuration.	     It lands in the SAME PR as the native registration, never before: the	     Push Notifications capability has to be on the App ID first, and every	     merge to main ships a TestFlight build. The App Store profile	     `match AppStore com.cottondb.cotton` was decoded before this	     line was written and carries `aps-environment: production`. -->	<!-- The keychain access group EVERY Cotton app shares (e2e rulings R9):	     the device key, the vault key and the data keys are kept there, so one	     founding or one approval serves every app on the phone. Per flavour	     through COTTON_KEYCHAIN_GROUP, so Cotton and Cotton Dev never share	     one. -->	<key>keychain-access-groups</key>	<array>		<string>$(AppIdentifierPrefix)$(COTTON_KEYCHAIN_GROUP)</string>	</array>	<key>aps-environment</key>	<string>production</string></dict></plist>