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

I can't make a build using the RswiftModifyXcodePackages plugin #867

Open
DmitriySportsRu opened this issue Nov 15, 2023 · 2 comments
Open

Comments

@DmitriySportsRu
Copy link

I used P.swift in my project via cocoapods, everything worked fine. Now I need to use spm.

  1. I added the library via spm
Снимок экрана 2023-11-15 в 21 40 07
  1. Added rswift and RswiftLibrary products
Снимок экрана 2023-11-15 в 21 40 46
  1. Added RswiftGenerateInternalResources to plugins in Build Phases
Снимок экрана 2023-11-15 в 21 41 09
  1. Launched the RswiftModifyXcodePackages plugin.
Снимок экрана 2023-11-15 в 21 42 05
  1. After this I start building the project and I get an error

****/Library/Developer/Xcode/DerivedData/Sports-fztfcfietwkstjenyuffwoiganzy/SourcePackages/checkouts/R.swift/Sources/RswiftParsers/ProjectResources.swift:10:8 Could not find module 'RswiftResources' for target 'x86_64-apple-macos'; found: arm64-apple-macos, at: ****/Library/Developer/Xcode/DerivedData/Sports-fztfcfietwkstjenyuffwoiganzy/Build/Products/Debug/RswiftResources.swiftmodule

Снимок экрана 2023-11-15 в 21 31 32

Version: 7.4.0

What am I doing wrong?

@maqiqing
Copy link

Hey, have you solved this problem? I have also encountered this problem

@tomlokhorst
Copy link
Collaborator

I'm not sure why this error is showing up, but do you actually need this step?
It seems in the latest Xcode versions, R.swift works without this step.

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

No branches or pull requests

3 participants