phonegap / build

This is the public repository for PhoneGap Build source and bug tracking
92 stars 33 forks source link

PGB iOS Build fail when trying to use default icon. #633

Open donrowlett opened 6 years ago

donrowlett commented 6 years ago

Yes, I posted about this in the PBG Forum, October 11, 2017.

I do a lot of quick-and-dirty 'proof-of-concept' apps, and PG Build is pretty useful for that.

I interpret the PGB documentation to state that I can put a single in config.xml, and that icon will magically become the default icon for screen sizes on all platforms.

Cool, I should be able do that and not waste a bunch of time managing all the various size and resolution icons for iOS and Android in my throw-away apps.

However, leaving iOS specific icon lines out of config.xml causes a build failure, with the following cryptic message in the build log:

` ARCHIVE FAILED

The following build commands failed:

CompileAssetCatalog /Users/phonegap/Library/Developer/Xcode/DerivedData/MyAshland- 
ejdxxfrvryptyrbyikbrbxzyfwo 
y/Build/Intermediates/ArchiveIntermediates/MyAshland/InstallationBuildProductsLocation/App 
lications/MyAshland.app MyAshland/Images.xcassets

(1 failure)

Error code 65 for command: xcodebuild with args: - 
xcconfig,/private/tmp/gimlet/2725748/project/cordova/build-release.xcconfig,-workspace,MyAshland.xcworkspace,-scheme,MyAshland,-configuration,Release,-destination,generic/platfor m=iOS,-archivePath,MyAshland.xcarchive,archive,CONFIGURATION_BUILD_DIR=/private/tmp/gimlet /2725748/project/build/device,SHARED_PRECOMPS_DIR=/private/tmp/gimlet/2725748/project/buil d/sharedpch

`

When I put the platform-specific icon code into config.xml, then the build is successful:

`

... all the other sizes ... ` When I delete or comment out those 'icon' lines within , BOOM, build fail. No problem on Android, just iOS. So... we either have a bug in the build process, or the documentation is wrong. (I could also be an idiot and may have misinterpreted the docs or did something else that is causing this.) Anyway, to reproduce, try removing all but the one default icon config and see if you can get default icons to work for iOS. The following config.xml fails PG Build, but when I un-comment the icon lines it works fine. ` Waypoints Waypoint tracker Don Rowlett - Project A Need your location to display maps `
andersborgabiro commented 6 years ago

You could automate creating all. Easily done with http://pgicons.abiro.com/

There's also a config.xml sample.

I always have all icon and splash screen settings in config.xml for both iOS and Android.

donrowlett commented 6 years ago

Yes, I can and I did.

It still takes time that I would not have to spend if the default icon worked as advertised.

On Mon, Jun 4, 2018 at 10:58 AM, Anders Borg notifications@github.com wrote:

You could automate creating all. Easily done with http://pgicons.abiro.com/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phonegap/build/issues/633#issuecomment-394443895, or mute the thread https://github.com/notifications/unsubscribe-auth/AQsY_xKcAw7mrN2TS1KGk0R8tkAqOCEkks5t5XVHgaJpZM4UZgMI .

--

Don Rowlett, Project A 5350 Highway 66, Ashland OR 97520 541-488-1702 (w) 541-531-9090 (m) All text and attachments Copyright 2017, Project A

goya commented 6 years ago

yeah default icon is from a galaxy far away and a long time ago.

iOS especially is extremely picky in regards to icons and as you found out will error code 65 on bad icons.