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
Recently, we are often running into the following build errors (excerpt of hundreds of this kind):
error: Multiple commands produce '[...]/DerivedData/[...]/Build/Products/Debug-iphonesimulator/SomeApp.app
duplicate output file '[...]/DerivedData/[...]/Build/Products/Debug-iphonesimulator/SomeApp.app/_CodeSignature' on task: CodeSign [...]/DerivedData/[...]/Build/Products/Debug-iphonesimulator/SomeApp.app (in target 'SomeAppWithExtension' from project 'SomeApp')
We have a similar setup as described in #589, so we specify an AllTests scheme, in which we specify all of our individual test targets in the test action. The build and run actions contain a reference to our main application target, which is also used as the host application for this scheme.
During our investigations, we discovered that the errors always occur, when the AllTests scheme contains an additional application target in the list of targets in the Test Action of the scheme (see screenshot). When running xcodegen generate multiple times in a row (10+ times), this additional target is present in the AllTests scheme for approximately half of the cases.
We already tried debugging the SchemeGenerator, but we could not find the location in which the additional application target is added to the scheme. The testables, which are added to the XCScheme.TestAction only contain the test targets that we explicilty specify in the project.yml. So how are the bottom two entries ending up in the scheme? When opening the generated xcscheme file, it doesn't even contain a reference to those bottom two entries.
Do you have any idea, how the additional target could end up in the scheme?
Recently, we are often running into the following build errors (excerpt of hundreds of this kind):
We have a similar setup as described in #589, so we specify an
AllTests
scheme, in which we specify all of our individual test targets in the test action. The build and run actions contain a reference to our main application target, which is also used as the host application for this scheme.During our investigations, we discovered that the errors always occur, when the
AllTests
scheme contains an additional application target in the list of targets in the Test Action of the scheme (see screenshot). When runningxcodegen generate
multiple times in a row (10+ times), this additional target is present in theAllTests
scheme for approximately half of the cases.We already tried debugging the
SchemeGenerator
, but we could not find the location in which the additional application target is added to the scheme. Thetestables
, which are added to theXCScheme.TestAction
only contain the test targets that we explicilty specify in theproject.yml
. So how are the bottom two entries ending up in the scheme? When opening the generatedxcscheme
file, it doesn't even contain a reference to those bottom two entries.Do you have any idea, how the additional target could end up in the scheme?
project.yml
Screenshot
The text was updated successfully, but these errors were encountered: