SwiftKickMobile / SwiftMessages

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

Fix Unknown class in IB file #437

Closed kenji21 closed 3 years ago

kenji21 commented 3 years ago

Moved from Carthage to SPM 8.0.3, got this error:

2020-11-20 07:03:46.900571+0100 SMBug[59274:20398880] [Storyboard] Unknown class _TtC27SwiftMessages_SwiftMessages18CornerRoundingView in Interface Builder file.

It's due to "Inherit from module target" being ticked

Just created a new Project, added SwiftMessage in project using SPM, and this line of code:

let view = MessageView.viewFromNib(layout: .tabView)

SMBug.zip

wtmoose commented 3 years ago

I'll need to look into this. The "inherit from module target" was a change for #412 that eliminated a warning.

wtmoose commented 3 years ago

The "inherit from module target" change was a bad change. The module needs to be explicitly set to "SwiftMessages" in case the nib files are copied out of the framework. Merging this.

kenji21 commented 3 years ago

can a bug fix version could be tagged to move my SPM dependency back to your repository in my project ?

wtmoose commented 3 years ago

8.0.4