File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,11 @@ export class IOSEntitlementsService {
56
56
makePatch ( appEntitlementsPath ) ;
57
57
}
58
58
59
- const plistContent = session . build ( ) ;
60
- this . $logger . trace ( "App.entitlements: Write to: " + this . getPlatformsEntitlementsPath ( projectData ) ) ;
61
- this . $fs . writeFile ( this . getPlatformsEntitlementsPath ( projectData ) , plistContent ) ;
62
- return ;
59
+ if ( ( < any > session ) . patches && ( < any > session ) . patches . length > 0 ) {
60
+ const plistContent = session . build ( ) ;
61
+ this . $logger . trace ( "App.entitlements: Write to: " + this . getPlatformsEntitlementsPath ( projectData ) ) ;
62
+ this . $fs . writeFile ( this . getPlatformsEntitlementsPath ( projectData ) , plistContent ) ;
63
+ }
63
64
}
64
65
65
66
private getAllInstalledPlugins ( projectData : IProjectData ) : Promise < IPluginData [ ] > {
Original file line number Diff line number Diff line change @@ -1241,7 +1241,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1241
1241
1242
1242
// Set Entitlements Property to point to default file if not set explicitly by the user.
1243
1243
const entitlementsPropertyValue = this . $xCConfigService . readPropertyValue ( pluginsXcconfigFilePath , constants . CODE_SIGN_ENTITLEMENTS ) ;
1244
- if ( entitlementsPropertyValue === null ) {
1244
+ if ( entitlementsPropertyValue === null && this . $fs . exists ( this . $iOSEntitlementsService . getPlatformsEntitlementsPath ( projectData ) ) ) {
1245
1245
temp . track ( ) ;
1246
1246
const tempEntitlementsDir = temp . mkdirSync ( "entitlements" ) ;
1247
1247
const tempEntitlementsFilePath = path . join ( tempEntitlementsDir , "set-entitlements.xcconfig" ) ;
You can’t perform that action at this time.
0 commit comments