How to automatically launch iphone application after creating it?

I am using google code unit testing.

I create it pretty well using xcodebuild on the command line. Now I want to run it (preferably on the connected device, but the simulator will also work) and catch all the reviews from the tests.

But I can’t find out how to run it. Any ideas?

+4
source share
4 answers

The Jeff Haynie iphonesim project on Github looks like it can work. I had a problem creating 27812bb4b ( make crash on warning in nsprintf.m ), but it might just be using the pre-installed OS and SDK. See also this related question .

+2
source

If you followed the instructions from the Google page (creating a goal, adding test files to the goal), and you have an iPhone SDK certificate (you need to download applications to the device), you can simply change the Active SDK to your device (the combination in the upper left corner in Xcode)

If you do not have a certificate, you need to go to the SDK program.

+1
source

The only iPhone simulator and debugger that I know of comes with the iPhone SDK. To use the iPhone SDK, you must have an Intel Mac with OS 10.5 Leopard, in which case you could also program / compile in Xcode instead of using the command line.

0
source

There must be some misunderstanding. What exactly do you want to run from the command line? Test package? If so, the test suite should be a separate goal, so all you need to do is build it, for example, as follows:

 xcodebuild -target UnitTests -sdk iphonesimulator2.2.1 -configuration Debug 

If you have a test target set, it will run RunIPhoneUnitTest.sh , which comes with the Google toolbar, and the script will run all your tests.

0
source

Source: https://habr.com/ru/post/1286595/


All Articles