plu / pxctest

Execute tests in parallel on multiple iOS Simulators
MIT License
800 stars 57 forks source link

'pxctest run-test ' fails to launch tests #33

Closed SamuelZhaoY closed 7 years ago

SamuelZhaoY commented 7 years ago

I have followed exactly what is given in the RM file. How ever when I execute pxctest run-test, I was always given the error below:

Error Domain=com.facebook.XCTestBootstrap Code=0

it opens the application and immediately minimising the application and after while raises the above issue.

plu commented 7 years ago

Can you check the Simulators log files? You can find them here: ~/Library/Logs/CoreSimulator

It might also help to check Console.app for Crashes (User Reports).

SamuelZhaoY commented 7 years ago

I have created a new simulator and recorded the system logs below. Please check it: system.log.zip

plu commented 7 years ago

I can show you the error message if you like, but maybe it would make sense if you had a look into the log yourself?

plu commented 7 years ago
The bundle “AlipayWalletUITests” couldn’t be loaded because it doesn’t contain a version
for the current architecture. Try installing a universal version of the bundle.
(dlopen_preflight(/Users/Gangdooz/...): no suitable image found.
Did find: /Users/Gangdooz/...: mach-o, but wrong architecture)

There are 32 Bit and 64 Bit Simulators, for example iPhone 5 vs iPhone 5s. You must build the test target for the correct architecture of the Simulator you want to run the tests on.

SamuelZhaoY commented 7 years ago

Thanks, I have also just found out the errors, working on it.

SamuelZhaoY commented 7 years ago

Thanks for your help, initially the error was caused by:

-destination 'platform=iOS Simulator,name=iPhone 5,OS=9.0'

Since I am using 5s simulator, hence as soon as I changed into:

-destination 'platform=iOS Simulator,name=iPhone 5s,OS=9.0'

The problem will be solved.

plu commented 7 years ago

Happy it works for you now!

SamuelZhaoY commented 7 years ago

So far everything is working well. But there is one more thing I may want to ask out of curiosity, since the project here fully supports parallel testing on iOS simulators, why not support on real devices as well? 😄

plu commented 7 years ago

Pull requests welcome :).