PWABuilder
PWABuilder copied to clipboard
[iOS] Error generating ios package
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
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 🙌
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 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
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)
Okay, I was able to reproduce this as well. We'll have someone look into this and update you when we get a fix!
Having the same issue, any fix pending?
Also having the same issue over here, and after trying to generate it again no error nor a download button is shown.
@amrutha95 - tagging myself to look into this asap
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.
@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.