简体   繁体   English

更新到iPhone SDK 4后的iPhone OS部署目标

[英]iPhone OS Deployment Target after update to iPhone SDK 4

I just updated to iPhone SDK 4 and am trying to debug on my device with 3.1.3 installed. 我刚刚更新到iPhone SDK 4,并尝试在安装了3.1.3的设备上进行调试。 Before the update, I compiled with Base and Active SDK set to 3.1.3 and all was well. 在更新之前,我将Base和Active SDK设置为3.1.3进行了编译,一切都很好。 After the update, I'm limited to SDKs 4.0 and 3.2--setting the base to 4.0 and iPhone OS Deployment Target to iPhone OS 3.1.3, I'm able to build and install on my 3.1.3 device, but receive the following error: 更新 ,我仅限于软件开发工具包4.0和3.2 -基地到4.0和iPhone OS的部署目标设置为iPhone OS 3.1.3,我能够构建和安装3.1.3我的设备上,但收到以下错误:

Error from Debugger: mi_cmd_stack_list_frames: Not enough frames in stack 调试器错误:mi_cmd_stack_list_frames:堆栈中没有足够的帧

I'm not using anything specific to the newer SDK, as I haven't touched a bit of code, just updated the SDK/XCode. 我没有使用任何特定于较新的SDK的东西,因为我没有碰过一点代码,只是更新了SDK / XCode。 So what am I doing incorrectly? 那我在做什么错呢? The application runs as expected on an iOS4-installed device. 该应用程序将在安装iOS4的设备上按预期运行。 Are there changes to pre-existing API's that need to be weakly linked perhaps? 是否存在需要弱链接的现有API的更改? Thanks for all help. 感谢您的所有帮助。

您是否尝试过从开发设备中完全删除该应用,进行构建->清理所有目标,然后再次构建到您的设备上?

I found this answer on macforums . 在macforums上找到了这个答案 If it's correct, then you probably have a memory corruption problem in your app that is confusing the debugger. 如果正确,则您的应用程序中可能存在内存损坏问题,这使调试器感到困惑。 Perhaps over-releasing something somewhere. 也许在某处过度释放某些东西。

This probably isn't related to the SDK you are compiling with. 这可能与您正在使用的SDK不相关。 It's possible you had this problem in your app all along but it just didn't show up until things moved around with the new Xcode, SDK, etc. 您的应用程序可能一直存在此问题,但是直到新的Xcode,SDK等问题解决后才出现。

EDIT - I just ran into this problem myself trying to update an older app of mine to 4.0. 编辑 -我只是尝试将我的旧应用程序更新为4.0时遇到了这个问题。 It would run fine in the simulator and would install and run on the device except it wouldn't run in the debugger on the device. 它可以在模拟器中正常运行,并且可以在设备上安装和运行,除非它不能在设备上的调试器中运行。 Anyway, I finally decided it was the .xcodeproj file that was corrupt or bad in some way and created a new project, copied over my source files to the new project and now it all works again. 无论如何,我最终确定是.xcodeproj文件以某种方式损坏或损坏,并创建了一个新项目,然后将其复制到我的源文件中到新项目中,现在它又可以正常工作了。 It's a pain but it only took about 20 mins to duplicate all my settings and I spent a couple hours trying to get the debugger to work. 这很痛苦,但是只花了20分钟就可以复制所有设置,而且我花了几个小时试图使调试器正常工作。

Myself (and probably many others) are concerned about "will I still be able to compile/install apps for v3.1.3 of the iPhone OS?" 我自己(可能还有许多其他人)担心“我仍然能够为iPhone OS v3.1.3编译/安装应用程序吗?”

And what version of xCode does it become IMPOSSIBLE to ever write v3.1.3 apps again? 再次编写v3.1.3应用程序变得不可能成为xCode的哪个版本? (Without installing a second copy of an older version of xCode.) (无需安装旧版本的xCode的第二个副本。)

I've read the mile-long document that Apple wrote on the subject... but it sure would be simpler to understand if they just LISTED the various versions of each... instead of writing long paragraphs. 我已经阅读了Apple编写的有关这一主题的长达一英里的文档...但是,如果他们只是列出每个版本的各种版本,而不是写很长的段落,肯定会更容易理解。

If you have: 如果你有:

  • Mac OS version 10.xx x Mac OS版本10.xx x
  • xCode version xxx xCode版本xxx
  • SDK version(s) xxx SDK版本xxx

you can produce apps for iPhone OS xxx through xxx? 您可以为iPhone OS xxx到xxx制作应用程序?

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

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