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

R.swift can't populate the R.generated.swift file of a pod imported via CocoaPods #790

Open
AntonioEmanueleCutarella98 opened this issue Dec 12, 2022 · 1 comment

Comments

@AntonioEmanueleCutarella98

This is what I wrote in the pod spec file:

s.dependency 'R.swift'

s.script_phases = [{
:name => 'R',
:script => '"$PODS_ROOT/R.swift/rswift" generate --access-level public "$SRCROOT/FolderName/R.generated.swift"',
:execution_position => :before_compile,
:input_files => ["$TEMP_DIR/rswift-lastrun"],
:output_files => ["$SRCROOT/FolderName/R.generated.swift"]
}]

And this is what the R.generated.swift file produces:

private class BundleFinder {}
let R = _R(bundle: Bundle(for: BundleFinder.self))

struct _R {
let bundle: Foundation.Bundle
func validate() throws {

}

struct project {
let developmentRegion = "en"
}
}

The R.swift version is : 7.1.0

@abramchuk-v
Copy link

Were you able to fix it?

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