应用程序未在我的设备上构建

发布于 2024-12-13 05:57:04 字数 446 浏览 1 评论 0原文

我正在开发的应用程序可以在模拟器、iPad 和 iPhone 上完美运行。当我尝试在 iPod Touch 上运行它时,什么也没有发生...

Xcode 说“正在构建...” 然后它显示“已完成运行”

没有任何内容写入控制台,并且应用程序图标未安装在 iPod Touch 上,并且该应用程序甚至从未尝试运行。

任何可能出错的想法将不胜感激。如果出现一些错误,至少会有所帮助,但无论如何都不会发生。

非常感谢!

编辑:我回去打开了一些之前完成的应用程序,当我尝试在 iPod Touch 上运行它们时,它们都做了同样的事情...

这有什么关系吗?与我升级到 XCode 4.2 而 iPod Touch 仍运行 OS 3.1.3 有关吗?构建设置中的部署目标仍然是 3.1.3 及更高版本,所以我认为这不应该是一个问题...

The app I am working on runs perfectly in the simulator, on an iPad, and on an iPhone. When I try to run it on my iPod Touch, NOTHING HAPPENS...

Xcode says "Building..."
and then it says "Finished running"

Nothing is written to the console and the app icon isn't installed on the iPod Touch and the app never even attempts to run.

Any ideas what could possibly be going wrong would be greatly appreciated. If there was some error that came up that would at least be helpful, but nothing happens whatsoever.

Thanks so much!

EDIT: I've gone back and opened some of my previously finished apps and all of them do this same thing when I try to run them on the iPod Touch...

Could this have anything to do with my having upgraded to XCode 4.2 and the iPod Touch still running OS 3.1.3? The deployment target in Build Settings is still 3.1.3 and up, so I don't think it should be an issue...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

苦行僧 2024-12-20 05:57:04

您的方案目标下拉列表是否显示“iOS 设备”,或者是否显示 iPod Touch 的“名称”(例如“jons ipod touch”):

Scheme Target

如果显示“iOS 设备”,则意味着 xcode 无法识别您的 iPod,您可能需要通过单击“用于开发”来启用设备进行开发,例如所以:

启用开发

Does your scheme target dropdown list show "iOS Device" or does it show the "name" of your iPod Touch (something like "jons ipod touch"):

Scheme Target

If it shows "iOS Device", that means your iPod isnt recognized by xcode and you may need to enable the device for developing by clicking "Use For Development" like so:

Enable For Development

み格子的夏天 2024-12-20 05:57:04

需要将 armv6 架构添加到构建设置中,以便我构建 iPod Touch(操作系统 3.1.3)。

在 Xcode 4.2 中,在“构建设置”中的“架构”下,下拉菜单中没有 armv6 选项。我必须选择“其他...”,然后使用+号手动输入“armv6”,而不是代替已经输入的内容,即“$(ARCHS_STANDARD_32_BIT)”,然后我就能够了在 iPod Touch 上构建我的应用程序。

最后一点 - 虽然我让该应用程序在我的 iPod Touch OS 3.1.3 上运行,但它的运行效果并不像我想要的那样(以及它在 iPad OS 5 和 iPhone OS 4.2 上运行的情况),所以虽然我以前一直在我的应用程序中支持 OS 3.1,遗憾的是我最终不支持该应用程序的 armv6 并将我的应用程序的 iOS 部署目标设置为 iOS 3.2

The armv6 architecture needed to be added to the build settings in order for me to build to the iPod Touch (OS 3.1.3).

In Xcode 4.2, in the Build Settings, under Architectures, armv6 wasn't an option for me in the dropdown menu. I had to select "Other...", then use the + sign to manually type in "armv6" NOT IN PLACE OF but IN ADDITION TO what was already entered there, which was "$(ARCHS_STANDARD_32_BIT)" and then I was able to build my app to the iPod Touch.

As a final note - while I got the app to run on my iPod Touch OS 3.1.3, it did not run as well as I wanted it to (as well as it runs on the iPad OS 5 and iPhone OS 4.2) so while I've previously always supported OS 3.1 in my apps, I sadly ended up NOT supporting armv6 for this one and setting the iOS Deployment Target for my app to iOS 3.2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文