通过itunes加载iphone中的资源项
我有一个应用程序,主包中有大约 60 个 png 文件和几个 cfg 文件。 在模拟器中运行良好,当我从 Xcode 下载到 iTouch 时也运行良好。 但我很难分发给我的测试人员。 我有他们的配置文件等。但是当我创建应用程序并将其发送给他们时,它显示为一个文件夹(NR1.APP),其下包含所有单独的资源文件。
- 他们会将整个文件夹拖到 iTunes/应用程序中吗? 或者 xcode 中有什么东西可以创建一个包含所有资源的二进制应用程序?
I have an app that has about 60 png files and a couple of cfg files in the main bundle. Runs great in the simulator, and when I download from Xcode to iTouch. But I'm stumped on distributing to my testers. I have their provisioning profiles, etc. But when I created the app and sent it to them, it showed up as a folder (NR1.APP) with all the individual resource files under it.
- Do they drag this entire folder into iTunes/applications? Or is there something in xcode that creates a single binary app with all resources in it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜你的测试人员使用的是 Windows? 简而言之,iPhone 应用程序实际上是具有特定文件布局的文件夹(称为捆绑包)。 在 Mac OS 上,您不会注意到,因为 finder 为您隐藏了它,尽管您可以通过从 finder 的上下文菜单中选择“显示包内容”来查看内部。
不管怎样,是的,假设一切都正确解压,他们只需拖动应用程序即可安装它。 问题在于,大多数 Windows 解压缩工具都会破坏捆绑包的存档(至少就 iTunes 的预期而言)。 您可以在 这篇博文。
I presume your testers are on Windows? The short answer is that iPhone apps are in fact folders (called bundles) with a specific file layout. On Mac OS you don't notice because finder hides it for you, though you can look inside by selected "Show Package Contents" from the contextual menu in finder.
Anyway, yes, they can install it by just dragging the app, assuming everything was decompressed correctly. THe problem is that the most Windows decompression tools mangle archives of bundles (at least with respect to how iTunes expects them). You can read all the gory details on what you can and can't do in this blog post.
应用程序包只是文件夹。 导航到查找器中的一个,然后右键单击 -> “显示包装内容”。 一个激动人心的世界正在等待着您。
将应用程序包拖到 iTunes 中的库中应该可以处理它,但是您也可以分发
.ipa
文件,该文件只是重命名的.zip
,目录名为其中有Payload
,其中包含应用程序包。Application bundles are just folders. Navigate to one in finder, and right-click -> 'Show Package Contents'. An exciting world awaits.
Dragging the application bundle into the library in iTunes should take care of it, however you can also distribute an
.ipa
file, which is just a renamed.zip
with a directory calledPayload
in it, with the application bundle inside.