通过部署 Xamarin.iOS-App 丢失资产目录 [英] Missing Asset Catalog by deploying Xamarin.iOS-App

查看:21
本文介绍了通过部署 Xamarin.iOS-App 丢失资产目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 VS 中为连接到 MacinCloud 的 Windows 开发适用于 iOS 的 Xamarin-App.当我在 MacinCloud 的 Application Loader 中将我的应用程序部署为 ipa 文件时,没有任何错误.但是每次我收到来自苹果的电子邮件时都会出现以下错误:

缺少资产目录 - 您的应用在MyProject.iOS.app"中缺少资产目录文件.有关更多信息,请参阅

你看,我有所有必要的图标!否则应用程序加载器会导致错误..

也在 Info.plist 中我有:

XSAppIconAssets<string>Resources/Media.xcassets/AppIcons.appiconset</string><key>XSLaunchImageAssets</key><string>Resources/Media.xcassets/LaunchImages.launchimage</string><key>CFBundleIcons</key><字典><key>CFBundlePrimaryIcon</key><字典><key>CFBundleIconName</key><string>图标</string><key>CFBundleIconFiles</key><阵列><string>AppStore.png</string><string>Icon-83.5@2x.png</string><string>Icon-60@2x.png</string><string>Icon-60@3x.png</string><string>Icon-76.png</string><string>Icon-76@2x.png</string><string>Icon-Small.png</string><string>Icon-Small@2x.png</string><string>Icon-Small@3x.png</string><string>Icon-Small-20.png</string><string>Icon-Small-20@2x.png</string><string>Icon-Small-20@3x.png</string><string>Icon-Small-40.png</string><string>Icon-Small-40@2x.png</string><string>Icon-Small-40@3x.png</string></阵列></dict></dict>

我正在使用以下版本:

  • VS 15.7.4 和 Xamarin.iOS 11.12.0.4
  • 带有 VS for Mac 7.5.3 的 MacinCloud,带有 Xamarin.iOS 11.12.0.4 和 Xcode 9.4.1

解决方案

我找到了原因:路径 Resources/Media.xcassets/AppIcons.appiconset 不存在.它是 Media.xcassets/AppIcons.appiconset.我不知道为什么 Visual Studio 添加了这个..

I'm developing an Xamarin-App for iOS within VS for windows connected to MacinCloud. When I deploy my App as ipa-file within the Application Loader in MacinCloud, there aren't any errors. But then everytime I get an email from apple with following error:

Missing Asset Catalog - Your app is missing the asset catalog file in 'MyProject.iOS.app'. For more information see http://help.apple.com/xcode/mac/current/#/dev10510b1f7.

Here (https://answers.unrealengine.com/questions/719222/how-to-deal-with-missing-asset-catalog-response-fr.html) I found out, that the file Assets.car is missing in my ipa-file. How can it be produced?

My project structure:

You see, I have all the necessary icons in it! Otherwise the application loader lead to errrors..

Also in Info.plist I have:

<key>XSAppIconAssets</key>
<string>Resources/Media.xcassets/AppIcons.appiconset</string>
<key>XSLaunchImageAssets</key>
<string>Resources/Media.xcassets/LaunchImages.launchimage</string>
<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconName</key>
        <string>Icon</string>
        <key>CFBundleIconFiles</key>
        <array>
            <string>AppStore.png</string>
            <string>Icon-83.5@2x.png</string>
            <string>Icon-60@2x.png</string>
            <string>Icon-60@3x.png</string>
            <string>Icon-76.png</string>
            <string>Icon-76@2x.png</string>
            <string>Icon-Small.png</string>
            <string>Icon-Small@2x.png</string>
            <string>Icon-Small@3x.png</string>
            <string>Icon-Small-20.png</string>
            <string>Icon-Small-20@2x.png</string>
            <string>Icon-Small-20@3x.png</string>
            <string>Icon-Small-40.png</string>
            <string>Icon-Small-40@2x.png</string>
            <string>Icon-Small-40@3x.png</string>
        </array>
    </dict>
</dict>

I'm using following versions:

  • VS 15.7.4 with Xamarin.iOS 11.12.0.4
  • MacinCloud with VS for Mac 7.5.3 with Xamarin.iOS 11.12.0.4 and Xcode 9.4.1

解决方案

I found the reason: The path Resources/Media.xcassets/AppIcons.appiconset doesn't exist. It's Media.xcassets/AppIcons.appiconset. I don't know why Visual Studio added this..

这篇关于通过部署 Xamarin.iOS-App 丢失资产目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆