缺少营销图标Xcode错误? [英] Missing Marketing Icon Xcode bug?

查看:132
本文介绍了缺少营销图标Xcode错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已根据需要在应用中添加了1024 pt图标。在这里,它是截图:

但是当我尝试将其上传到AppStore时 - 它说我没有它。

I've added a 1024 pt icon to the app as necessary. Here, it is on a screenshot: But when I try to upload it to the AppStore - it says I don't have it.

这时当我尝试在Xcode中选择Icon资产时 - 奇怪的是,我只选择使用来自库的AppIcon文件,这些文件是空的且不存在,而不是给我一个选项使用项目中我的资产文件中的资产

在图片中,所有这些选项都来自库并且空白

Here when I try to choose Icon assets in Xcode - it strangely give me options only to use AppIcon file from the libraries which are empty and nonexistent, not giving me an option to use Assets from my Assets file in project Here on a picture all these options are from the library and empty

因此,我无法使用我的真实图标并收到此警告:

So, as a result I can't use my real icons and get this warning :

有谁知道如何解决这个问题??

Anybody know how to solve this issue??

推荐答案

昨天我也遇到了这个问题,我花了一整天时间终于解决了这个问题。

I also faced this problem yesterday,i spent a whole day and finally i solved this problem.

这是我的环境

1.cocoapod

1.cocoapod

2.macOS Sierra / macOS High Sierra

2.macOS Sierra/macOS High Sierra

3.Xcode 9

3.Xcode 9

首先,请确保您已经设置了cantains的资产appicon,并确保为App Store设置了1024 * 1024图标。
如果是这样,你在将二进制文件上传到App Store时仍然会遇到问题。然后有两种情况。

First of all,make sure you have already set the assets which cantains appicon,and make sure you have set the 1024*1024 icon for App Store. If so,you still get the problem while uploading the binary to App Store.Then there are two situations.


**此外,在您运行应用程序后,您无法正常看到应用程序图标设备。**这是因为 cocoapod的错误。打开项目目录,打开其文件,路径是[PROJECT_NAME] / Pods / Target支持文件/ Pods- [PROJECT_NAME] / Pods- [PROJECT_NAME] -resources.sh,拉到最后,替换代码

**Also,you can not see the app icon properly after you run you app on you device.**It's because cocoapod's bug.Open the project directory,open the file whose path is [PROJECT_NAME]/Pods/Target Support Files/Pods-[PROJECT_NAME]/Pods-[PROJECT_NAME]-resources.sh,pull to the end,replace the code


printf%s \ 0$ {XCASSET_FILES [@]}| xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform$ {PLATFORM_NAME} - minimum-deployment-target$ {!DEPLOYMENT_TARGET_SETTING_NAME}$ {TARGET_DEVICE_ARGS} - compress-pngs --compile$ {BUILT_PRODUCTS_DIR} / $ {UNLOCALIZED_RESOURCES_FOLDER_PATH}
fi

to


printf%s \ 0$ {XCASSET_FILES [@]}| xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform$ {PLATFORM_NAME} - minimum-deployment-target$ {!DEPLOYMENT_TARGET_SETTING_NAME}$ {TARGET_DEVICE_ARGS} - compress-pngs --compile$ {BUILT_PRODUCTS_DIR} / $ {UNLOCALIZED_RESOURCES_FOLDER_PATH} - app-icon$ {ASSETCATALOG_COMPILER_APPICON_NAME} - output-partial-info-plist$ {BUILD_DIR} /assetcatalog_generated_info.plist
fi

然后运行你的应用程序,你现在可以看到正确的应用程序图标,你也可以正确上传二进制文件。如果它仍然无效,请使用以下方法。

then run your app,you can see the right app icon now and you can also upload binary properly.If it still does not work, use the following method.

它是 APFS 的错误。

将您的应用存档后,右键单击它并在Finder中选择显示。打开包内容并在其中打开此文件:/Products/Application/yourApp.app/info.plist

Once your app was archived right click it and choose show in Finder. Open the package contents and open this file inside of it: /Products/Application/yourApp.app/info.plist

在那里你必须将所有DTXXX值更改为与最新版本的Xcode 8相同。

In there you have to change all the DTXXX Values to be the same as in the latest version of Xcode 8.


DTXcode - 0833

DTSDKName - iphoneos10 .3

DTSDKBuild - 14E8301

DTPlatformName - iphoneos

DTCompiler - com.apple.compilers.llvm.clang.1_0< br>
DTXcodeBuild - 8E3004b

DTPlatformVersion - 10.3

DTPlatformBuild - 14E8301

DTXcode - "0833"
DTSDKName - "iphoneos10.3"
DTSDKBuild - "14E8301"
DTPlatformName - "iphoneos"
DTCompiler - "com.apple.compilers.llvm.clang.1_0"
DTXcodeBuild - "8E3004b"
DTPlatformVersion - "10.3"
DTPlatformBuild - "14E8301"

保存plist文件并返回xcode,您需要导出App Store的存档。

Save the plist file and go back to xcode where you need to export the archive for the App Store.

最后但并非最不重要的下载<来自Apple的href =https://itunesconnect.apple.com/apploader/ApplicationLoader_3.0.dmg =nofollow noreferrer> Application Loader 3.0 并上传刚刚生成的IPA文件。

Last but not least download Application Loader 3.0 from Apple and upload the just generated IPA file.

这篇关于缺少营销图标Xcode错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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