Rocket.Chat.iOS pod errors


#1

Hi. I’m trying to build Rocket.Chat.iOS sources from 21.09.2018

After installing project pods Xcode gives me 8 Swift Compiler errors, pointing to DifferenceKit pod.

For example, two of them :
Extension of type ‘StagedChangeset’ with constraints cannot have an inheritance clause
Binary operator ‘==’ cannot be applied to two ‘ContiguousArray<Changeset>’ operands

Pointing at StagedChangeset.swift code :

    extension StagedChangeset: Equatable where Collection: Equatable {
    public static func == (lhs: StagedChangeset, rhs: StagedChangeset) -> Bool {
        return lhs.changesets == rhs.changesets
    }
} 

macOS 10.12.6
Xcode 9.2

What i did wrong ? I just downloaded source code without changes.


#2

Hi @zhenia.galiuk !

We have updated our source for Swift 4.2. Please update to Xcode 10. Don’t forget to pod install and clean the build folder ⇧⌘K before subsequent compilation after updating.


#3

Problem solved

Installed macOS 10.13.6, Xcode 10