Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions plugins/withCheckInLiveActivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,22 @@ const withCheckInLiveActivity = (config) => {
const resolvedCurrentProjectVersion =
hostCurrentProjectVersion || (config.ios?.buildNumber ?? '1');

// Resolve DEVELOPMENT_TEAM from the host target so the widget extension
// can be signed. EAS sets this on the main target during credential
// application; copying it here ensures the widget inherits it.
let hostDevelopmentTeam = null;
const hostBuildConfigListId = targetSection[hostTarget.uuid].buildConfigurationList;
const hostBuildConfigList = project.pbxXCConfigurationList()[hostBuildConfigListId];
if (hostBuildConfigList) {
const firstHostConfigUuid = hostBuildConfigList.buildConfigurations[0]?.value;
if (firstHostConfigUuid) {
const firstHostConfig = project.pbxXCBuildConfigurationSection()[firstHostConfigUuid];
if (firstHostConfig?.buildSettings) {
hostDevelopmentTeam = firstHostConfig.buildSettings.DEVELOPMENT_TEAM || null;
}
}
}

const buildConfigListId = targetSection[widgetTarget.uuid].buildConfigurationList;
const buildConfigList = project.pbxXCConfigurationList()[buildConfigListId];
if (buildConfigList) {
Expand All @@ -461,6 +477,9 @@ const withCheckInLiveActivity = (config) => {
CODE_SIGN_STYLE: 'Automatic',
MARKETING_VERSION: resolvedMarketingVersion,
CURRENT_PROJECT_VERSION: resolvedCurrentProjectVersion,
// Propagate the development team from the host target so the
// widget extension can be signed (required since Xcode 14+).
...(hostDevelopmentTeam ? { DEVELOPMENT_TEAM: hostDevelopmentTeam } : {}),
});
}
}
Expand Down
Loading