Skip to content

Commit

Permalink
fix(ios): skip package validation on xcodebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Feb 1, 2024
1 parent 15cfd18 commit 9fcd557
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/services/ios/xcodebuild-args-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,17 @@ export class XcodebuildArgsService implements IXcodebuildArgsService {
projectRoot,
`${projectData.projectName}.xcworkspace`
);
// Introduced in Xcode 14+
// ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
const skipPackageValidation = "-skipPackagePluginValidation";

if (this.$fs.exists(xcworkspacePath)) {
return [
"-workspace",
xcworkspacePath,
"-scheme",
projectData.projectName,
"-skipPackagePluginValidation",
skipPackageValidation,
];
}

Expand All @@ -155,7 +159,7 @@ export class XcodebuildArgsService implements IXcodebuildArgsService {
xcodeprojPath,
"-scheme",
projectData.projectName,
"-skipPackagePluginValidation",
skipPackageValidation,
];
}

Expand Down

0 comments on commit 9fcd557

Please sign in to comment.