如何在Xcode 9中将项目添加到项目中? [英] How can I add file to project in Xcode 9?

查看:264
本文介绍了如何在Xcode 9中将项目添加到项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在xcode 9中创建了一个新项目。

I created a new project in xcode 9.

我想将图像文件添加到项目中。

I want to add image file to project.

当我从桌面删除此文件时,

When I delete this file from desktop,

图像文件显示为红色?

但是在项目文件夹中,我找到了这个图像文件。

But in project folder, I find this image file.

< a href =https://i.stack.imgur.com/7GCNO.png =noreferrer>

在Xcode 8中工作正常,

In Xcode 8 its working fine,

任意想法?

推荐答案

Xcode 9允许Xcode中的文件夹与Finder结构中的文件夹同步。我认为这是一个错误,因为Xcode 9仍然处于测试阶段,如果需要,你正在复制复制项目。

Xcode 9 allows to have folders in Xcode synced with folder in your Finder structure. I assume this is a bug since Xcode 9 is still in beta and you are "ticking" the Copy items if needed.

尝试自己将图像移动到项目文件夹中将它从那里拖到Xcode。

Try moving the image to your project folder yourself and drag it from there to Xcode.

这是你可以做的事情,如果需要的话,你可以自行复制复制项目。

This is what you would do to leave the Copy items if needed box unticked since you are doing it yourself.

这篇关于如何在Xcode 9中将项目添加到项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆