marmelroy / FileBrowser

Finder-style iOS file browser written in Swift
MIT License
1.52k stars 219 forks source link

Xcode error: Cannot call value of non-function type 'module<FileManager>'. What am I doing wrong? #23

Closed bogdankosh closed 7 years ago

bogdankosh commented 7 years ago

When I try to use FileBrowser and try to create FileBrowser as suggested in README like this: let fileBrowser = FileBrowser() I get an error: Cannot call value of non-function type 'module'. Importing FileBrowser gives a warning: File 'ViewController.swift' is part of module 'FileBrowser'; ignoring import. Am I missing something fundamentally important?

marmelroy commented 7 years ago

Hi @bogdankosh, I will need some more details to help. Did you install with Cocoapods / Carthage / manually? Which version of FileBrowser? What version of Swift does your app run (2.3 or 3.0)?

bogdankosh commented 7 years ago

Hi, @marmelroy. FileBrowser v 0.2.0, installed with Cocoapods, Swift 3.0 (Xcode 8.1)

marmelroy commented 7 years ago

Is your app's name FileBrowser? 🤔

Because that's what the error message suggests.

bogdankosh commented 7 years ago

@marmelroy That's exactly what it is, tried with different name and it worked. Many thanks and really sorry to bother you with those dumb questions. Best of luck.

marmelroy commented 7 years ago

No worries 😄