“No candidates found to host preview” error when iOS Widget Extension file is not in the main project
I’m trying to export an iOS Widget Extension as a CocoaPods library. Since adding a widget extension requires a target, I should create the target manually in the host project, then transfer the widget files to the repository. Therefore, the library will just vend raw files and not act as an extension.