Skip to content

Commit c673dc5

Browse files
authored
Propagate Apple Team ID through to AppClip target (#83)
If `ios.appleTeamId` is defined in app.json / app.config.js, it is now propagated to the Clip target too. Previously the developer would need to manually set the Signing Team in Xcode > Signing & Capabilities.
1 parent e2aa5c5 commit c673dc5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

plugin/src/withXcode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const withXcode: ConfigPlugin<{
3131
currentProjectVersion: config.ios?.buildNumber || "1",
3232
bundleIdentifier,
3333
deploymentTarget,
34+
appleTeamId: config.ios?.appleTeamId,
3435
});
3536

3637
const productFile = addProductFile(xcodeProject, {

plugin/src/xcode/addXCConfigurationList.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ export function addXCConfigurationList(
88
currentProjectVersion,
99
bundleIdentifier,
1010
deploymentTarget,
11+
appleTeamId,
1112
}: {
1213
name: string;
1314
targetName: string;
1415
currentProjectVersion: string;
1516
bundleIdentifier: string;
1617
deploymentTarget: string;
18+
appleTeamId?: string;
1719
},
1820
) {
1921
const commonBuildSettings: Record<string, string> = {
@@ -30,6 +32,7 @@ export function addXCConfigurationList(
3032
VERSIONING_SYSTEM: `"apple-generic"`,
3133
// TARGETED_DEVICE_FAMILY: `"1,2"`,
3234
CODE_SIGN_ENTITLEMENTS: `${targetName}/${targetName}.entitlements`,
35+
...(appleTeamId ? { DEVELOPMENT_TEAM: appleTeamId } : {}),
3336
};
3437

3538
const buildConfigurationsList = [

0 commit comments

Comments
 (0)