【问题标题】:Project won't run after name change更改名称后项目不会运行
【发布时间】:2014-12-04 21:03:43
【问题描述】:

我在身份和类型下的侧栏上使用折射器更改了我的项目名称。一切都随之改变。但是,我的测试目标遇到了错误:

clang: error: no such file or directory:'/Users/E/Downloads/GalaxyRun/GameTutorial/GameTutorial-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

我能做些什么来解决这个问题?我正在使用 iOS 8。

【问题讨论】:

  • 您是如何重构项目名称的?
  • 单击我的项目,在右侧边栏的身份和类型下,我更改了名称并为我重构了 Xcode。 @holex
  • 为什么不手动重命名.pch 文件?
  • 刚刚试了一下,还是一样的错误

标签: ios xcode6 rename


【解决方案1】:

我今天遇到了类似的问题。您需要手动修复它。搜索 GameTutorial-Prefix.pch 并将其更改为您的新名称。

【讨论】:

  • 刚刚尝试了您的方法并以类似的错误结束:ld:找不到文件:/Users/E/Library/Developer/Xcode/DerivedData/GalaxyRun-gecyucqrichnavaryykscedfhltu/Build/Products/Debug-iphonesimulator /GameTutorial.app/GameTutorial clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
  • 您还需要更改应用名称,例如 Debug-iphonesimulator/NewName.app/NewName
  • 它在链接部分,之后你需要清理派生数据。
  • Man...XCode 是我用过的最糟糕的 IDE。
  • 在 Apple App Store 上,Xcode 仅被评为 3 星。 :-D
猜你喜欢
  • 2014-10-25
  • 1970-01-01
  • 2018-09-30
  • 1970-01-01
  • 1970-01-01
  • 2012-06-04
  • 2013-10-28
  • 2015-04-18
相关资源
最近更新 更多