fastlane
fastlaneunknown
abap
2 years ago
2.1 kB
8
Indexable
I found a workaround if you are willing to locally modify a line of code for fastlane sigh. First you need to find where fastlane is installed. For me (macOS) it is installed here: ~/.gem/gems/fastlane-2.206.2. You might have fastlane installed in your project folder $projectRoot/vendor/bundle/ruby/2.6.0/gems/fastlane-2.206.2. Next you will modify a file in the sigh tool. Use a text editor to open the file: vim ~/.gem/gems/fastlane-2.206.2/sigh/lib/sigh/runner.rb. Search for device_classes = . For me this was around line 272: device_classes = case Sigh.config[:platform].to_s when 'ios' [ Spaceship::ConnectAPI::Device::DeviceClass::APPLE_WATCH, Spaceship::ConnectAPI::Device::DeviceClass::IPAD, Spaceship::ConnectAPI::Device::DeviceClass::IPHONE, Spaceship::ConnectAPI::Device::DeviceClass::IPOD ] when 'tvos' [Spaceship::ConnectAPI::Device::DeviceClass::APPLE_TV] when 'macos', 'catalyst' [Spaceship::ConnectAPI::Device::DeviceClass::MAC] end Under the case when 'ios' we will append a line: Spaceship::ConnectAPI::Device::DeviceClass::MAC. It will look like this: device_classes = case Sigh.config[:platform].to_s when 'ios' [ Spaceship::ConnectAPI::Device::DeviceClass::APPLE_WATCH, Spaceship::ConnectAPI::Device::DeviceClass::IPAD, Spaceship::ConnectAPI::Device::DeviceClass::IPHONE, Spaceship::ConnectAPI::Device::DeviceClass::IPOD, Spaceship::ConnectAPI::Device::DeviceClass::MAC ] when 'tvos' [Spaceship::ConnectAPI::Device::DeviceClass::APPLE_TV] when 'macos', 'catalyst' [Spaceship::ConnectAPI::Device::DeviceClass::MAC] end
Editor is loading...