Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

UIDatePicker hangs executable #8

Open
brow opened this issue Aug 27, 2010 · 1 comment
Open

UIDatePicker hangs executable #8

brow opened this issue Aug 27, 2010 · 1 comment

Comments

@brow
Copy link

brow commented Aug 27, 2010

I've noticed that the presence of a UIDatePicker anywhere in the view hierarchy seems to cause my application to hang during Cucumber tests.

You can reproduce the issue in Universal.app by adding the following line to the end of -[TestViewController_Shared viewDidLoad]:

[self.view addSubview:[[[UIDatePicker alloc] init] autorelease]];

Then recompile and run cucumber in the project root. The app will hang in Simulator, and the test suite will fail with a trace showing a timeout exception.

@ahinz
Copy link

ahinz commented Feb 5, 2011

For other iCuke users out there who ran into this issues:
This happens because the apple date picker has an absurd number of rows. If you extend your timeout it will eventually return. Our test took about 10 minutes and returned over 100MB of xml. You can fix this by inject a dylib that overrides the XML generation for the date picker

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants