Xamarin Forms iOS项目Mac端设置启动图标失效问题求助
Fixing Default Launch Icon Issue in Xamarin Forms iOS (Mac)
I’ve run into this exact problem before—here are some practical steps to troubleshoot and fix it:
1. Double-check your AppIcon asset configuration
- Make sure every required icon slot in
Assets.xcassets > App iconshas the correct size image (e.g., 180x180 for iPhone 6+/7+/8+, 167x167 for iPad Pro). Mismatched sizes will make iOS fall back to the default icon. - Fill all mandatory slots (don’t leave critical sizes empty—even small missing icons can trigger the default icon).
- Confirm the Prerendered option is definitely unchecked (you mentioned this, but it’s worth a quick recheck to be sure).
2. Verify Info.plist is linked to your AppIcon correctly
- Open
Info.plistand confirm the Source dropdown in the App Icons section is set to yourAppIcon-1asset (match the exact name fromAssets.xcassets). - For a deeper check, right-click
Info.plistand selectOpen As -> Source Code. Look for this section and ensure theCFBundleIconNamematches your asset name:<key>CFBundleIcons</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>AppIcon-1</string> </array> <key>CFBundleIconName</key> <string>AppIcon-1</string> </dict> </dict>
3. Clean, rebuild, and clear cache
- In Visual Studio for Mac, go to
Build -> Clean All, then right-click your iOS project and selectClean. - Uninstall the app from your test device/simulator (old cached versions often stick around).
- Rebuild the entire solution with
Build -> Rebuild All, then redeploy the app. - If testing on a simulator, restart it or go to
Device -> Erase All Content and Settingsto clear icon cache.
4. Check icon file properties
- In the Solution Explorer, select each icon file in
Assets.xcassets, right-click and chooseProperties. - Ensure
Build Actionis set toBundleResourceandCopy to Output Directoryis set toDo not copy(assets are packaged automatically—no need to copy them separately).
5. Confirm iOS deployment target compatibility
- Open your iOS project’s properties, go to the
iOS Applicationtab. - Make sure the
Deployment Targetmatches the OS version of your test device/simulator. Some newer icon sizes require specific iOS versions to display correctly.
内容的提问来源于stack exchange,提问作者Sreejith Sree
相关产品推荐
相关产品推荐

