Open NikStrela opened 2 years ago
HI @NikStrela, can you confirm the XcodeGen version you're on. Perhaps it's an older one
xcodegen version
Hey! I'm having the same issue! Has it been fixed?
I had the same issue today.
The solution in my case was to remove the testTargets definition on the scheme of the AppTarget:
@yonaskolb Maybe they are generated after the testplan and overwrite the
<TestPlans>
<TestPlanReference
reference = "Container:Testplan.testplan"
default = "YES">
</TestPlanReference>
</TestPlans>
entry in the xcscheme file?
Good day! I have a problem setting up test plans.
I have a MyProject project and tests are attached to it. accordingly, I create a test plan(smoke.xctestplan) that includes some of these tests MyProjectUITests.
But when I enter the command:
xcodebuild -showTestPlans -scheme MyProject
Output:
The scheme "MyProject" is not configured to use test plans.
When I enter the command:
xcodebuild -workspace MyProject.xcworkspace -scheme MyProject -destination 'platform=iOS Simulator,name=iPhone 11 Pro Max' test -testPlan smoke
Output:
The flag -testPlan <name> cannot be used since the scheme does not use test plans
I'm guessing I misconfigured the file I'm project.yml
I am attaching the config file below.
Thanks, any advice would be appreciated!