Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode command line build failed with com.apple.compilers.llvm.clang.1_0.compiler

XCode Version: Version 7.2 (7C68)
Building for PhoneGAP IOS
Commands used:

xcodebuild -project HelloCordova.xcodeproj -scheme HelloCordova -configuration Release -sdk iphonesimulator IDENTIFIER=com.kony.SyncApp build 

It used to work well before upgrading Xcode after upgrading to 7.2 , i am facing this issue. And same wokring form XCODE UI Problem with command line build

Error Info:

fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated.

** BUILD FAILED **

The following build commands failed:
    ProcessPCH /Users/konysync/Library/Developer/Xcode/DerivedData/HelloCordova-gyroiomjvclmgtfewwtckeoypgfd/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-almeazhzuslzcvewimbluxlrnwby/CordovaLib_Prefix.pch.pch CordovaLib_Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    ProcessPCH /Users/konysync/Library/Developer/Xcode/DerivedData/HelloCordova-gyroiomjvclmgtfewwtckeoypgfd/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-bvlrmrstkahcccfcihrhcdumeenk/CordovaLib_Prefix.pch.pch CordovaLib_Prefix.pch normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(2 failures)

found some links , but those links did not help.
Apple LLVM Compiler 3.1 error clang
Unsupported compiler 'com.apple.compilers.llvm.clang.1_0' selected for architecture 'x86_64' on Xcode 7 Beta 2

like image 422
Yugandhar Avatar asked Oct 30 '22 10:10

Yugandhar


1 Answers

Clear the cache of pod with

rm -rf ~/Library/Caches/CocoaPods

rm -rf Pods

rm -rf ~/Library/Developer/Xcode/DerivedData/*

pod deintegrate

pod setup

Change flipper version in pod file:

use_flipper!({ 'Flipper-Folly' => '2.5' })

And delete the project's Pods directory. The location of it is project directory > ios > Pods. Then in the project directory > ios location, install pod with pod install And

react-native run-ios

in project directory.

like image 147
mShetty Avatar answered Nov 08 '22 07:11

mShetty