File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -426,11 +426,12 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
426
426
427
427
private prepareCocoapods ( pluginPlatformsFolderPath : string ) : IFuture < void > {
428
428
return ( ( ) => {
429
- if ( ! this . $fs . exists ( this . projectPodFilePath ) . wait ( ) ) {
430
- this . $fs . writeFile ( this . projectPodFilePath , "use_frameworks!\n" ) . wait ( ) ;
431
- }
432
429
let pluginPodFilePath = path . join ( pluginPlatformsFolderPath , "Podfile" ) ;
433
430
if ( this . $fs . exists ( pluginPodFilePath ) . wait ( ) ) {
431
+ if ( ! this . $fs . exists ( this . projectPodFilePath ) . wait ( ) ) {
432
+ this . $fs . writeFile ( this . projectPodFilePath , "use_frameworks!\n" ) . wait ( ) ;
433
+ }
434
+
434
435
let pluginPodFileContent = this . $fs . readText ( pluginPodFilePath ) . wait ( ) ;
435
436
let contentToWrite = this . buildPodfileContent ( pluginPodFilePath , pluginPodFileContent ) ;
436
437
this . $fs . appendFile ( this . projectPodFilePath , contentToWrite ) . wait ( ) ;
You can’t perform that action at this time.
0 commit comments