@@ -194,11 +194,9 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
194
194
shell . cp ( "-R" , libraryPath , fullTargetPath ) ;
195
195
196
196
let project = this . createPbxProj ( ) ;
197
- let frameworkPath = this . getFrameworkRelativePath ( libraryPath ) ;
198
- project . addFramework ( frameworkPath , { customFramework : true , embed : true } ) ;
199
- project . updateBuildProperty ( "IPHONEOS_DEPLOYMENT_TARGET" , "8.0" ) ;
197
+ let frameworkPath = "$(PROJECT_DIR)/" + this . getFrameworkRelativePath ( libraryPath ) ;
198
+ project . addFramework ( frameworkPath , { customFramework : true , embed : true , weak : true } ) ;
200
199
this . savePbxProj ( project ) . wait ( ) ;
201
- this . $logger . info ( "The iOS Deployment Target is now 8.0 in order to support Cocoa Touch Frameworks." ) ;
202
200
} ) . future < void > ( ) ( ) ;
203
201
}
204
202
@@ -313,7 +311,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
313
311
314
312
_ . each ( this . getAllDynamicFrameworksForPlugin ( pluginData ) . wait ( ) , fileName => {
315
313
let fullFrameworkPath = path . join ( pluginPlatformsFolderPath , fileName ) ;
316
- let relativeFrameworkPath = this . getFrameworkRelativePath ( fullFrameworkPath ) ;
314
+ let relativeFrameworkPath = "$(PROJECT_DIR)/" + this . getFrameworkRelativePath ( fullFrameworkPath ) ;
317
315
project . removeFramework ( relativeFrameworkPath , { customFramework : true , embed : true } )
318
316
} ) ;
319
317
@@ -379,4 +377,4 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
379
377
} ) . future < void > ( ) ( ) ;
380
378
}
381
379
}
382
- $injector . register ( "iOSProjectService" , IOSProjectService ) ;
380
+ $injector . register ( "iOSProjectService" , IOSProjectService ) ;
0 commit comments