Not enough frames in stack :: iPhone N-FAQ;

Posted on Updated on

If you are getting this error message in your console while running your app on iPhone/iPod (specially on 1G, having ios < 3.2)

dyld: Symbol not found: _OBJC_CLASS_$_UIPopoverController
Referenced from: /var/mobile/Applications/5BC198AF-22AF-4581-8787-E267D359E059/<your_app_name>
Expected in: /System/Library/Frameworks/UIKit.framework/UIKit
in /var/mobile/Applications/5BC198AF-22AF-4581-8787-E267D359E059/<your_app_name>

Data Formatters temporarily unavailable, will re-try after a ‘continue’. (Not safe to call dlopen at this time.)
mi_cmd_stack_list_frames: Not enough frames in stack.
mi_cmd_stack_list_frames: Not enough frames in stack.

Above error is in UIKit.framework, it can be in any library; you need to closely look into error and find out the library name;
Following solution is for UIKit.framework; You can use same steps for any other library too;

Reason for this error;
UIPopoverController class is available in iOS 3.2 and later; So linking this library as Required for the device having OS < 3.2 will throw this error. By changing the link type to Weak will ignore such libraries and your application will run;

Do following things;

  • check the iOS Deployment target in build section of info. It must be compatible with os version of your device;
  • change the type of  UIKit.framework library from Required to Week; You can do this from Project menu ->Edit Active Target “your_app_name” ->General (first section) and then linked libraries;

You have to find work around for your program logic incase you make this library weakly linked; Might be some of your code will not be able to run where you use UIPopoverController class;

free counters


3 thoughts on “Not enough frames in stack :: iPhone N-FAQ;

    משחקים ברשת said:
    February 9, 2011 at 03:58

    Hello! I just want to give a huge thumbs up for the good information you’ve gotten here on this post. I will be coming again to your weblog for more soon.

    james said:
    February 15, 2011 at 23:33

    I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head. Your idea is outstanding; the issue is something that not enough people are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.

    waseem sarwar said:
    February 25, 2011 at 10:59

    I fixed my problem by setting the right target.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s