Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6351935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:06:20+00:00 2026-05-24T22:06:20+00:00

So I have been playing with GHUnit today, and have some nice tests which

  • 0

So I have been playing with GHUnit today, and have some nice tests which run just fine in the similator in XCode4. When I run them on the iPhone itself I get the following error:

'Unable to instantiate the UIApplication delegate instance.
No class named GHUnitIPhoneAppDelegate is loaded.'

Before you ask, yes I have the linker options -ObjC and -all_load set, and as I said, it works fine in the simulator, so why not the iPhone itself?

Puzzled!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:06:21+00:00Added an answer on May 24, 2026 at 10:06 pm

    I am not sure to have the real reason of this problem but I did find a workaround.

    For a reason I am still not quite sure to understand replacing:

    int retVal = UIApplicationMain(argc, argv, nil, @"GHUnitIPhoneAppDelegate");
    

    by

    int retVal = UIApplicationMain(argc, argv, nil, @"GHUnitIOSAppDelegate");
    

    in the main file will fix the problem.

    The class GHUnitIPhoneAppDelegate inherits from GHUnitIOSAppDelegate
    but it is not included in the final binary (I ran a nm -a GHUnitIPhoneAppDelegate|grep IPhoneAppwith no result).

    A wild guess is that since the class only inherits from it (no additional methods or attributes) and because nowhere in the framework this class is instantiated (only mentioned through a string), the compiler, to save space, removes it from the binary information in iOS mode.

    Hope this helps, at least that worked for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been playing with javascript arrays and I have run into, what I
I have been playing with Node.js for some time. I have the following piece
I have been playing with generics and was hoping I could get some feedback
I have been playing around with writing some simple card games in Python for
I have been playing with some of Apple's example code for customizing UITableViewCells. I
I have been playing around with some debugging and wrote some C code that
I have been playing around with Umbraco 5 for some days now. I have
I have been playing about with a GUI today and trying add different elements
I have been playing with BeautifulSoup, which is great. My end goal is to
I have been playing around with the concept of 'module' that some mvc frameworks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.