I'm trying to add some Tests for my application. Following the Document from Apple, I add two testing bundles to my project. The logic tests are no problem, but when I try to make the application tests on a device I always get the error that the logic tests don't run on a device.
In Xcode 3 there is no problem with that. Only Xcode 4 throws this error...
Any suggestions?
Thanks, Tim
i was also having problems with setting up application tests in xcode4. A solution that worked for me was as follows:
Assuming you have an application target called "MyApp"
To run the test on a device plugin the device and select the scheme "MyAppTesting on device" and run as test. Assure that the mentioned scheme has set "Debug" within Test/Build Configuration which should be default.
Best regards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With