xcode 通过应用程序加载器部署到应用商店时,图像路径 ios7 图标无效

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19341620/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:05:27  来源:igfitidea点击:

Invalid image path ios7 icons when Deploying to appstore via Application Loader

iosxcodeapplication-loader

提问by charles.schlue

I'm receiving an error whenever I attempt to send my application in for review, it appears to be stating the ios7 icons for my app have invalid paths but the icons work in the simulator and on a dev device. It's also stating that it's unable to authenticate the package.

每当我尝试将我的应用程序发送以供审核时,我都会收到一个错误,它似乎表明我的应用程序的 ios7 图标具有无效路径,但这些图标可以在模拟器和开发设备上运行。它还说明它无法对包裹进行身份验证。

I've attempted to update the paths in the info.plist file but the issue persists.

我试图更新 info.plist 文件中的路径,但问题仍然存在。

Package Summary:

1 package(s) were not uploaded because they had problems:
    /var/folders/x3/4cy637515hs8ct3096ssqg_r0000gn/T/725271208.itmsp - Error Messages:
        Apple's web service operation was not successful
        Unable to authenticate the package: 725271208.itmsp
        ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'Icon@152'" at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
        ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'Icon@76'" at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
        ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'Icon@120'" at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)

回答by ProfX

Select Use Asset Catalog (I opted for just doing it for the App Icons and not the Launch Images because my No image found errors were all related to App Icons, as yours seem to be), then drag and drop the appropriate icons into their correct spots.

选择使用资产目录(我选择只为应用程序图标而不是启动图像执行此操作,因为我的“未找到图像”错误都与应用程序图标有关,就像您的那样),然后将适当的图标拖放到正确的位置斑点。

The first time I did this it was a bit messed up, I believe because I had set the resources, so I ended up selecting "Don't use asset catalogs" which reset the resources to be blank, deleted the asset catalog, and then selected Use Asset Catalog again.

第一次这样做有点乱,我相信是因为我设置了资源,所以我最终选择了“不要使用资产目录”,将资源重置为空白,删除资产目录,然后再次选择使用资产目录。

At this point all the spots were blank and I was able to drag and drop the correct assets to the correct places. Note that there is no 1x 60pt iOS 7 icon slot.

此时所有的点都是空白的,我能够将正确的资产拖放到正确的位置。请注意,没有 1x 60pt iOS 7 图标插槽。

I found this other related thread which had the answer: How do you update the app icons and launch images to support IOS 6 and 7 simultaneously?

我找到了另一个相关线程,其中有答案: 如何更新应用程序图标和启动图像以同时支持 IOS 6 和 7?

回答by inorganik

One possible solution to this problem is to delete references to image assets in your plist if you are using the asset catalog, or fix the paths if you're not.

此问题的一种可能解决方案是,如果您正在使用资产目录,则删除对 plist 中图像资产的引用,如果不使用,则修复路径。

回答by nivritgupta

I have Solved this Issue , Just Remove references to all the icons , and open the PLIST and also Delete the icons from there , add the icons again in your Project , to fix these problem

我已经解决了这个问题,只需删除对所有图标的引用,然后打开 PLIST 并从那里删除图标,在您的项目中再次添加图标,以解决这些问题