Re: Automated unit-testing for iOS?
Re: Automated unit-testing for iOS?
- Subject: Re: Automated unit-testing for iOS?
- From: Eric Wing <email@hidden>
- Date: Thu, 01 Sep 2011 15:28:03 -0700
On 9/1/11, Eric Wing <email@hidden> wrote:
> On 9/1/11, Jens Alfke <email@hidden> wrote:
>>
>> On Sep 1, 2011, at 2:12 PM, Eric Wing wrote:
>>
>>> This is something I am interested in. I posted this 5 part article a
>>> few weeks ago:
>>> http://playcontrol.net/ewing/jibberjabber/automated-mobile-test-part1.html
>>
>> Thanks for posting that, although it’s ultimately kind of depressing that
>> such layers and layers of hacks are needed. :(
>>
>> 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:
>>
>> $ iphonesim launch
>> build/Couchbase/Build/Products/Debug-iphonesimulator/Empty\ App.app
>> [DEBUG] App Spec: <DTiPhoneSimulatorApplicationSpecifier 0x100302330>
>> specified by path
>> build/Couchbase/Build/Products/Debug-iphonesimulator/Empty
>> App.app
>> [DEBUG] SDK Root: <DTiPhoneSimulatorSystemRoot 0x100300900>
>> path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
>> version=5.0 name=Simulator - iOS 5.0
>> [DEBUG] using device family iphone
>> [DEBUG] Session could not be started: Error
>> Domain=DTiPhoneSimulatorErrorDomain Code=1 "Unknown error."
>> UserInfo=0x100154010 {NSLocalizedDescription=Unknown error.,
>> DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}
>>
>> I’m giving it the correct path to a just-built app that runs fine in the
>> simulator when launched from Xcode.
>
> Eeek. I haven't tried iphonesim yet against the iOS 5.0 simulator. Our
> Jenkins machine is running Snow Leopard with Xcode 4.0.
>
> We made one tiny change to iphonesim to remove some default/sanity
> check so a skin would not automatically get set for us. But I don't
> think it would affect the error you are seeing :(
>
One followup thought. We're actually more or less this same technique
in the Corona SDK to launch the Xcode simulator. But we are using the
APIs directly instead of the command line tool. I haven't noticed any
problems so far on our other installations of Mac OS X or Xcode.
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
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