Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCLocalSwiftPackageReference is not supported #1206

Closed
ProudOfZiggy opened this issue Oct 5, 2023 · 6 comments · Fixed by tuist/XcodeProj#799 or #1228
Closed

XCLocalSwiftPackageReference is not supported #1206

ProudOfZiggy opened this issue Oct 5, 2023 · 6 comments · Fixed by tuist/XcodeProj#799 or #1228

Comments

@ProudOfZiggy
Copy link

Hi!

After updating to Xcode 15 I have next error with my yml file:

Using configuration file at '../.sourcery-share-extension.yml' error: while reading .yml../.sourcery-share-extension.yml'.
The element XCLocalSwiftPackageReference is not supported

My yml file:

project:
  file: MyApp.xcodeproj
  target:
    name: "MyAppSharingExtension"
  exclude:
    - Packages
templates:
  - MyAppTemplate.stencil
output:
  Result.swift

If I use sources instead of project I got no error, but I need to use project to gather classes that added in a specific target.

P.S. Project has a lot of connected Swift packages.

@art-divin
Copy link
Collaborator

👋🏻 Hello @ProudOfZiggy,

thank you very much for your report 👍🏻

I'll have a look and get back to you with the answer. Right now without doing anything, I suspect that 3rd-party dependency is outdated, i.e. XcodeProj, thus parsing of pbxproj does not work.

⏲️

@art-divin
Copy link
Collaborator

I have checked, and XCLocalSwiftPackageReference is nowhere to be found in XcodeProj, which is used by Sourcery to parse pbxproj files.

I'd need to implement this myself 🙈

@art-divin
Copy link
Collaborator

Update: reproduced the issue, reusing the OP example of sourcery.yml file. Having an SPM package from a local source is enough.

Investigating & fixing, 🕵🏻

@art-divin
Copy link
Collaborator

art-divin commented Oct 8, 2023

I have implemented the support of XCLocalSwiftPackageReference in my PR. Once it is approved & merged, I'll be able to update XcodeProj version in Sourcery, and the issue will be resolved.

Again, thank you for reporting 👍🏻

Edit: waiting for review, meanwhile discovered that Xcodeproj implemented this support months ago 🕵🏻

@art-divin
Copy link
Collaborator

👋🏻 Update:

PR was merged, and so, let's wait for the new release of XcodeProj, then I'll make a new release of Sourcery. Until then, we'd need to wait ⏲️

@art-divin
Copy link
Collaborator

New version of XcodeProj has just been released!

I am working on the new version of Sourcery at the moment. I'll include the update! 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants