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

查看:23
本文介绍了缺少营销图标 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 中选择图标资产时 - 奇怪的是,它只给了我选择使用空且不存在的库中的 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

2.macOS Sierra/macOS High Sierra

2.macOS Sierra/macOS High Sierra

3.Xcode 9

首先确定你已经设置了包含appicon的assets,并且确定你已经为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的bug.打开项目目录,打开路径为[PROJECT_NAME]/Pods/Target Support Files/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}"菲

<代码>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"菲

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

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"
DTXcodeBuild - 8E3004b"
DTP 平台版本 - 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 下载 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天全站免登陆