gpt4 book ai didi

cocoa - 从 cocoa 项目中删除了 ViewController.h 和 viewController.m

转载 作者:行者123 更新时间:2023-12-03 17:23:53 26 4
gpt4 key购买 nike

我做了移至垃圾选项,现在其他 files.h 无法导入 viewcontroller.h。我如何将其放回到我的项目中?

最佳答案

使用 finder,将它们从垃圾箱中移出,并与其余源文件一起返回到项目目录,然后在 xCode 中,Right-Click (或用两根手指单击触摸板)在一个组上并选择 'Add Files to <Project Name>'

在源目录中找到文件(应该很容易,该对话框会将项目中已有的文件显示为灰色)并选中框 copy files into destination's group folder (if needed)

确保在 Add to targets框突出显示您的目标(不是测试目标,只是主要目标),然后单击 Add按钮

关于cocoa - 从 cocoa 项目中删除了 ViewController.h 和 viewController.m,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12255111/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com