3

I encountered a weird problem.

I added the framework AVfoundation to the project, and included the header file as the third line below.

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

But I got "Could not build module AVfoundation" error when I tried to build the project.

I started a new project, then everything was alright. But several days later, the same problem occurred again.

The Xcode is Version 5.1 (5B130a).

Restarting Xcode or the computer do not solve the problem.

Chris Ding
  • 61
  • 3

1 Answers1

1

I got same problem but was able to solve it :

  1. Just Clear The Derived Data Contents(Can I safely delete contents of Xcode Derived data folder? ) From Xcode.

  2. Quit and Restart XCode.

Community
  • 1
  • 1
Dheeraj Singh
  • 5,143
  • 25
  • 33