ios-control / ios-sim

Command-line application launcher for the iOS Simulator
Apache License 2.0
1.49k stars 253 forks source link

Named pipe error when running ios-sim in parallel #182

Open DarioAhdoot opened 8 years ago

DarioAhdoot commented 8 years ago

We use ios-sim as a host to run our unit test projects. Our Xcode workspaces will contain multiple unit test projects and we allow Xcode to run parallel builds to speed up build times. We get intermittent failures of this variety:

Unable to create stderr named pipe `/var/folders/_8/3nv3hm8d1qx9byyxt8p2vm9w0000gn/T/ios-sim-stderr-pipe-1445298874'

Without understanding the inner workings of ios-sim or the ios-simulator, I was wondering if anything can be done on the ios-sim side to address this short of us disabling parallel builds. I'm guessing it will be difficult since the simulator is probably a shared resource that can't have multiple instances running concurrently. Any feedback would be helpful and we'll resort to turning off parallel builds if that's what is required.

Thanks! Dario

shazron commented 8 years ago

What version are you running? As of version 4.x, ios-sim is a wrapper to the simctl tool provided by Xcode.

xcrun simctl

Thus we are limited to the parallel capabilities of that -- which I assume you just ran in to.

As you can see in the README, --stderr is not being used anymore and has been removed.

DarioAhdoot commented 8 years ago

I am using 3.2.0. I tried upgrading to 4.x but was running into some of the other unresolved issues others were having. As for --stderr, I'm not calling that. Here is my command line:

/usr/local/bin/ios-sim launch $CODESIGNING_FOLDER_PATH --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-6, 9.0" --args "[CompileTests]"

shazron commented 8 years ago

I'm afraid it's unlikely any more patches will come to the 3.x branch, sorry :( Unless it's easily fixable... (except for this one: https://github.com/phonegap/ios-sim/issues/170)

DarioAhdoot commented 8 years ago

Unfortunately, it is that one :/