Closed adil-hussain-84 closed 7 years ago
Do you use the new Xcode 8.2?
Downloading Xcode 8.2 now. Will try this again later today.
Unfortunately this is still failing with Xcode 8.2. The Gradle build fails with No matching simulators found
error message when I set os = '9.3'
(and the build fails also for os
level lower than 9.3
). This is the info message I see in the output:
No matching simulators found for specified destinations: [Destination{platform='iOS Simulator', name='iPhone 6', arch='null', id='null', os='9.3'}]
In the list of available simulators on my machine I see this:
-- iOS 9.3 --
...
iPhone 6 (DCF7E667-92F9-4E41-A330-E94B747851B2) (Shutdown)
....
I have tried explicitly setting arch
and id
as well in the build.gradle
file but that makes no difference. The build still fails.
Have you tried to set only the ID?
Does is work with Xcode using the 9.3 simulator?
Try to run gradle simList
so see what simulator gradle finds.
Have the same error: XCode 8.2, trying iPhone 6 (9.3) simulator.
gradle simList
contains this simulator:
-- iOS Simulator 9.3 --
...
iPhone 6 (2021C13F-9809-4438-98E2-A99603909CD2)
...
It works with XCode with iPhone 6 (9.3) simulator
@renep what is the reason of 2nd parameter in this function?
I think, there should be just return simulatorControl.getAllDestinations(parameters.type)
, without restriction to getMostRecentRuntime
.
With parameter it collects simulator only from latest runtime (10.2).
Implemented, so please test the latest develop version.
It works with xcode-plugin version 0.14.5.develop.80
I just tried bumping up the Gradle Xcode plugin from version
0.14.2
to0.14.4
in my project with no other changes in mybulid.gradle
file and I'm getting the following Gradle build error:This is what my
bulid.gradle
file looks like (with all the unrelated bits stripped off):If I drop the Gradle Xcode plugin back down to
0.14.2
the Gradle build works. If I keep the Gradle Xcode plugin version to0.14.4
and specify theos
as10.1
the Gradle build works.(Unfortunately I cannot keep the
os
to10.1
in mybuild.gradle
file because I have unit tests in my project that fail because of an Xcode issue with the latest iOS release.)