Search code examples
iosxcodeimportheaderonedrive

Import .h files surrounded with <> symbols in xCode?


For example I need to import OneDrive SDK.

But I can't use cocoapods due to some reasons.

How to import this library as source files instead? The problem I have is all the import macro are surrounded with <>. For example this doesn't work:

#import <ADALiOS/ADUserInformation.h>

And this works:

#import "ADUserInformation.h"

But if it is possible to import them without of editing the source code?


Solution

  • For your header files, if you want to import with angle brackets, you should pass relative or the absolute path for your header directory to the compiler. Check this answer for more details.