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

  • Home
  • SEARCH
  • 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 6793089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:03:33+00:00 2026-05-26T18:03:33+00:00

I am confused about Xcode4’s capability to run Application Tests in iOS Simulator. On

  • 0

I am confused about Xcode4’s capability to run Application Tests in iOS Simulator.

On the one hand, Apple’s own documentation says that application tests can be run in simulators. On the other, I have read through the forums here and it seems as though most folks have found otherwise, that Application Tests can only be run on a device.

If the latter is true, please include a link to document this. I haven’t been able to find anything.

Anyways, from iOS App Development Workflow Guide:Unit Testing Applications:

Listing 6-2 Transcript of an iOS Simulator-based application unit-test run

and also

Note: Although Xcode can run logic and application unit tests in simulators, Xcode cannot run logic unit tests on devices. Therefore, if you include and have active both types of unit tests in a scheme, you will not be able to use that scheme to run unit tests on devices.

The problem is that the Simulator does not provide access to the UIApplicationDelegate. Here is a sample test to demonstrate:

- (void) testAppDelegate {
id yourApplicationDelegate = [[UIApplication sharedApplication] delegate];
STAssertNotNil(yourApplicationDelegate, @"UIApplication failed to find the AppDelegate");
}

This test fails in my project. BTW my Logic Tests run fine.

  • 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-26T18:03:34+00:00Added an answer on May 26, 2026 at 6:03 pm

    My bad, I spoke too soon. I have tried this solution and it works. In other words, I am now able to run both Logic Tests and Application Tests from within iOS Simulator.

    Be sure to set both bundle loader AND test host parameters in the Build Settings for your test targets.

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

Sidebar

Related Questions

I am confused about how to make a multipage app in one GWT project.
I'm a bit confused about the difference between a facebook canvas application and a
Very confused about this one. This code in views.py works, but only when I'm
I'm a little confused about the Honeycomb hardware acceleration. The documentation says to add
I've always been confused about this one. Consider the following loops: int [] list
I am new in iOS development and I am totally confused about Dashcode. Why
Why are the British confused about us calling bread rolls “biscuits” when they call bread rolls “puddings”?
I am a bit confused about socket programming in C. You create a socket,
I am bit confused about ADO.Net Data Services. Is it just meant for creating
I'm a little confused about how the standard library will behave now that Python

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.