Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemes can be generated containing a TestableReference with no children #927

Open
dalemyers opened this issue Dec 6, 2023 · 0 comments

Comments

@dalemyers
Copy link

dalemyers commented Dec 6, 2023

If you generate a scheme with the TestAction node as follows:

   <TestAction
      buildConfiguration = "Debug"
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
      shouldUseLaunchSchemeArgsEnv = "YES">
      <Testables>
         <TestableReference
            skipped = "NO">
         </TestableReference>
      </Testables>
   </TestAction>

then Xcode will crash on launch. This is, without a doubt, a bug in Xcode but we should generate "valid" XML anyway.

This is generated when running pod install with our Podfile. I can't share the Podfile unfortunately, but it may be useful to know that the broken scheme belongs to a demo app which is referenced as an appspec (not something I'm particularly familiar with).

This is 100% reproducible in both generation and Xcode crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant