I'm trying to make an archive (ipa) for my iOS (iPhone) app but I'm receiving a strange error:
Apple LLVM Compiler 3.1 error clang: error: no such file or directory: 'armv6' Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Does anyone know how i can fix this?
http://i.imgur.com/PKOHx.png
ProcessPCH /Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/PrecompiledHeaders/myapp-Prefix-cgigtilzpjcadpbgpxbabnqczfxd/myapp-Prefix.pch.pth myapp/myapp-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/wazapi/Downloads/myapp 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/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-conversion -Wno-sign-conversion -mthumb "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=5.0 -iquote /Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/myapp-generated-files.hmap -I/Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/myapp-own-target-headers.hmap -I/Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/myapp-all-target-headers.hmap -iquote /Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/myapp-project-headers.hmap -I/Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos/include -I/Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/DerivedSources/armv7 -I/Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/IntermediateBuildFilesPath/myapp.build/Release-iphoneos/myapp.build/DerivedSources -F/Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/BuildProductsPath/Release-iphoneos -F/Users/wazapi/Downloads/myapp armv6 --serialize-diagnostics /Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/PrecompiledHeaders/myapp-Prefix-cgigtilzpjcadpbgpxbabnqczfxd/myapp-Prefix.pch.dia -c /Users/wazapi/Downloads/myapp/myapp/myapp-Prefix.pch -o /Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/PrecompiledHeaders/myapp-Prefix-cgigtilzpjcadpbgpxbabnqczfxd/myapp-Prefix.pch.pth -MMD -MT dependencies -MF /Users/wazapi/Library/Developer/Xcode/DerivedData/myapp-hjzccpnbaymgcufalpjtfeuqvjvu/Build/Intermediates/ArchiveIntermediates/myapp/PrecompiledHeaders/myapp-Prefix-cgigtilzpjcadpbgpxbabnqczfxd/myapp-Prefix.pch.d
OK, what you need to do is go to build settings and scroll down to :
Apple LLVM Compiler 3.1 - Language
Search in the table for 'other c flags
'. What you see is armv6
? Right? :)
Change armv6
to: -DNS_BLOCK_ASSERTIONS=1
Good luck, Nathan
[Your project]
under Targets.Build Settings
.That should do it :)
(I also had some files missing, look at your build log and make sure there are no other errors above the one mentioned for this question)
Good luck!
P.S. - May Xcode die a slow and painful death!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With