Getting path for resource in Command Line Tool

后端 未结 1 1162
时光说笑
时光说笑 2021-01-02 16:31

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:

  • The resource, file.xyz, has been dragged into the
相关标签:
1条回答
  • 2021-01-02 17:22

    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"

    0 讨论(0)
提交回复
热议问题