【问题标题】:Xamarin forms AppIcon.xcassets causing error on upload.Xamarin 形成 AppIcon.xcassets 导致上传错误。
【发布时间】:2018-10-29 04:20:56
【问题描述】:

将我的应用上传到 TestFlight 时出现以下错误。

但是,我在 Xamarin 资产菜单中看不到任何位置的 missing 图标。 (76x76、167x167 和 152x152)

我想我可以通过在 Sublime 中编辑 Contents.json 文件来解决这个问题,但似乎文件中包含了 76x76 图标...所以我不认为它会工作。我拥有最新的一切(Visual Studio、Xcode 等)。

{
  "images": [
{
  "size": "20x20",
  "scale": "2x",
  "idiom": "iphone"
},
{
  "filename": "apple-touch-icon-60x60.png",
  "size": "20x20",
  "scale": "3x",
  "idiom": "iphone"
},
{
  "size": "29x29",
  "scale": "2x",
  "idiom": "iphone"
},
{
  "size": "29x29",
  "scale": "3x",
  "idiom": "iphone"
},
{
  "size": "40x40",
  "scale": "2x",
  "idiom": "iphone"
},
{
  "filename": "apple-touch-icon-120x120.png",
  "size": "40x40",
  "scale": "3x",
  "idiom": "iphone"
},
{
  "filename": "Divco120.png",
  "size": "60x60",
  "scale": "2x",
  "idiom": "iphone"
},
{
  "filename": "apple-touch-icon-180x180.png",
  "size": "60x60",
  "scale": "3x",
  "idiom": "iphone"
},
{
  "filename": "Divco20.png",
  "size": "20x20",
  "scale": "1x",
  "idiom": "ipad"
},
{
  "filename": "Divco40.png",
  "size": "20x20",
  "scale": "2x",
  "idiom": "ipad"
},
{
  "size": "29x29",
  "scale": "1x",
  "idiom": "ipad"
},
{
  "size": "29x29",
  "scale": "2x",
  "idiom": "ipad"
},
{
  "filename": "Divco40.png",
  "size": "40x40",
  "scale": "1x",
  "idiom": "ipad"
},
{
  "size": "40x40",
  "scale": "2x",
  "idiom": "ipad"
},
{
  "filename": "Divco167.png",
  "size": "83.5x83.5",
  "scale": "2x",
  "idiom": "ipad"
},
{
  "filename": "apple-touch-icon-76x76.png",
  "size": "76x76",
  "scale": "1x",
  "idiom": "ipad"
},
{
  "filename": "apple-touch-icon-152x152.png",
  "size": "76x76",
  "scale": "2x",
  "idiom": "ipad"
},
{
  "filename": "Divco1024.png",
  "size": "1024x1024",
  "scale": "1x",
  "idiom": "ios-marketing"
},
{
  "size": "60x60",
  "scale": "2x",
  "idiom": "car"
},
{
  "size": "60x60",
  "scale": "3x",
  "idiom": "car"
},
{
  "role": "notificationCenter",
  "size": "24x24",
  "subtype": "38mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "notificationCenter",
  "size": "27.5x27.5",
  "subtype": "42mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "companionSettings",
  "size": "29x29",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "companionSettings",
  "size": "29x29",
  "scale": "3x",
  "idiom": "watch"
},
{
  "role": "appLauncher",
  "size": "40x40",
  "subtype": "38mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "appLauncher",
  "size": "44x44",
  "subtype": "40mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "appLauncher",
  "size": "50x50",
  "subtype": "44mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "quickLook",
  "size": "86x86",
  "subtype": "38mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "quickLook",
  "size": "98x98",
  "subtype": "42mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "role": "quickLook",
  "size": "108x108",
  "subtype": "44mm",
  "scale": "2x",
  "idiom": "watch"
},
{
  "size": "1024x1024",
  "scale": "1x",
  "idiom": "watch-marketing"
},
{
  "size": "16x16",
  "scale": "1x",
  "idiom": "mac"
},
{
  "size": "16x16",
  "scale": "2x",
  "idiom": "mac"
},
{
  "size": "32x32",
  "scale": "1x",
  "idiom": "mac"
},
{
  "size": "32x32",
  "scale": "2x",
  "idiom": "mac"
},
{
  "size": "128x128",
  "scale": "1x",
  "idiom": "mac"
},
{
  "size": "128x128",
  "scale": "2x",
  "idiom": "mac"
},
{
  "size": "256x256",
  "scale": "1x",
  "idiom": "mac"
},
{
  "size": "256x256",
  "scale": "2x",
  "idiom": "mac"
},
{
  "size": "512x512",
  "scale": "1x",
  "idiom": "mac"
},
{
  "size": "512x512",
  "scale": "2x",
  "idiom": "mac"
}
],
"info": {
   "version": 1,
   "author": "xcode"
}
}

【问题讨论】:

  • 有同样的问题。真的很郁闷..
  • 设置Info.plist->设备为iPhone/iPod。

标签: xamarin xamarin.forms xamarin.ios visual-studio-mac


【解决方案1】:

我遇到了类似的错误。图标在那里,info.plist 或 .csproj 文件中没有错误。 Visual Studio 和 XCode 是完全最新的。我通过构建和运行 iPad 部署目标来修复它。 iPad模拟器没问题。在此之后,我制作了另一个存档,使用 Application Loader 提交它,一切都很好。

【讨论】:

  • 此问题表明您可能在项目选项/iOS 构建选项中启用了“特定于设备的构建”。禁用它,它也应该可以解决您的问题。
  • jstedfast 的评论实际上解决了我的问题,即通过不特定于设备的构建解决了我丢失图标文件的问题 - 谢谢
猜你喜欢
  • 1970-01-01
  • 2016-06-20
  • 1970-01-01
  • 1970-01-01
  • 2013-12-27
  • 1970-01-01
  • 1970-01-01
  • 2017-08-28
  • 1970-01-01
相关资源
最近更新 更多