File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments