How do I use a relative path in Xcode project settings?

后端 未结 6 1938
慢半拍i
慢半拍i 2021-01-30 10:24

How do I use a relative path in Xcode project settings?

6条回答
  •  醉梦人生
    2021-01-30 10:58

    Using Xcode 9:

    It may be intended for Xcode to always use relative file paths based on the directory that contains the xcodeproj, but sometimes this does not seem to be true, and in my case this may have been due to the fact that the project (directory and all) was copied from an earlier version. I had to do:

    Target(top left)->Edit Scheme->Use Custom Working Directory

    and then specify to use the directory containing my project file.

提交回复
热议问题