为 App Store 分发构建时,捆绑包中的 iPhone 图标文件为空
我已经花了几个小时来思考为什么当我使用我的分发证书以设备为目标构建应用程序时,捆绑包中的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了!这些文件不是空的,它们只是使用一些非标准压缩进行压缩。如果您打开项目属性并搜索“压缩 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.