You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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 icons has 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.plist and confirm the Source dropdown in the App Icons section is set to your AppIcon-1 asset (match the exact name from Assets.xcassets).
  • For a deeper check, right-click Info.plist and select Open As -> Source Code. Look for this section and ensure the CFBundleIconName matches 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 select Clean.
  • 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 Settings to clear icon cache.

4. Check icon file properties

  • In the Solution Explorer, select each icon file in Assets.xcassets, right-click and choose Properties.
  • Ensure Build Action is set to BundleResource and Copy to Output Directory is set to Do 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 Application tab.
  • Make sure the Deployment Target matches the OS version of your test device/simulator. Some newer icon sizes require specific iOS versions to display correctly.

内容的提问来源于stack exchange,提问作者Sreejith Sree

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 08:18:03