0

I need to transfer all resources to SPM. Strings and assets of images are fine, but xibs and storyboards are a problem. At the same time, information about them appears in the R.generated file in the form of messages: "// This _R.nib struct is generated, and contains static references to 50 nibs." "/// This _R.storyboard struct is generated, and contains static references to 17 storyboards." But opposite the lines generated for xibs and storyboards there is an error like "Cannot find type 'SomeView' in scope", "Cannot find type 'SomeViewController' in scope" and accordingly, due to these errors, R.nib, R.Storyboard and R.reuseidentifier are not available.

I'm trying to call RswiftGenerateResourcesCommand RswiftModifyXcodePackages commands, but it had no effect

Please advise what can be done in such a situation.

1 Answer 1

0

I figured out the problem myself. It is likely that the library works with storyboard with swift-file or xib with swift-file file pairs. If you transfer them in pairs to SPM, then resources are generated.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.