`import Collections` does make no sense errors.

I downloaded package, I can see it in Package Dependencies tab, [swift-collections | https://github.com/apple/swift-collections.git | Up to Next Major Version] — looks OK.

But (quite strange):

import Collections //🛑 No such module 'Collections'

typealias Objects = OrderedSet<anyHashable> // No error

I took Collection word from a list or typed — no difference.

if I remove import Collections there is no OrderedSet anymore (of course)

Can't compile. Cleaned build folder, restarted Xcode...

What could be wrong with it? Any ideas?

Answered by ludzik in 873947022

OK. Collections was not added to my target.

Accepted Answer

OK. Collections was not added to my target.

&#96;import Collections&#96; does make no sense errors.
 
 
Q