Xcodegen: Sources with folder reference type end up having incorrect path in Xcode project

Created on 20 Feb 2019  ยท  4Comments  ยท  Source: yonaskolb/XcodeGen

xcodegen 2.2.0

My folder structure:

.
โ”œโ”€โ”€ MyFramework
โ”‚ย ย  โ””โ”€โ”€ Resources
โ”‚ย ย      โ””โ”€โ”€ folder-to-copy
โ”‚ย ย          โ””โ”€โ”€ resource.txt
โ””โ”€โ”€ spec
    โ””โ”€โ”€ project.yml

spec/project.yml:

name: MyProject
targets:
  MyFramework:
    platform: iOS
    type: framework
    sources:
      - path: ../MyFramework/Resources
        type: folder

Command: xcodegen -s spec/project.yml --project . generates broken MyProject.xcodeproj:

screenshot 2019-02-20 11 06 30

Notice that while the path ../MyFramework/Resources is correct relative to the parent folder of the YML file, it's not correct relative to the Xcode project. In Xcode project, it should be MyFramework/Resources

xcodegen-test.zip

bug

Most helpful comment

Thanks @nzhuk. Just reproduced this and confirmed it will be fixed by https://github.com/yonaskolb/XcodeGen/pull/524

All 4 comments

Thanks @nzhuk. Just reproduced this and confirmed it will be fixed by https://github.com/yonaskolb/XcodeGen/pull/524

When is the next release scheduled for? I really need this but don't want to have everyone install from source :)

@alejandro-isaza sorry for the delay. I want to put out a release tomorrow

I'm closing this for now as the PR is merged

Was this page helpful?
0 / 5 - 0 ratings

Related issues

igorkulman picture igorkulman  ยท  5Comments

ksulliva picture ksulliva  ยท  4Comments

thecb4 picture thecb4  ยท  3Comments

toshi0383 picture toshi0383  ยท  3Comments

brentleyjones picture brentleyjones  ยท  6Comments