Skip to content

Commit e47cff4

Browse files
authored
fix(ios): skip package validation on xcodebuild (#5782)
1 parent 0ec3b5e commit e47cff4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

+12-1
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,31 @@ export class XcodebuildArgsService implements IXcodebuildArgsService {
115115
projectRoot,
116116
`${projectData.projectName}.xcworkspace`
117117
);
118+
// Introduced in Xcode 14+
119+
// ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
120+
const skipPackageValidation = "-skipPackagePluginValidation";
121+
118122
if (this.$fs.exists(xcworkspacePath)) {
119123
return [
120124
"-workspace",
121125
xcworkspacePath,
122126
"-scheme",
123127
projectData.projectName,
128+
skipPackageValidation,
124129
];
125130
}
126131

127132
const xcodeprojPath = path.join(
128133
projectRoot,
129134
`${projectData.projectName}.xcodeproj`
130135
);
131-
return ["-project", xcodeprojPath, "-scheme", projectData.projectName];
136+
return [
137+
"-project",
138+
xcodeprojPath,
139+
"-scheme",
140+
projectData.projectName,
141+
skipPackageValidation,
142+
];
132143
}
133144

134145
private getBuildLoggingArgs(): string[] {

0 commit comments

Comments
 (0)