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
{{ message }}
Repository navigation
"file reference member of multiple groups" warning in Xcode 10 #405
After upgrading to Xcode 10, I'm getting the following warning when building my project:
2018-09-19 13:29:32.267 xcodebuild[17317:5682171] warning: The file reference for "Sources/Components" is a member of multiple groups ("Sources" and ""); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2018-09-19 13:29:32.267 xcodebuild[17317:5682171] warning: The file reference for "Sources/Coordinators" is a member of multiple groups ("Sources" and ""); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2018-09-19 13:29:32.267 xcodebuild[17317:5682171] warning: The file reference for "Sources/Extensions" is a member of multiple groups ("Sources" and ""); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2018-09-19 13:29:32.287 xcodebuild[17317:5682171] warning: The file reference for "Sources/Pages" is a member of multiple groups ("Sources" and ""); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
2018-09-19 13:29:32.287 xcodebuild[17317:5682171] warning: The file reference for "Sources/Stores" is a member of multiple groups ("Sources" and ""); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
I'm getting the warning both on a version compiled with an older version (I guess Swift 4.1, XcodeGen version 1.7.0), and with the newer version 1.11.2 compiled with Swift 4.2.
Could you share some more details of your spec? Do multiple targets use the same source paths?
Better yet if you could submit a PR to the TestProject fixture that highlighted the issue, even better 😄👍
cd Tests/Fixtures/TestProject
mint run yonaskolb/xcodegen
xcodebuild -project Project.xcodeproj -target Zapp -quiet CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
Activity
yonaskolb commentedon Sep 29, 2018
Hi @LinusU. Was your version of XcodeGen compiled with Swift 4.2?
LinusU commentedon Sep 29, 2018
I'm getting the warning both on a version compiled with an older version (I guess Swift 4.1, XcodeGen version 1.7.0), and with the newer version 1.11.2 compiled with Swift 4.2.
yonaskolb commentedon Sep 29, 2018
Could you share some more details of your spec? Do multiple targets use the same source paths?
Better yet if you could submit a PR to the
TestProjectfixture that highlighted the issue, even better 😄👍LinusU commentedon Oct 2, 2018
Sorry for the lack of detail☺️
I have multiple targets that use the same paths, it looks something like this (very simplified):
I'll try and submit a PR as soon as I get some time 👍
yonaskolb commentedon Dec 5, 2018
@LinusU is this still an issue for you?
LinusU commentedon Dec 5, 2018
Yes, sorry for not providing more info 😓
Still an issue in 2.0.0
LinusU commentedon Dec 5, 2018
Hmm, I tried to reproduce it here, but haven't been able to yet 🤔
master...LinusU:warning-test-case
LinusU commentedon Dec 5, 2018
Really went down the rabbit hole on this one. The bug is only triggered with certain app names 😂
e.g.
CtrlpanelandCtrlalalatriggers the behaviour, butAppWithExtensionandBiBaBodoesn't 😮edit:
DishWashertriggers the bug, butAishWasherdoesn't, seems to have something to do with lexicographical ordering 🤔edit2:
Credentiaqtriggers the bug, butCrendetiaadoesn't 😂LinusU commentedon Dec 5, 2018
@yonaskolb okay, I've added a test case here: master...LinusU:warning-test-case
I did the following to see it:
The first line of the output is the warning
grigorye commentedon Feb 20, 2020
I was able to workaround this by adding
createIntermediateGroups: trueoption to the (root)optionssection of .yml.xxi511 commentedon Sep 2, 2022
Just have this issue.
In my case, it is caused by typo.
e.g. some place is
Sources/Componentsand some place isSources/components