通用二进制文件是否包含iPhone上App Bundle中所有重ipad图形?该怎么办? [英] Do universal binaries contain all the heavy ipad graphics in the App Bundle on the iPhone? What to do about it?

查看:152
本文介绍了通用二进制文件是否包含iPhone上App Bundle中所有重ipad图形?该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于iPad 3有视网膜显示器,我开始担心iPhone和iPod touch设备上通用二进​​制文件中的图像垃圾邮件数量。显然他们不需要那些资源。

Since the iPad 3 has a retina display, I start to worry about the amount of "image spam" in universal binaries on iPhone and iPod touch devices. Obviously they don't need those resources.

我从来没有真正检查过,但也许某人知道这个:当iPhone下载通用二进制文件时, App Store是否会自动发布一个版本,其中所有重型iPad图形都被剥离了?或iPhone或iPod touch充斥着iPad上只需要的内容?

I never really checked, but maybe someone knows this: When an iPhone downloads a universal binary, does the App Store automatically ship a version where all the heavy iPad graphics have been stripped out? Or is the iPhone or iPod touch flooded with content that's only needed on the iPad?

有没有办法让通用二进制智能化使iPad只接收iPad iPhone只能接收iPhone资源吗?

Are there any ways to make a universal binary "intelligent" such that iPads only receive iPad resources while iPhones only receive iPhone resources?

在我的情况下,我有一个10 MB的通用应用程序。升级到视网膜iPad将意味着iPod touch用户将遭受双倍文件大小。

In my case I have a 10 MB universal app. Upgrading this to retina iPad would mean iPod touch users will suffer from doubled file size.

推荐答案

不,没有从应用程序中删除任何内容在不同设备上安装时捆绑。请记住,整个事情都是编码签名的,因此可以无法删除或签名无效。这里的标准建议是,您的客户实际上只会使用应用程序包中的一半资源(如果您不在iphone和ipad之间共享资源,则需要四分之一)。如果这对您来说是一个破坏者,您可以考虑在首次启动时从您控制的服务器下载必要的资源,但请记住,这会让您感觉非常复杂,实际上是一个非常糟糕的用户体验。你几乎肯定希望只是增加尺寸。

No, nothing is stripped from the app bundle when you install on different devices. Remember, the whole thing is codesigned, so nothing can be stripped or the signature would be invalid. The standard advice here is to just live with the fact that your customer is only going to actually be using half of the resources in your app bundle (or a quarter if you don't share resources between iphone and ipad). If this is a dealbreaker for you, you could consider downloading the necessary resources from a server under your control on first launch, but remember that this makes things very complicated for you, and is actually a pretty poor user experience. You almost certainly want to just live with the increased size.

这篇关于通用二进制文件是否包含iPhone上App Bundle中所有重ipad图形?该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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