1

I have a error to import "AVFoundation" on Xcode8 in my Class "class InterfaceController: WKInterfaceController". What is the reason ? , I updated my Xcode and have now Watchos3,swift3 and Xcode8!

Error is "Could not build Objective-C module"

Ketan P
  • 4,259
  • 3
  • 30
  • 36
Osman
  • 1,496
  • 18
  • 22
  • Please show us the code, explain in more details when the error occurs ("an error to import" sounds unclear) – YakovL Sep 16 '16 at 18:15
  • @YakovL -It is no more Details, i just wanna import the Framework in top of the file it comes to an error while typng "import AVFoundation"... – Osman Sep 17 '16 at 11:55
  • @SteveJohn you can check my answer below... – Ketan P Sep 19 '16 at 07:21

1 Answers1

0

I got same issue but I was able to solve it with following steps :

  • Just Clear The Derived Data Contents From Xcode.
  • Quit and Restart XCode.

For Clear Derived Data you can use following steps or another SO link.

Step 1 : Click on Xcode > Preferences...

Step 1 :

Step 2 : Select Location

enter image description here

Step 3 : Delete Derived Data from its Folder...

enter image description here

Hope it will help you...

Community
  • 1
  • 1
Ketan P
  • 4,259
  • 3
  • 30
  • 36