Closed ProfessaA closed 7 years ago
I need to figure out why CI is broken.
I've update CI script and indeed xctool test fails under Xcode 8.3.3. I've pushed some changes and retested your PR on top of them. Everything is now green. Thanks for a PR!
@ProfessaA Thanks a lot for the PR! @ExtremeMan Are you going to public a new release version for this change?
@zayhero I will make a release. Give me some time.
background After upgrading to Xcode 8.3.3, xctool would fail when targeting simulators with "Unable to find SDK for platform iphonesimulator and sdk version 10.3.1", even though the 10.3 sdk was installed.
This issue is caused by
-[SimRuntime versionString]
including the patch version of the sdk, while the sdk'sSDKSettings.plist
includes only the major and minor version.change When comparing the version as reported by
SimRuntime
to the versions pulled from the sdk's plist, ignore the patch version.verification
xctool run-tests -logicTest /path/to/SomeTests.xctest -sdk iphonesimulator
works and uses an available simulator with sdkiphonesimulator10.3
.