2

After changing my app's name per Technical Q&A QA1625, I get this error message:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ld: file not found: /Users/.../Xcode/DerivedData/.../Build/Products/Debug-iphonesimulator/oldName.app/oldName

This directory has the correct names, i.e. newName.app/newName... Why is Xcode looking for oldName? I'm extremely reluctant to hack this by renaming these files manually. I have looked through the other StackOverflow questions and nothing there seems to work.

How can I fix this?

Thanks

Carl Carlson
  • 500
  • 4
  • 17
  • Try going to Xcode -> Window -> Organizer and deleting the derived data for your app. – Msencenb Feb 09 '15 at 20:01
  • It might me obvious, but have you cleaned your project before trying to build it? – Nicolas S Feb 09 '15 at 20:39
  • I tried both. Didn't work. Thanks for trying though. – Carl Carlson Feb 09 '15 at 22:23
  • Here is a hack that worked. I Went to: Basic + Combined/Build Settings/Testing/Test host/Debug/ and changed oldName to newName. I sure would like to know if there is some other deeper problem that will nail me a some future time. thanks again folks – Carl Carlson Feb 09 '15 at 22:32

1 Answers1

1

I meet the same problem. I solve it by following Renaming iOS project in xCode 5

which says you need also rename the schema name.

Hope this helps :) BTW, I am using Xcode 6.3.2.

Community
  • 1
  • 1
Jay
  • 11
  • 1