DrDoom
DrDoom

Reputation: 149

getting : use of "@import" when modules are disabled when importing Photos

I am trying to create a plugin for osx using the new photos framework. So I created a new Xcode project (using Version 7.1 (7B91b)), I chose the bundle template under osx and then integrated all my files in the project.

but at the line :

@import Photos;

I am getting the error : use of "@import" when modules are disabled.

I have looked online and found a lot of people having the same issue with different import. But their solution did not work for me. Here is what I have tried : - Added Photos.Framework in my build phase. - Enabled module in build settings (Enable Modules(C and Objective-C)). - Some people suggested to replace @import Photos by #import <....photo.h>, but I do not know which .h file to include like that

So does anyone know how to fix this issue?

Upvotes: 2

Views: 2325

Answers (0)

Related Questions