I have code which generates resources which I want to save in a subdirectory of my $(PROJECT_DIR). How do I get the real path from this environment variable in code?
open the projects build settings and add SAVEPATH=@\"$(PROJECT_DIR)\"
to the preprocessor macros.
Then you can get the project directory like this:
NSString *projectDir = SAVEPATH;
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