In some cases it can be really helpful to provide a short example of your code.
If so, please wrap these code blocks in backticks, like this:
Undefined symbols for architecture x86_64:
"MessageKit.MessageLabel.defaultAttributes.unsafeMutableAddressor : Swift.Dictionary<__C.NSAttributedStringKey, Any>", referenced from:
Movieiness.ConversationViewController.detectorAttributes(for: MessageKit.DetectorType, and: MessageKit.MessageType, at: Foundation.IndexPath) -> Swift.Dictionary<__C.NSAttributedStringKey, Any> in ConversationViewController.o
ld: symbol(s) not found for architecture x86_64
I found the below solution, what do you think?
func detectorAttributes(for detector: DetectorType, and message: MessageType, at indexPath: IndexPath) -> [NSAttributedStringKey: Any] {
//return MessageLabel.defaultAttributes
var attributes : [NSAttributedStringKey : Any] = [:]
attributes[NSAttributedStringKey.foregroundColor] = UIColor.darkText
attributes[NSAttributedStringKey.underlineStyle] = NSUnderlineStyle.styleSingle.rawValue
attributes[NSAttributedStringKey.underlineColor] = UIColor.darkText
return attributes
}
We're working on Swift 4.2 support @mrhaxic 馃憤 Thanks for opening this
Hey @SD10
is there any branch for Swift 4.2 that we can use to anticipate the update ?
Thanks
EDIT: I found this haha

I will try the secret branch ;)
EDIT2: MessageInputBar is not updated in any branch :/
I can push some updates for MessageInputBar. One can be an update to 4.2
Sent with GitHawk
Hey, I did a fork on my side, if needed I can create a PR for MessageInputBar
@gorbat-o I have quite a few bugs and updates to merge first
Sent with GitHawk
No problem :)
lol I'm using sd10/MessageKit secret-branch for work right now 馃槀 Very dangerous branch to use because it's whatever I need it to be
My updates on MessageInputBar are on port-updates
the day it will be released, it is going to be fun 馃槀
@gorbat-o https://github.com/MessageKit/MessageInputBar/tree/swift4.2
Just specify the branch in your pod file
What i've found (since the same issue appears when i update my pods) is to into the pod, open build settings and set the version of swift to 4.2, then it just works. So when i update cocoa pods message kit comes through in swift 4.0. My project is currently swift 4.2.
@Guy783 Please do not ask duplicate questions in separate threads. You already asked this in #975
Sent with GitHawk
Most helpful comment
lol I'm using
sd10/MessageKit secret-branchfor work right now 馃槀 Very dangerous branch to use because it's whatever I need it to be