0

I am working on Server side swift (Perfect 2.0). Is there a way to get access to Xcode's build setting variable "$(PROJECT_DIR)" or "$(SRCROOT)" with out using any CocoaTouch frameworks. i.e CoreFoundation. ?

what actually I want is to access my project's root directory from code. but Using NSBundle won't work because its not CocoaTouch

Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
  • Why do you need to access it at runtime? And you can use foundation if you want and you're going to in the server on Mac OS – Wain Sep 25 '16 at 23:44
  • @Wain : Now i know that i don't. when i posted this question i didn't know that. – Pawan Joshi Sep 26 '16 at 04:58

1 Answers1

0

I would suggest using Perfect's file and directory handling. https://www.perfect.org/docs/file.html

Jono Guthrie
  • 213
  • 2
  • 9