You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is unfixed in latests gem version (1.6.10)
Simctl had been refactored with Xcode 15 release. Separated from the Xcode.app bundle.
Runtime directory moved to user folder. New path includes part with iOS runtime "version" folder, it may be retrieved from xcrun simctl runtime list output.
I've overwritten runtime_profiles() getter to fix my fastlane setup (see code below).
It fixes SimCtl calls that I use, such as: reset_device(), runtime(), deviceType().
Although I am not sure whether this diff is enough to implement full support for Xcode 15+ properly.
SimCtl::Xcode::Path.class_evaldodefself.runtime_profilesifSimCtl::Xcode::Version.gte?('15.0')output=`xcrun simctl runtime list -v -j`json=JSON.parse(output)json.eachdo |r|
runtime_json=r[1]nextunlessruntime_json['version'] == SD_SPEC::IOS_SIMULATOR_RUNTIME_VERSIONsimruntime_path=runtime_json['runtimeBundlePath']returnFile.dirname(simruntime_path)endraise"Not found #{SD_SPEC::IOS_SIMULATOR_RUNTIME_VERSION} in #{json}"elsifSimCtl::Xcode::Version.gte?('11.0')File.join(home,'Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/')elsifSimCtl::Xcode::Version.gte?('9.0')File.join(home,'Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/')elseFile.join(home,'Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/')endendend
The text was updated successfully, but these errors were encountered:
Problem is unfixed in latests gem version (1.6.10)
Simctl had been refactored with Xcode 15 release. Separated from the Xcode.app bundle.
Runtime directory moved to user folder. New path includes part with iOS runtime "version" folder, it may be retrieved from
xcrun simctl runtime list
output.Xcode 15 path example:
/Library/Developer/CoreSimulator/Volumes/iOS_21A5326a/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime
Xcode 14.3.1 path example:
/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime
I've overwritten runtime_profiles() getter to fix my fastlane setup (see code below).
It fixes SimCtl calls that I use, such as: reset_device(), runtime(), deviceType().
Although I am not sure whether this diff is enough to implement full support for Xcode 15+ properly.
The text was updated successfully, but these errors were encountered: