Questions tagged [r.swift]

R.swift is an open-source Swift library giving users strong typed, autocompleted resources like images, fonts and segues in Swift projects. Use this tag for questions about the R.Swift library.

For more information, check out the GitHub repo for R.Swift.

6 questions
0
votes
3 answers

How to add R.swift into XcodeGen project?

I'm experimenting with XcodeGen, and ran into a problem. I can't add "R.Swift" dependency. Not through SPM not through CocoaPods( In the case of SPM, I don't understand how to add Run Build Tool Plug-in "RswiftGeneratesInternalResources (Swift)"…
Sergey
  • 358
  • 3
  • 12
0
votes
1 answer

Local SPM library with SPM plugin generating file linked to iOS and watchOS targets causes Multiple commands produce error

I'm creating a watchOS app which depends on an iOS app. Both those apps have their corresponding targets. Both targets link my local SPM library, which have single target. This target calls R.swift plugin which generates file in the output…
0
votes
1 answer

warning: [R.swift] project.pbxproj is internally inconsistent

I have just started working on an older project where there are many Xcode warnings. One of the warnings is an R.swift warning: "[R.swift] project.pbxproj is internally inconsistent." In the Build target - Log it says: "warning: [R.swift]…
AndersHJ
  • 23
  • 5
0
votes
2 answers

Command PhaseScriptExecution failed with a nonzero exit code for R.swift

Command PhaseScriptExecution failed with a nonzero exit code for R.swift Does any one have faced this situation?
Abhishek Mitra
  • 3,335
  • 4
  • 25
  • 46
-1
votes
1 answer

R.Swift with SPM setup error SourcePackages/checkouts/R.swift/rswift: No such file or directory

Receiving this error: /SourcePackages/checkouts/R.swift/rswift: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code Use SPM for installation and this run code in Build…
Andrei Trotsko
  • 347
  • 2
  • 12
-1
votes
1 answer

File could not be parsed as a strings file [R.swift]

I'm using R.swift and suddenly I got this error: warning: [R.swift] File could not be parsed as a strings file: "File URL"
Alirza Eram
  • 134
  • 11