Coder Social home page Coder Social logo

Comments (9)

GHMarcus avatar GHMarcus commented on April 28, 2024 2

For us it worked using Fastlane 2.219.0 and instead of iPhone 14 Pro Max (17.0.1) using the same as the Xcode simulator says: iPhone 14 Pro Max (17.0)

It will automatically match to the right simulator when running in CI

Bildschirmfoto 2024-01-24 um 12 38 56
Bildschirmfoto 2024-01-24 um 12 39 46

from fastlane.

michalsrutek avatar michalsrutek commented on April 28, 2024 1

Just tried fastlane 2.219.0, but unfortunately, I'm still met with the same error. Version 2.217.0 still works.

from fastlane.

joshdholtz avatar joshdholtz commented on April 28, 2024

Hey! This might be fixed in 2.219.0 which just went out 🤞 Would you be able let me know if the newest version works for you or not? 😇

from fastlane.

neospirit avatar neospirit commented on April 28, 2024

2.217.0 not working for me unfortunately... I have an iPad called "My iPad" under iOS 17.0. So I don't know if I have to put My iPad or My iPad (17.0) as listed when I do xcrun xctrace list devices

from fastlane.

neospirit avatar neospirit commented on April 28, 2024

I finally used destination and it works on 2.219.0:

run_tests(
    project: "MyProject.xcodeproj",
    scheme: "MyScheme",
    ensure_devices_found: true,
    destination: "platform=iOS,name=My iPad",
)

from fastlane.

lacostej avatar lacostej commented on April 28, 2024

@neospirit @michalsrutek

could you collect the output of the following commands?

xcrun simctl list runtimes

and

xcrun simctl list runtimes -j

Thanks.

from fastlane.

michalsrutek avatar michalsrutek commented on April 28, 2024

@lacostej

Running xcrun simctl list runtimes yields

== Runtimes ==
iOS 15.0 (15.0 - 19A339) - com.apple.CoreSimulator.SimRuntime.iOS-15-0
iOS 16.4 (16.4 - 20E247) - com.apple.CoreSimulator.SimRuntime.iOS-16-4
iOS 17.0 (17.0 - 21A328) - com.apple.CoreSimulator.SimRuntime.iOS-17-0
iOS 17.0 (17.0.1 - 21A342) - com.apple.CoreSimulator.SimRuntime.iOS-17-0

running xcrun simctl list runtimes -j yields

Long output >>>
{
  "runtimes" : [
    {
      "bundlePath" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 15.0.simruntime",
      "buildversion" : "19A339",
      "platform" : "iOS",
      "runtimeRoot" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 15.0.simruntime\/Contents\/Resources\/RuntimeRoot",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-15-0",
      "version" : "15.0",
      "isInternal" : false,
      "isAvailable" : true,
      "name" : "iOS 15.0",
      "supportedDeviceTypes" : [
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
          "name" : "iPhone 6s",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s",
          "productFamily" : "iPhone"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s Plus.simdevicetype",
          "name" : "iPhone 6s Plus",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus",
          "productFamily" : "iPhone"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE (1st generation).simdevicetype",
          "name" : "iPhone SE (1st generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE",
          "productFamily" : "iPhone"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7.simdevicetype",
          "name" : "iPhone 7",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7",
          "productFamily" : "iPhone"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7 Plus.simdevicetype",
          "name" : "iPhone 7 Plus",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus",
          "productFamily" : "iPhone"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 8.simdevicetype",
          "name" : "iPhone 8",
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (9th generation).simdevicetype",
          "name" : "iPad (9th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-9th-generation",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air (4th generation).simdevicetype",
          "name" : "iPad Air (4th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--4th-generation-",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (3rd generation).simdevicetype",
          "name" : "iPad Pro (11-inch) (3rd generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-3rd-generation",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (5th generation).simdevicetype",
          "name" : "iPad Pro (12.9-inch) (5th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-5th-generation",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air (5th generation).simdevicetype",
          "name" : "iPad Air (5th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-5th-generation",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (10th generation).simdevicetype",
          "name" : "iPad (10th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-10th-generation",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini (6th generation).simdevicetype",
          "name" : "iPad mini (6th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-6th-generation",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (4th generation).simdevicetype",
          "name" : "iPad Pro (11-inch) (4th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-4th-generation-8GB",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch) (4th generation) (16GB).simdevicetype",
          "name" : "iPad Pro (11-inch) (4th generation) (16GB)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-11-inch-4th-generation-16GB",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (6th generation).simdevicetype",
          "name" : "iPad Pro (12.9-inch) (6th generation)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-6th-generation-8GB",
          "productFamily" : "iPad"
        },
        {
          "bundlePath" : "\/Applications\/Xcode-15.0.1.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Library\/Developer\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (6th generation) (16GB).simdevicetype",
          "name" : "iPad Pro (12.9-inch) (6th generation) (16GB)",
          "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-12-9-inch-6th-generation-16GB",
          "productFamily" : "iPad"
        }
      ]
    }
  ]
}

from fastlane.

michalsrutek avatar michalsrutek commented on April 28, 2024

@GHMarcus Thanks, your solution works.

Closing, but it still feels like this is a breaking change. cc @joshdholtz @lacostej

from fastlane.

GHMarcus avatar GHMarcus commented on April 28, 2024

@michalsrutek
I feel the same, but good my solution helped you too. Furthermore it is a little inconsistant, for run_tests it helps to use the cut off version. For snapshots it will not find any simulators. So at the end I updated everything to iOS 17.2 where everything works fine again.

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.