为 App Store 分发构建时,捆绑包中的 iPhone 图标文件为空

发布于 2024-08-29 08:58:26 字数 924 浏览 3 评论 0原文

我已经花了几个小时来思考为什么当我使用我的分发证书以设备为目标构建应用程序时,捆绑包中的 Icon.png 文件是空的。如果我使用我的开发人员证书或针对模拟器进行构建,则捆绑包中的 Icon.png 与我的项目文件中的 Icon.png 相匹配。我已经验证我的 Icon.png 是 57X57,没有 Alpha 通道,删除了额外的查找器属性。我什至从今天在商店中的第一个应用程序中获取了一个 Icon.png 文件,但它也不起作用。

以下是构建结果的输出:

CopyPNGFile build/Distribution-iphoneos/myApp.app/Icon.png Icon.png cd /Users/wrbarbour/projects/myAppTWO/myApp setenv COPY_COMMAND /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp setenv PATH“/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin” “/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng”-compress“”/Users/wrbarbour/projects/myAppTWO/myApp/Icon。 /Users/wrbarbour/projects/myAppTWO/myApp/build/Distribution-iphoneos/myApp.app/Icon.png

有人能给我指出正确的方向吗?

I have been spinning my wheels for a couple hours on why when I build my app with my distribution cert with the device as the target the Icon.png file in the bundle is empty. If I build with my developer cert or against the simulator the Icon.png in the bundle matches the one in my project file. I have verified my Icon.png is 57X57, has no alpha channel, had extra finder attributes removed. I even took one of the Icon.png files from my first application that is in the store today, and it didn't work either.

Here is the output from the build results:

CopyPNGFile build/Distribution-iphoneos/myApp.app/Icon.png Icon.png
cd /Users/wrbarbour/projects/myAppTWO/myApp
setenv COPY_COMMAND /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
"/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin/Contents/Resources/copypng" -compress "" /Users/wrbarbour/projects/myAppTWO/myApp/Icon.png /Users/wrbarbour/projects/myAppTWO/myApp/build/Distribution-iphoneos/myApp.app/Icon.png

Can someone get me pointed in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷爱 2024-09-05 08:58:26

找到了!这些文件不是空的,它们只是使用一些非标准压缩进行压缩。如果您打开项目属性并搜索“压缩 PNG 文件”,您将看到一个已选中的框。如果您取消选中图像将显示在带有取景器的捆绑包中。无论是否压缩,它们应该可以与 UIKit 正常工作,但如果您的图像确实没有显示在设备上,请取消选中它。如果它们被压缩,它们将在 Finder / Preview 中显示为空白。

Found it! The files are not empty, they are just compressed using some non-standard compression. If you open your project properties and search for 'Compress PNG Files', you will see a box that is checked. If you un-check that the images will show up inside the bundle with finder. They should work fine with UIKit if they are compressed or not but if your images are really not showing up on the device, uncheck it. If they are compressed they will appear blank in Finder / Preview.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文