-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(icon-patcher): also set CFBundleIconName #11
Conversation
Can't really understand why Travis fails:
https://travis-ci.org/richardszalay/fastlane-plugin-act/builds/295187574 Both |
Required by iOS 11. Assuming that CFBundleIconName is the same as the name of the iconset (to avoid exposing an additional required property).
c9eeb1c
to
c70984c
Compare
Thanks for the PR. It looks like it will fail if you patch the same archive twice, since you always call |
Thanks @richardszalay, will look at that. Also, I'm actually not 100% confident that this is a good thing; we've experienced a heap of issues with getting icons to work with Xcode 9 / iOS 11 (app icon not being found). So despite setting the icon name, we're still getting problems with the app not being found (= blank icon in simulator and not possible to upload). Internet is overloaded with similar issues, but none have worked for us. Our set-up is generally:
This has worked great up until now, and we'd really not want to make individual builds per variation. Have you seen this plugin work fine with iOS11 or experienced similar issues? (Sorry for it being a bit out of context) |
FWIW, your setup is the same that I've worked with in the past. I started with the build artefact being an IPA but in order to drop the "legacy" build APIs, I moved to using xcarchive instead. Unfortunately I'm not currently involved with iOS development and don't have access to a Mac so it's difficult for me to look into this further. Based on past experience, it's possible that either the CFBundleIconName actually points into the asset library or the colour profile of the icons isn't supported. I'd recommend testing the following:
|
Ok, this is definitely an "icons in the asset catalog" thing. From the rejection notice that Apple gives:
As for where we should go from here, I have a few possible short term workarounds:
Longer term, I think I'll need to add support for patching asset catalogs as part of act. I've only done very basic research on this in the past and I'm not sure how feasible it will be. If you'd like to assist (in either PR's or just research), it will make it happen faster. |
(2) is actually what we're trying to do (with this PR). We're currently fine with shipping with several asset bundles and vary with the So even with several complete icon assets, the icon cannot be found (not upon upload, and not when building with e.g. Fabric). We're trying to back away entirely from setting the app icon name now and see if that even works, and start over from there. We might want to hold off with more work on this PR until it's verified. |
Seems like removing |
Out of interest, are you patching an IPA or an xcarchive? |
I just noticed a comment from this stackoverflow question:
So it looks like you'll need to set |
Did this PR end up working out? |
Not that I know of. @sommestad ? |
Required by iOS 11. Assuming that CFBundleIconName is the same as the name of the iconset (to avoid exposing an additional required property).