Xcode 4——“未连接任何配置的 iOS 设备”与 iPod touch 2

发布于 2024-10-26 04:53:33 字数 545 浏览 5 评论 0原文

我有两个 iPod touch。一款是运行 iOS 4.2.1 的第二代,另一款是运行 iOS 4.3 的第四代。我在两者上安装了相同的配置文件。

我的应用程序在第四代设备上运行良好。

使用第二代时,当我在管理器中查看我的设备时,一切看起来都很好,设备旁边有一个绿点,它表明配置文件已安装。但是当我尝试运行该应用程序时,出现上述错误。

我的应用程序的部署目标是 iOS 4.0。

一周前,我正在使用 Xcode 3,一切正常。过去一周,我升级到了 Xcode 4,并且还必须更新配置文件,因为旧配置文件已过期。我确实在两台设备上安装了新的配置文件——随后出现了上述情况。

顺便说一句,如果您是新开发人员并且遇到了这个问题,我怀疑您的问题与我的不同。这个问题以前已经以通用形式回答过很多次了;其中一些链接来自此处

我尝试重新安装配置文件并重新启动我的设备和计算机。运气不好。

I have two iPod touches. One is 2nd generation running iOS 4.2.1, and the other is 4th generation, running iOS 4.3. I have the same provisioning profile installed on both of them.

My app runs just fine on the 4th generation device.

With the 2nd generation one, when I look at my device in the organizer, everything looks fine, there is a green dot next to the device, and it shows that the profile is installed. But when I try to run the app, I get the above error.

The deployment target for my app is iOS 4.0.

As of a week ago, I was using Xcode 3, and everything worked fine. Over the past week, I upgraded to Xcode 4, and also had to update the profile, as the old one expired. I did install the new profile on both devices -- and the above situation ensued.

Incidentally, if you are a new developer and you arrived at this question, I suspect your problem is different from mine. This question has been answered in the generic form many times before; several of them are linked from here.

I've tried reinstalling the profile and also restarting both my device and computer. No luck.

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

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

发布评论

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

评论(3

阳光下的泡沫是彩色的 2024-11-02 04:53:35

我所要做的就是更改方案的设置。我将其设置为“iOS 设备”。这对于我的新 iPod 来说效果很好。但对于较旧的设备,我必须将其更改为我的旧 iPod 的设备名称。它的形式为“William Jockusch 的 iPod(4.2.1,覆盖 Base SDK 4.2)”。

令人烦恼的是,每次设备更改时 Xcode 都会重置此设置。所以每次更换设备时我都必须重新设置。

What I had to do was change the settings of the scheme. I had it set to "iOS device". This worked fine for my newer iPod. But for the older one, I had to change it to the device name of my older iPod. It was of the form "William Jockusch's iPod (4.2.1, overriding to Base SDK 4.2)".

Annoyingly, Xcode appears to reset this setting every time the device is changed. So I have to set it again every time I swap devices.

无法言说的痛 2024-11-02 04:53:35

尝试在管理器中删除配置文件(不仅仅是重新安装)并重新安装,删除设备中的配置文件(而不是通过管理器),然后在所有 iOS SDK 和调试模式的“构建”设置中重新分配配置文件。
它可能会完成工作。

Try delete profiles (not just reinstall) in the Organizer and reinstall it, delete profiles in the device (not through Organizer) then reassign profiles in Build settings for all iOS SDK and Debug mode.
It might do the work.

半窗疏影 2024-11-02 04:53:35

是的,重命名该计划也对我有用。这非常有帮助!我能够复制该方案并添加一个新方案,因此当我关闭并再次打开 Xcode 时它会保存它。

yeah renaming the scheme worked for me too. this is pretty helpful! I was able to duplicate the scheme and add a new one, so it saves it when I close and open xcode again.

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