xcode - How to change #import "..." into #import <...> in Objective C -


i have problem library. want add objective c (ios) project, docs don't how that. copied over. main file has this:

#include <lib/class1.h> #include <lib/class2.h> ... 

it didn't work me, changed each <> "":

#include "lib/class1.h" #include "lib/class2.h" ... 

and syntax works fine, can use lib. guess it's not practice, though. how should add library project works without modification?

in xcode build setting, header search paths (header_search_paths) affects search path of #include <foo.h>, user header search paths (user_header_search_paths) affects search path of #include "foo.h".

so, set header_search_paths library's header path, #include <lib/class1.h> should work.

also, search user paths (always_search_user_paths) setting can change behavior search path #include <foo.h>. when always_search_user_paths yes, #include <lib/class1.h> should work well.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -