Im using a swift package which has textfield xib, some storyboards as resources. My question here is I'm trying to present a viewController through segue which is in swift Package. In storyboard reference I have given the storyBoard name "Login" and given the Bundle as "Sample". while calling performSegue Im getting crash saying that Login storyboard not present in NSBundle. it automatically taking the NSBundle not the Sample_Sample.module. How to solve this?
Asked
Active
Viewed 103 times
1
-
Have you made sure that the VC in the swift package has the current target you are working in? – Visal Rajapakse Sep 15 '21 at 10:40
-
See if this helps -> https://stackoverflow.com/questions/23622492/could-not-find-a-storyboard-named/23622657 – Visal Rajapakse Sep 15 '21 at 10:41
-
@VisalRajapakse I have given `Sample` as Module name and unchecked **Inherit from Module Target** in Swift Package Storyboard. still getting crash. – Sarath Sep 15 '21 at 10:52
-
This answer seemed to solve it for me https://stackoverflow.com/questions/58000140/swift-package-manager-storyboard-bundle – iosCT Mar 16 '22 at 16:05