Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set parent path of $(SRCROOT) in Xcode

Tags:

xcode

From the http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html%23//apple_ref/doc/uid/TP40003931-CH3-SW38, we can find Xcode's build settings like $(SRCROOT). But in my case, the header files is in a parent folder of $(SRCROOT). Is there a way to access that without put in the absolute path?

Thanks!

like image 288
user1135111 Avatar asked Jan 25 '13 17:01

user1135111


People also ask

What is Srcroot in Xcode?

$(SRCROOT) (aka $(SOURCE_ROOT) ) is a path to your location where a . xcodeproj is. It is simple to check, just put it in a field and Xcode gives you a tip. Follow this answer to receive notifications.


1 Answers

The sequence .. refers to the parent directory in almost all operating systems.

$(SRCROOT)/../OtherPath
like image 55
Jim Avatar answered Sep 27 '22 21:09

Jim