SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.24k stars 742 forks source link

SPM issue: Could not load NIB in bundle #415

Closed Yoloabdo closed 3 years ago

Yoloabdo commented 3 years ago

I've tried to install the package with SPM and got this error

** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle <> (loaded)' with name 'CardView''

I'm not sure what's wrong here but I think integrating SPM has something to do with it, any thoughts?

wtmoose commented 3 years ago

The answer depends on if you're using Xcode 11 or 12. See #395. Does this help?

Yoloabdo commented 3 years ago

Awesome! Thank you very much. It can be added it to the readme file to make it easier for anyone maybe?

wtmoose commented 3 years ago

Well, it won't be an issue when I release the Xcode 12 support shortly. So I probably won't reference #395 in the readme.

jerometonnelier commented 3 years ago

hi @wtmoose ;-) Quick question too : I'm trying to make a wrapper around SwiftMessages and therefore, I created a Swift Package that has SM as a dependency. However, I'm not able to load the MessageView or any NIB from SM. Ido you think it's a xcode12/SPM issue that will be addressed shortly or is it something else ? Thanks.