1

When I am trying to import VisualRecognitionV3 in Xcode it gives me the error:

module compiled with swift 3.0 cannot be imported in swift 3.0.2

Here is a screenshot:

enter image description here

Does anyone know how to fix it?

Chris Snow
  • 23,813
  • 35
  • 144
  • 309
James Dacombe
  • 55
  • 1
  • 1
  • 6
  • Welcome to stackoverflow. Please visit the help section to understand what type of questions you can ask and how to write a good question, http://stackoverflow.com/help/asking. Questions not meeting the criteria usually get closed and removed. – Chris Snow Jan 08 '17 at 16:32
  • Can you provide more information on your environment by running `xcodebuild -version` and `swift --version` from the command-line? Also, can you try again after rerunning carthage and importing the frameworks into your project, to ensure that the frameworks are built with these same versions? – Karl Weinmeister Jan 09 '17 at 22:32

1 Answers1

1

This is similar to the version issue seen here. Basically, refraining from using the precompiled binaries when calling carthage will fix the issue so use the following carthage command - "carthage update --platform iOS --no-use-binaries"