How can I add file to project in Xcode 9?

后端 未结 5 654
旧时难觅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:34

    Although this is not resource related (images, etc). The issue that I'm currently facing with the Xcode 9.0 GM build is that adding the items to the project does not actually added them to my targets, although I selected them.

    Step 1 - Add Files to Project

    Add New Files and Select your targets

    Step 2 - View Files in File Inspector

    You can clearly see in the file inspector that it is not added to those targets accordingly.

    Step 3 - [Fix] Add New Added File to Targets

    To Fix this, just check the targets that the files should be added to and you should be good :)

提交回复
热议问题