Skip to content

Commit 45f1870

Browse files
committed
fix: pass allowProvisioningUpdates to xcodebuild only when building for device
The `-allowProvisioningUpdates` option is passed to `xcodebuild` no matter if building for device or for simulator. According to the documentation of `xcodebuild`: ``` Allow xcodebuild to communicate with the Apple Developer website. For automatically signed targets, xcodebuild will create and update profiles, app IDs, and certificates. For manually signed targets, xcodebuild will download missing or updated provisioning profiles. Requires a developer account to have been added in Xcode's Accounts preference pane. ``` It seems it shouldn't be passed when building for simulator.
1 parent 0c79359 commit 45f1870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/services/ios/xcodebuild-args-service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export class XcodebuildArgsService implements IXcodebuildArgsService {
4848
const args = [
4949
"archive",
5050
"-archivePath", archivePath,
51-
"-configuration", buildConfig.release ? Configurations.Release : Configurations.Debug
51+
"-configuration", buildConfig.release ? Configurations.Release : Configurations.Debug,
52+
'-allowProvisioningUpdates'
5253
]
5354
.concat(this.getXcodeProjectArgs(platformData.projectRoot, projectData, ProductArgs.scheme))
5455
.concat(architectures)
@@ -92,8 +93,7 @@ export class XcodebuildArgsService implements IXcodebuildArgsService {
9293

9394
args = args.concat([
9495
"BUILD_DIR=" + path.join(platformData.projectRoot, constants.BUILD_DIR),
95-
'SHARED_PRECOMPS_DIR=' + path.join(platformData.projectRoot, 'build', 'sharedpch'),
96-
'-allowProvisioningUpdates'
96+
'SHARED_PRECOMPS_DIR=' + path.join(platformData.projectRoot, constants.BUILD_DIR, 'sharedpch')
9797
]);
9898

9999
return args;

0 commit comments

Comments
 (0)