Skip to content

Commit 9fcd557

Browse files
committed
fix(ios): skip package validation on xcodebuild
1 parent 15cfd18 commit 9fcd557

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,17 @@ export class XcodebuildArgsService implements IXcodebuildArgsService {
136136
projectRoot,
137137
`${projectData.projectName}.xcworkspace`
138138
);
139+
// Introduced in Xcode 14+
140+
// ref: https://forums.swift.org/t/telling-xcode-14-beta-4-to-trust-build-tool-plugins-programatically/59305/5
141+
const skipPackageValidation = "-skipPackagePluginValidation";
142+
139143
if (this.$fs.exists(xcworkspacePath)) {
140144
return [
141145
"-workspace",
142146
xcworkspacePath,
143147
"-scheme",
144148
projectData.projectName,
145-
"-skipPackagePluginValidation",
149+
skipPackageValidation,
146150
];
147151
}
148152

@@ -155,7 +159,7 @@ export class XcodebuildArgsService implements IXcodebuildArgsService {
155159
xcodeprojPath,
156160
"-scheme",
157161
projectData.projectName,
158-
"-skipPackagePluginValidation",
162+
skipPackageValidation,
159163
];
160164
}
161165

0 commit comments

Comments
 (0)