(iphone)应用程序二进制文件中包含什么,以及如何查看它的大小?
我希望我的应用程序大小低于 20Mb 限制。
旧帖子谈论压缩应用程序并查看文件大小.
但是通过xcode4归档,通过organizer提交并不会显示该文件。
组织者中列出的存档文件是 *.xarchive 格式,(我不确定这是否相当于过去的 zip 文件),我的显示为 45mb。
而且提交档案需要非常长的时间(大约 2 小时)。
我在使用 xcode3 时检查了应用程序大小,大约有 16mb,应该有什么东西搞砸了。
相关问题是:
当我的应用程序的项目目录是 MyAppDirectory,无所不能 包含在该目录下 在二进制文件中或者只是我的东西 添加到 xcode 中的项目?
我将图像/声音文件复制到 使用“复制文件”的资源 “构建阶段”,这是否使 相同的图像/声音文件 包含在二进制文件中两次?(如何做 我检查了吗?)
I'd like my app be under 20Mb limit.
Old posts talk about zipping an app and see the file size.
But archiving through xcode4, and submitting through organizer doesn't show the file.
Archive file listed in organizer is *.xarchive format,(I'm not sure this is equivalent of the zip file in the past) and mine shows 45mb.
And it's taking insanely long to submit the archive(about 2 hours).
I checked the app size when I used xcode3, and it was about 16mb and something should have been messed up.
Related question is:
When my app's project directory is
MyAppDirectory, does everything
under that directory gets included
in the binary or just stuff which I
add to the project in xcode?I copy images/sound files to
Resources using "copy files" in
"Build phases", does that make the
same images/sound files to be
included in the binary twice?(how do
I check?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
存档后,转到管理器并选择共享。然后从那里创建 ipa,ipa 是您将应用程序上传到应用程序商店时的(大约)大小。
否和是,已添加到目标的所有非源文件都将复制到 .app 文件夹中(iOS 应用程序只是文件夹)。所有源代码文件将被编译成二进制文件,该二进制文件也包含在 .app 文件夹中。然后将其压缩并重命名为 .ipa(director 中的 .app 文件夹称为“Payload”)。
不,所有文件都会复制一次到 .app 文件夹,如果复制两次,您将收到警告,但如果您使用文件夹并且相同的文件位于项目中的多个文件夹中,那么它将被复制多次(对于每个文件夹)到 .app
您可以轻松查看项目中是否有文件夹,它们是蓝色文件夹而不是黄色文件夹,它们是组。
After you made archive go to the Organizer and select share. Then create the ipa from there, the ipa is the (about) size of the app when you have uploaded it to the appstore.
No and Yes, all non source files that have been added to the target will be copied into the .app folder (iOS apps are just folders). All the source code files will be compiled into an binary which is also included in the .app folder. Then this gets zipped and then renamed to .ipa (with the .app folder in a director calles 'Payload').
No, all files a copied once to the .app folder, if it get copied twice you will receive a warning, but if you use folders and the same fil is in multiple folders in your project then it will be copied multiple times (for each folder) into the .app
You can easily see if you have folders in your project, they a blue folder instead of Yellow which are groups.