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!
$(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.
The sequence ..
refers to the parent directory in almost all operating systems.
$(SRCROOT)/../OtherPath
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With