简体   繁体   English

发布到iTunes的iOS存档与项目不同

[英]iOS Archive released to iTunes does not work the same as the project

I have an issue that has me completely perplexed. 我有一个让我完全困惑的问题。 I built a simple openGL game in iOS ( 4.2.1 xCode ) and tested it on my device and all was fine. 我在iOS(4.2.1 xCode)中构建了一个简单的openGL游戏,并在我的设备上对其进行了测试,一切都很好。

I then archived it and submitted it to Apple. 然后,我将其存档并提交给Apple。 They approved and released it. 他们批准并发布了它。

When I download it ( onto the same device ) or anyone else does ( onto variety of the latest devices ) much of the game play is missing. 当我将其下载(在同一设备上)或其他任何人(在最新的设备上)下载时,很多游戏都丢失了。 Its as if the archive did not capture all the settings from the project. 好像存档没有捕获项目中的所有设置。

I can only conclude that at the archive stage something happened to the build. 我只能得出结论,在存档阶段,构建发生了一些事情。

Does anyone know how i can test run the actual archive on my device ( without submitting it ) so that I can get to the bottom of what is different ? 有谁知道我可以在我的设备上测试运行实际存档的方式(无需提交),以便深入了解不同之处?

Thank you very much anyone who reads this. 非常感谢阅读本文的任何人。

In my experience, when this kind of thing happens it's because something that was included in early dev builds is no longer there, but is still in the binary on the device. 以我的经验,发生这种情况是因为早期开发版本中不再包含的内容,而是仍存在于设备的二进制文件中。 (Dev builds are incremental, so some files deleted from or changed in a project can sometimes persist.) You could try the following: (Dev构建是增量构建,因此有时从项目中删除或更改的某些文件可能会保留。)您可以尝试以下操作:

  1. Delete the app from your device 从您的设备中删除该应用
  2. Delete the derived data folder in the organizer 删除管理器中的派生数据文件夹
  3. Clean all build targets 清理所有构建目标

This may reveal the problem. 这可能会揭示问题。 It's hard to say without more info about what "much of the gameplay is missing" means. 如果没有更多有关“缺少许多游戏玩法”的信息,很难说。

When you are about to release a game to appstore, you'd better make a distribution AD-HOC build and give the ipa to some friends of yours. 当您要向Appstore发行游戏时,最好进行AD-HOC发行发行,并将ipa赠送给您的一些朋友。 Of course, don't forget to mark their devices when making distribution ad-hoc profile. 当然,制作分发临时配置文件时不要忘记标记其设备。 So once you have this .ipa, delete your development build from device and install .ipa via itunes. 因此,一旦有了此.ipa,请从设备中删除您的开发版本,然后通过iTunes安装.ipa。 Then you'll see it the way as it is downloaded for the appstore. 然后,您将看到它为appstore下载的方式。 Furthermore, you say that some scenes/resources are missing: this could be for the reason that when you added the resources/files to your projects you did't enable "copy files to project directory" and "add to target" so the build was incomplete. 此外,您说缺少某些场景/资源:这可能是由于当您将资源/文件添加到项目中时,没有启用“将文件复制到项目目录”和“添加到目标”的原因,因此构建不完整。 OKay, once you assured your ad-hoc ipa is working fine, make the same distribution profile, but only for apptore. 好的,一旦确定您的临时ipa可以正常工作,请进行相同的分发配置文件,但仅适用于apptore。 Build the app and submit to appstore! 生成应用程序并提交给appstore! Hopefully this will help, bye! 希望这会有所帮助,再见!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM