3

I changed my project name with refractor on the side bar under Identity and type. Everything changed accordingly. However, my test target runs into an error:

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

What can I do to fix this? I am using iOS 8.

Eric Chuang
  • 1,017
  • 9
  • 26

1 Answers1

1

I've faced a similar problem today. You need to fix it manually. Search for GameTutorial-Prefix.pch and change it with your new name.

enter image description here

Anbu.Karthik
  • 77,564
  • 21
  • 153
  • 132
BoranA
  • 949
  • 10
  • 17
  • Just tried your method and ended up with a similar error: ld: file not found: /Users/E/Library/Developer/Xcode/DerivedData/GalaxyRun-gecyucqrichnavaryykscedfhltu/Build/Products/Debug-iphonesimulator/GameTutorial.app/GameTutorial clang: error: linker command failed with exit code 1 (use -v to see invocation) – Eric Chuang Dec 04 '14 at 13:01
  • You also need to change app name like Debug-iphonesimulator/NewName.app/NewName – BoranA Dec 04 '14 at 13:25
  • 1
    It's in linking section and you need to clean deriveddata after that. – BoranA Dec 04 '14 at 13:34
  • Man...XCode is the worst IDE I have ever used. – deusprogrammer Jul 09 '15 at 19:13
  • On the Apple App Store, Xcode is rated only 3 stars. :-D – Doug Null Oct 13 '16 at 16:25