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

Error instal SPM #880

Open
rastaman111 opened this issue Jan 11, 2024 · 3 comments
Open

Error instal SPM #880

rastaman111 opened this issue Jan 11, 2024 · 3 comments

Comments

@rastaman111
Copy link

Hello!
I install via SPM

Xcode project - SPM

In Project Settings, on the tab "Package Dependencies", click "+" and add github.com/mac-cain13/R.swift
Select your target, on the tab "General", in the section "Frameworks, Libraries, and Embeded Content", click "+" and add RswiftLibrary
Select your target, on the tab "Build Phases", in the section "Run Build Tool Plug-ins", click "+" and add RswiftGenerateInternalResources
Right-click on your project, click RswiftModifyXcodePackages, click Run, click Allow Command to Change Files
Build your project, now the R struct should be available in your code, use auto-complete to explore all static references

@rastaman111
Copy link
Author

Снимок экрана 2024-01-11 в 15 57 40

@rastaman111
Copy link
Author

Снимок экрана 2024-01-11 в 16 04 46

@cyborg-joshi
Copy link

Issue 1: Could not find module 'RswiftResources'
This issue is related to the R.swift library. It seems like there's a mismatch between the target architectures. The library is found for arm64-apple-macos but not for x86_64-apple-macos. You might need to ensure that the R.swift library supports the target architecture.
try updating your R.swift library to the latest version or checking its compatibility with your Xcode version

issue 2: Command SwiftEmitModule failed with a nonzero exit code (vII ArgumentParser)
This issue is related to the ArgumentParser library. A nonzero exit code usually indicates a compilation error.
ensure that you have the latest version of ArgumentParser compatible with your Swift version.
Check if there are any specific compiler flags or settings required by ArgumentParser, and make sure they are correctly configured.

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

2 participants