• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Automated unit-testing for iOS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automated unit-testing for iOS?


  • Subject: Re: Automated unit-testing for iOS?
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 01 Sep 2011 15:21:55 -0700


On Sep 1, 2011, at 3:03 PM, I wrote:

I installed the ‘iphonesim’ tool you mentioned, but I can’t get it to work. It does launch the simulator, but with a black screen, and immediately exits with an error:

Answering my own question for the benefit of people who might come across this thread later:

This is a known bug in iphonesim (I found it in the issue tracker in the github project.) You have to specify the path to the app as an *absolute* path. Once I did that, it works correctly.

The problem I have now is that Xcode’s unit-test template created a target that’s some sort of bundle that gets injected into the app, and I have no idea how to get that to happen in the simulator. I think I’m going to have to make a new target that’s essentially the app plus the unit tests linked into it, so the tests will run right at launch.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Automated unit-testing for iOS? (From: Jens Alfke <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Eric Wing <email@hidden>)
 >Re: Automated unit-testing for iOS? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Automated unit-testing for iOS?
  • Next by Date: Re: Automated unit-testing for iOS?
  • Previous by thread: Re: Automated unit-testing for iOS?
  • Next by thread: Re: Automated unit-testing for iOS?
  • Index(es):
    • Date
    • Thread