clang: error: no such file or directory: '/Users/matt/Documents/Xcode/GraphicalSet/GraphicalSet/SetTests/GraphicalSetTests/GraphicalSetTests.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I tried adding a removing the GraphicalSetTests.m file from compile sources in build phases but to no avail.
There are two extra folders in that path: SetTests/GraphicalSetTests
Go to your ProjectTests - > Build Phases -> Compile Sources
Remove this file ProjectTests.m and try to build again.
Related
I want to add unit test target to my Xcode project which consist of lots of sub-projects. I'm adding test target to my main project. After I add it, I can't build it from test target (I can successfully build app target, just can't build test target).
Some settings are not default;
Build Active Architecture Only -> Yes (On my main target)
Test Target iOS Deployment Target -> 10.3
I'm getting below error
ld: can't link with a main executable file '/Users/emreonder/Library/Developer/Xcode/DerivedData/MyAppWorkspace-gdwblguzoliffpbypfnfrxayzvpe/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation
Linker command failed with exit code 1 (use -v to see invocation)
I'm using Xcode 11.
While trying to build my React Native project to test on my phone, I get multiple clang: error: no such file or directory for various files. In total I'm receiving around 11 separate errors which will be listed below.
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTBlob.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTAnimation.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTActionSheet.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTGeolocation.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTImage.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTLinking.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTNetwork.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTSettings.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTText.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTVibration.a'
clang: error: no such file or directory: '/Users/bsoleimany/Library/Developer/Xcode/DerivedData/{projectname}-bgjrrdizntqvulcjdjliktxgrpkw/Build/Products/Debug-iphoneos/libRCTWebSocket.a'
I have already tried switching Build Settings -> Build Active Architecture Only to Yes which gets rid of the errors above but then displays this new error
ld: library not found for -lRNPhotoView
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I looked around for a little but I couldn't find any information about the above error, does anyone know how to get rid of these?
Any suggestions on how to solve this would be greatly appreciated!
Wanted to ask a few clarification is are you trying to archive OR build a release version?
Answering that may help to see whats wrong BUT try unchecking the parallize build.
I encounter that error when i was trying:
1. To archive
2. My case was the build was trying to build at the same time and missed out some library when building. Deactivating that causes the build to run slower BUT making sure the React Library is build first, then the Xcode project. Hope this helps though i had this problem for 1 whole day.
ld: library not found for -lHKDisplayModel
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This error is because of some missing libraries in your project.
Check in your Build Phases -> Link Binary With Libraries. Any of your framework may had been removed from there.
If you have imported any files into project then check .m (main) file for same does exists in Targets (Project Name) -> Build Phases -> Compile Sources.
If file does not exists then include it using (+) Add button shown. Also, if duplicate files exists (if any) then delete it.
Also check in Build Phases -> Copy Bundle Resources, if any file is displayed in a red color, then remove it and add it again.
Now press cmd+shift+k to clean the project. New Build should not display this error.
Upon creating a new project I named it o-golfer ( same as my project name )
Then I modified the Identity name to Application
Now when building it again, I get the Apple LLVM 5.0 error, as the cached precompiled header is trying to find again
Is there a way to clear and rebuild this cached header ?
I already tried to clean and build again the project ... same error
clang: error: no such file or directory: '/Users/yves/Developpement/iOS7/OPTIMAL/o-golfer/o-golfer/o-golfer-Prefix.pch'
Here is the error log :
ProcessPCH /Users/yves/Library/Developer/Xcode/DerivedData/o-golfer-cbxwkyokboekvvbscnyxjekgcqyf/Build/Intermediates/PrecompiledHeaders/o-golfer-Prefix-dnguhwlesygrvffouxoeiklsfygm/o-golfer-Prefix.pch.pch o-golfer/o-golfer-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/yves/Developpement/iOS7/OPTIMAL/o-golfer
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/
...
clang: error: no such file or directory: '/Users/yves/Developpement/iOS7/OPTIMAL/o-golfer/o-golfer/o-golfer-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Make sure the "Prefix Header" build setting (to get to this, click on your project file in the navigator on the left, then go into the "Build Settings" tab) is set to the correct file name.
I had the same problem, make sure you change the prefix header in your project target and in your "app_name" target and "app_tests" target as well, as one of these being different will still throw the error. Hope this helps ;)
I'm having some difficulties in running the gbible Xcode Project. More precisely, I get the following error message:
clang: error: no such file or directory:
'/Users/xxxx/Documents/xxxxx/gbible/gbible/PKAppDelegate.m' clang:
error: no input files Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
failed with exit code 1
Any ideas/suggestions on that?
Source link
https://github.com/photokandyStudios/gbible
It's says that there is no file named "PKAppDelegate.m", and in repo i see that is missed. Try to donwload repo from another branch "v1.3:
git clone -b v1.3 https://github.com/photokandyStudios/gbible.git