Skip to content

Commit ae2674d

Browse files
narbshansemannn
andcommitted
fix(ios): ensure default icon is not flattened during maccatalyst builds to void white background (#13890)
Co-authored-by: Hans Knöchel <hansemannn@users.noreply.github.com>
1 parent a75fcc5 commit ae2674d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

iphone/cli/commands/_build.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -5922,7 +5922,11 @@ iOSBuilder.prototype.createAppIconSetAndiTunesArtwork = async function createApp
59225922
missingIcons=missingIcons.concat(awaitthis.processLaunchLogos(launchLogos,resourcesToCopy,defaultIcon,defaultIconChanged));
59235923

59245924
// Do we need to flatten the default icon?
5925-
if(missingIcons.length!==0&&defaultIcon&&defaultIconChanged&&defaultIconHasAlpha){
5925+
letosName=this.xcodeTargetOS;
5926+
if(this.target==='macos'||this.target==='dist-macappstore'){
5927+
osName='maccatalyst';
5928+
}
5929+
if(missingIcons.length!==0&&defaultIcon&&defaultIconChanged&&defaultIconHasAlpha&&osName!=='maccatalyst'){
59265930
this.defaultIcons=[flattenedDefaultIconDest];
59275931
flattenIcons.push({
59285932
name: path.basename(defaultIcon),

0 commit comments

Comments
 (0)
close