I\'m trying to get the path of a resource in a Command Line Tool in Xcode (8 beta 2). Here\'s what I\'ve got:
As a workaround, you can use the absolute path of the source file For example if on iCloud drive :
let path = "/Users/myName/Library/Mobile Documents/com~apple~CloudDocs/myDirectory/file.xyz"