How can I add file to project in Xcode 9?

后端 未结 5 653
旧时难觅i
旧时难觅i 2020-12-16 15:58

I created a new project in xcode 9.

I want to add image file to project.

When I delete this file from desktop,

Image file appears i

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 16:24

    I have seen this issue in Xcode 9.0 GM (build 9A235, same as the current release). It's intermittent; sometimes 'Copy items if needed' is honored, sometimes not.

    In one case it seemed to be triggered by the presence of source control. I was working through an online tutorial where the provided project had no source control. Adding files here did honor the 'copy items' checkbox, but if I made the provided project a git repository first, adding files ignored the checkbox every time.

提交回复
热议问题