XcodeGen icon indicating copy to clipboard operation
XcodeGen copied to clipboard

Multi plist error

Open JalalNajafi opened this issue 4 years ago • 5 comments

in our project, we going to make project base on swiftgen and when it make i face with error of multi plist and i have to select the plist and deselect from target and after that, it work. how can isolve this issue every time that make the project it should be deselected info.plist from target membership

JalalNajafi avatar Dec 14 '21 17:12 JalalNajafi

I've encountered the same error:

If I define it as:

        INFOPLIST_FILE: "$(SRCROOT)/Sources/App/Base/Supporting Files/Info.plist"

The info.plist is added to the target (which causes build failure)

Using

        INFOPLIST_FILE: "Sources/App/Base/Supporting Files/Info.plist"

fixes the issue.

Lutzifer avatar Jun 27 '23 08:06 Lutzifer

@Lutzifer you have to deselect the info plist from the target membership

JalalNajafi avatar Jun 28 '23 13:06 JalalNajafi

@vanguardflag that's the result of leaving out $(SRCROOT)/ for me: it is no longer preselected after generation, thus no need to deselect it manually.

Lutzifer avatar Jun 28 '23 13:06 Lutzifer

@Lutzifer i try to add this one in base part of the app in ymal file but the info plist added not deselected can you share the ymal or sample of that

i create the three banner scheme with that ymal with one info plist thats the problem

JalalNajafi avatar Jul 03 '23 10:07 JalalNajafi

@vanguardflag

Its part of the target definition:

BaseTarget:
    (...)
    settings:
      base:
        INFOPLIST_FILE: "Sources/App/Base/Supporting Files/Info.plist"

Lutzifer avatar Jul 03 '23 11:07 Lutzifer