I load my project from xcode 5 to xcode 6 and see error myProject-prefix.pch is not found in myProjectTests, I add this file and see new error
Ld /Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Products/Debug-iphonesimulator/Мобильный\ Extreme\ FitnessTests.xctest/Мобильный\ Extreme\ FitnessTests normal x86_64
cd /Users/willrock/Desktop/ExtremeFitness
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Products/Debug-iphonesimulator -F/Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/Developer/Library/Frameworks -filelist /Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Intermediates/Мобильный\ Extreme\ Fitness.build/Debug-iphonesimulator/Мобильный\ Extreme\ FitnessTests.build/Objects-normal/x86_64/Мобильный\ Extreme\ FitnessTests.LinkFileList -bundle_loader /Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Products/Debug-iphonesimulator/extreme_fitness.app/extreme_fitness -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework XCTest -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Intermediates/Мобильный\ Extreme\ Fitness.build/Debug-iphonesimulator/Мобильный\ Extreme\ FitnessTests.build/Objects-normal/x86_64/Мобильный\ Extreme\ FitnessTests_dependency_info.dat -o /Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Products/Debug-iphonesimulator/Мобильный\ Extreme\ FitnessTests.xctest/Мобильный\ Extreme\ FitnessTests
ld: file not found: /Users/willrock/Library/Developer/Xcode/DerivedData/Мобильный_Extreme_Fitness-cdfxpafcwvsczkfjvlwznradvmhm/Build/Products/Debug-iphonesimulator/extreme_fitness.app/extreme_fitness
clang: error: linker command failed with exit code 1 (use -v to see invocation)
if i load project see in xctest
clang: error: no such file or directory: '/Users/willrock/Desktop/ExtremeFitness/extreme_fitness/extreme_fitness-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
but in xcode 5 is work fine
There are a lot of reasons for this issue and I had my own hits.I had to do two steps for my project to run.May be it can be helpful for others.
Path->
Target> Build Settings > Prefix Header.
Deleted the Your Project Tests file in the Targets.
screen shot for the second point.
Reference: http://www.buzztouch.com/forum/thread.php?tid=F42D8239A330C321132944A¤tPage=3
Here is a description what you should do
Click on the first folder under the blue page with the project name. The folder with also have the project name next to it.
File > New File > iOS > Other
Click on
PCH File
Click
Next
Save As:
PrefixHeader
Click the first checkbox under
Targets
ONLY; if others are checked, uncheck themClick
Create
If the
Prefix Header
" file ended up in a different folder, such as theSupporting Files
folder, move it up to the top folder you clicked on in step 1Click on the blue page at the top of the left sidebar with the project name next tot it. This is just above the folder you clicked on in step 1
Click on the
Build Settings
tabIn the search bar, type in,
Prefix Header
and press theReturn/Enter
keyLook for
Apple LLVM 6.0 or 7.0 - Language.
6.0 refers to Xcode 6 and 7.0 refers to Xcode 7. This makes no difference.Make sure
Increase Sharing of Precompiled Headers
is set toNo
and thatPrecompile Prefix Header
is set toNo
Find the
Prefix Header
line just under thePrecompile Prefix Header
Line. Move the cursor over about 5 inches, but stay on the same line. Double-Click. A box will open.Type in the name of your project (this is stated next to the folder you clicked on in step 1)
Example) Prereq for Overdue Assignment It is VERY IMPORTANT that you type in capitals where needed such as "P" in "Prereq." It is case sensitive. Now, put in forward slash (
/
). Then type in the name of the file you created in steps 2-7 (Again, this is Case Sensitive and you must put spaces where needed). I recommend that you leave the file asPrefixHeader
(no spaces). After the filename, such asPrefixHeader
, type in.pch
ALL lower case.The final result should look something like this:
Prereq for Overdue Assignment/PrefixHeader.pch
Now, click on the
Product
menu (6 menus over from the file menu you clicked on in step 2). Then click onClean
You can bypass this step by holding command, shift, and K at the same time. Once you get the message,
Clean Succeeded,
move on to step 18.Click on the
Product
menu and go down toBuild
. Click onBuild
.You can bypass this step by holding
command
andB
at the same time. You should getBuild Completed.
Thats it!