Hi, I was wondering how can I access the previous version of this tutorial the one that uses JSQMessagesViewController instead of message kit? Iâd like to finish that one first then move on to this one, hope you can help me
Unfortunately we have a permanent redirect for the old tutorial to this new one. You might be able to find a cached version on https://archive.org, but we donât support that tutorial anymore.
Type âUIResponderâ has no member âkeyboardWillShowNotificationâ
Type âUIResponderâ has no member âkeyboardWillHideNotificationâ
Type âUIResponderâ has no member âkeyboardFrameEndUserInfoKeyâ
Type âUIResponderâ has no member âkeyboardAnimationDurationUserInfoKeyâ
Type âUIResponderâ has no member âkeyboardAnimationCurveUserInfoKeyâ
Type âUIResponderâ has no member âkeyboardAnimationDurationUserInfoKeyâ
Type âUIResponderâ has no member âkeyboardAnimationCurveUserInfoKeyâ
âLaunchOptionsKeyâ is not a member type of âUIApplicationâ
Use of undeclared type âMessageDataâ
It looks like youâre getting those errors because youâre using Xcode 9. Update to Xcode 10 and those errors should go away, also make sure that you run pod install to get the MessageKit and Firebase dependencies.
Hi guys, it looks like there were some breaking changes in MessageKit. MessageData enum was renamed to MessageKind and changed MessageTypeâs data property name to kind.
Also associated value for the MessageData.photo was changed from UIImage to new MediaItem protocol
So in order to compile and proceed with the starter project, I changed RWRC/Models/Message.swift, and replaced var type: MessageType with var kind: MessageKind
then temporarily added the UIImage extension, which implements the MediaItem protocol. something like following:
extension UIImage: MediaItem {
public var url: URL? { return nil }
public var image: UIImage? { return self }
public var placeholderImage: UIImage { return self }
public var size: CGSize { return CGSize.zero }
}
struct Message: MessageType {
...
var kind: MessageKind {
...
}
I assume there will be many more breaking changes in MessageKit going forward as well. You wonât run into this issue though by following along with the tutorial sample project and running pod install which will use MessageKit (0.13.1) from the Podfile.lock that this tutorial was written with.
You can of course continue to stay up to date with MessageKit, but it will be some additional work.
I hope you can help me. I get 61 red errors from MessageKit when I run the code after installing Firebase/Firestore and the podfile in Xcode 10 Beta 5. I specifically installed MessageKit 0.13.1 in the pod file.
Example:
Controllers/MessagesViewController.swift:131:93:
âUICollectionElementKindSectionFooterâ has been renamed to âUICollectionView.elementKindSectionFooterâ
I only get the same errors as mubeeanasif01, when I run it as Xcode 9, who posted some days ago.
Hey Guys I just finished up this tutorial. And there were some problems.
First of all with Xcode 10 Beta 5 there are some problems with opening the starter Project. As some people said there are 47-50 compile errors in the MessageKit Pod. This is because MessageKit was written in Swift 4.0 and Xcode 10 Beta 5 tries to compile it in Swift 4.2. In Swift 4.2 there were some changes to the Semantics of the language again.
So to make this work you need to go to your Pods in your left side Navigator in Xcode. Then select under TargetsMessageKit. Then select Build Settings in the Top Menu. In Build Settings scroll down all the way to Swift Compiler Language . There you have to set the Swift Language Version from Swift 4.2 to Swift 4 . I have included a Screenshot to show you how this should look and how to find it (look at the highlights).
Another problem is in the uploadImage() function of the ChatViewController .
there is an issue at the completion at the bottom of the function in the Tutorial In : completion(meta?.downloadURL())
downloadURL() was deprecated for CloudStorage 16.0.1. Maybe the Author should update the example code.
Until then you could just use CloudStorage Version 15.0.2 in your Podfile
Hello @ricen, @gmanog, @tben2010 thanks for your patience. The tutorial has been updated to fix an issue related to how Xcode 10 handles the swift version MessageKit. Please re-download and re-run pod install.
The project have been updated to address this issue with Xcode 10 beta 5. You shouldnât run into any deprication issues with downloadURL() using FirebaseStorage (2.1.2) which the tutorial uses according to the Podfile.lock.