PWABuilder icon indicating copy to clipboard operation
PWABuilder copied to clipboard

[iOS] Error generating ios package

Open FlorianLeMenn opened this issue 3 years ago • 9 comments

I received the following error when generating a package for https://app.flameup.com

Error: Error generating iOS package. Status code: 500 Error: Internal Server Error Details: System.InvalidOperationException: Couldn't find a suitable base image from which to generate all Windows package images. Please ensure your web app manifest has a square PNG image 512x512 or larger. Base image sources: (https://app.flameup.com/build/logo-black-512x512.png, the base image from package options), (, the largest square PNG icon 1024x1024 or larger from web manifest), (https://app.flameup.com/logo-black-512x512.png, the largest square PNG icon 512x512 or larger from web manifest), (https://app.flameup.com/logo-black-512x512.png, the largest square PNG icon 256x256 or larger from web manifest), (https://app.flameup.com/logo-black-512x512.png, the largest square PNG icon 128x128 or larger from web manifest), (https://app.flameup.com/logo-black-512x512.png, the largest square PNG icon from web manifest) at Microsoft.PWABuilder.IOS.Web.Services.ImageGenerator.GetBaseImage(Validated options, WebAppManifestContext webManifest) in d:\dev\pwabuilder-ios\Microsoft.PWABuilder.IOS.Web\Services\ImageGenerator.cs:line 107 at Microsoft.PWABuilder.IOS.Web.Services.ImageGenerator.InvokePwabuilderImageGeneratorService(Validated options, WebAppManifestContext webManifest) in d:\dev\pwabuilder-ios\Microsoft.PWABuilder.IOS.Web\Services\ImageGenerator.cs:line 66 at Microsoft.PWABuilder.IOS.Web.Services.ImageGenerator.Generate(Validated options, WebAppManifestContext manifest, String outputDirectory) in d:\dev\pwabuilder-ios\Microsoft.PWABuilder.IOS.Web\Services\ImageGenerator.cs:line 59 at Microsoft.PWABuilder.IOS.Web.Services.IOSPackageCreator.Create(Validated options) in d:\dev\pwabuilder-ios\Microsoft.PWABuilder.IOS.Web\Services\IOSPackageCreator.cs:line 69 at Microsoft.PWABuilder.IOS.Web.Controllers.PackagesController.Create(IOSAppPackageOptions options) in d:\dev\pwabuilder-ios\Microsoft.PWABuilder.IOS.Web\Controllers\PackagesController.cs:line 45 at lambd

FlorianLeMenn avatar Feb 03 '22 09:02 FlorianLeMenn

Hello FlorianLeMenn, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

ghost avatar Feb 03 '22 09:02 ghost

I believe you are getting this error because you have an icon listed in your manifest that isn't correctly sized. It is actually 1024x1024 but you have it listed as 512x512. { "src": "../apple-logo-black-1024x1024.png", "sizes": "512x512", "type": "image/png" }

Jaylyn-Barbee avatar Feb 03 '22 20:02 Jaylyn-Barbee

I believe you are getting this error because you have an icon listed in your manifest that isn't correctly sized. It is actually 1024x1024 but you have it listed as 512x512. { "src": "../apple-logo-black-1024x1024.png", "sizes": "512x512", "type": "image/png" }

I fix this error, and I try a lot of url to set image URL on iOS app options settings, but always the same error...

https://app.flameup.com/apple-logo-black-1024x1024.png image

Details: System.InvalidOperationException: Couldn't find a suitable base image from which to generate all Windows package images. Please ensure your web app manifest has a square PNG image 512x512 or larger. Base image sources: (https://app.flameup.com/apple-logo-black-1024x1024.png, the base image from package options), (https://app.flameup.com/apple-logo-black-1024x1024.png, the largest square PNG icon 1024x1024 or larger from web manifest), (https://app.flameup.com/apple-logo-black-1024x1024.png, the largest square PNG icon 512x512 or larger from web manifest), (https://app.flameup.com/apple-logo-black-1024x1024.png, the largest square PNG icon 256x256 or larger from web manifest), (https://app.flameup.com/apple-logo-black-1024x1024.png, the largest square PNG icon 128x128 or larger from web manifest), (https://app.flameup.com/apple-logo-black-1024x1024.png, the largest square PNG icon from web manifest)
   

FlorianLeMenn avatar Feb 09 '22 10:02 FlorianLeMenn

Okay, I was able to reproduce this as well. We'll have someone look into this and update you when we get a fix!

Jaylyn-Barbee avatar Feb 09 '22 14:02 Jaylyn-Barbee

Having the same issue, any fix pending?

BlauweHenk avatar Jul 06 '22 11:07 BlauweHenk

Also having the same issue over here, and after trying to generate it again no error nor a download button is shown.

DanielPekel avatar Jul 20 '22 11:07 DanielPekel

@amrutha95 - tagging myself to look into this asap

amrutha95 avatar Jul 21 '22 22:07 amrutha95

Worth noting that the first image doesn't resolve: https://app.flameup.com/build/logo-black-512x512.png

That's a bad path in your manifest.

JudahGabriel avatar Jul 25 '22 20:07 JudahGabriel

@FlorianLeMenn

Looks like your site is blocking our iOS platform from downloading your image. We'll look into it.

In the meantime, here's a workaround: you can use our URL proxy service for your image. When you go to build your package, specify the image URL as:

https://pwabuilder-safe-url.azurewebsites.net/api/getSafeUrl?url=https://app.flameup.com/logo-black-512x512.png

This will let you generate your iOS package successfully.

JudahGabriel avatar Jul 25 '22 20:07 JudahGabriel