archagon / crdt-playground

http://archagon.net/blog/2018/03/24/data-laced-with-history/
295 stars 20 forks source link

Compile error with Xcode 9.3.1 (9E501) #2

Open aral opened 6 years ago

aral commented 6 years ago

Initially got a compile error due to Team/Signing (easy enough to fix).

Then the following:

screen shot 2018-05-14 at 15 53 47
Swift Compiler Error Group
/Users/aral/sandbox/crdt-playground/CRDTPlayground/External/BinaryCodableExtensions.swift:42:1: Type 'Element' does not conform to protocol 'Decodable'
/Users/aral/sandbox/crdt-playground/CRDTPlayground/External/BinaryCodableExtensions.swift:42:1: 'BinaryDecodable' requires that 'Element' conform to 'Decodable'
/Users/aral/sandbox/crdt-playground/CRDTPlayground/External/BinaryCodableExtensions.swift:42:1: Requirement specified as 'Element' : 'Decodable'
/Users/aral/sandbox/crdt-playground/CRDTPlayground/External/BinaryCodableExtensions.swift:42:1: Requirement from conditional conformance of 'Array<Element>' to 'Decodable'
/Users/aral/sandbox/crdt-playground/CRDTPlayground/TestingExtras/Data Interfaces/CausalTreeBezierWrapper.swift:450:16: Cannot invoke initializer for type 'AnyCollection<_>' with an argument list of type '(LazyMapSequence<LazyFilterSequence<EnumeratedSequence<Weave<DrawDatum>.AtomsSlice>>, WeaveIndex>)'
/Users/aral/sandbox/crdt-playground/CRDTPlayground/TestingExtras/Data Interfaces/CausalTreeBezierWrapper.swift:450:16: Overloads for 'AnyCollection<_>' exist with these partially matching parameter lists: (AnyCollection<Element>), (AnyBidirectionalCollection<Element>), (AnyRandomAccessCollection<Element>)
malcommac commented 5 years ago

same here

macteo commented 5 years ago

I've added support for Xcode 10.1 and Swift 4.2 in the #3 PR

macteo commented 5 years ago

This is now possible thanks to Conditional Conformance on Swift 4.2.

Cyclic commented 4 years ago

Any chance you can get this to compile with Xcode 11.4.1 ?