@@ -181,14 +181,15 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
181
181
this . validateDynamicFramework ( libraryPath ) . wait ( ) ;
182
182
var umbrellaHeader = this . getUmbrellaHeaderFromDynamicFramework ( libraryPath ) . wait ( ) ;
183
183
184
- var frameworkName = path . basename ( libraryPath , path . extname ( libraryPath ) ) ;
185
- var targetPath = path . join ( this . $projectData . projectDir , "lib" , this . platformData . normalizedPlatformName , frameworkName ) ;
186
- this . $fs . ensureDirectoryExists ( targetPath ) . wait ( ) ;
187
- shell . cp ( "-R" , libraryPath , targetPath ) ;
184
+ let frameworkName = path . basename ( libraryPath , path . extname ( libraryPath ) ) ;
185
+ let targetPath = path . join ( "lib" , this . platformData . normalizedPlatformName , frameworkName ) ;
186
+ let fullTargetPath = path . join ( this . $projectData . projectDir , targetPath ) ;
187
+ this . $fs . ensureDirectoryExists ( fullTargetPath ) . wait ( ) ;
188
+ shell . cp ( "-R" , libraryPath , fullTargetPath ) ;
188
189
189
190
let project = this . createPbxProj ( ) ;
190
-
191
- project . addFramework ( path . join ( targetPath , frameworkName + ".framework" ) , { customFramework : true , embed : true } ) ;
191
+ let frameworkPath = path . relative ( "platforms/ios" , path . join ( targetPath , frameworkName + ".framework" ) ) ;
192
+ project . addFramework ( frameworkPath , { customFramework : true , embed : true } ) ;
192
193
project . updateBuildProperty ( "IPHONEOS_DEPLOYMENT_TARGET" , "8.0" ) ;
193
194
this . savePbxProj ( project ) . wait ( ) ;
194
195
this . $logger . info ( "The iOS Deployment Target is now 8.0 in order to support Cocoa Touch Frameworks." ) ;
0 commit comments