Getting error for building ios


#1

hi…
i am trying to buliding ios .When i run command “ionic cordova build ios” ,am getting following error:
1 error generated.

** BUILD FAILED **

The following build commands failed:
CompileC /Users/nirajviveksheel/Library/Developer/Xcode/DerivedData/MyApp-apjajhlwndfubsfptrmrlpqcehzw/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/GCDWebServerDataRequest.o MyApp/Plugins/cordova-plugin-ionic-webview/GCDWebServerDataRequest.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/nirajviveksheel/myApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 6s Plus,build,CONFIGURATION_BUILD_DIR=/Users/nirajviveksheel/myApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/nirajviveksheel/myApp/platforms/ios/build/sharedpch

[ERROR] An error occurred while running cordova build ios (exit code 1).

please help me…


#2

What is your Ionic cli version ?

Try running cordova build Ios, that might give some more information about the error


#3

following is my ionic info

li packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.17.0
ionic (Ionic CLI) : 3.17.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.0
Cordova Platforms  : ios 4.5.3
Ionic Framework    : ionic-angular 3.9.2

System:

ios-sim : 5.0.1 
Node    : v8.9.1
npm     : 5.5.1 
OS      : OS X Yosemite
Xcode   : Xcode 7.0 Build version 7A220

#4

Hi,

This issue happen when you build the ios platform but you still plug the ios device into your mac. There are some abnormalities between mobile provision from ionic and mobile provision from the Xcode. So, please unplug your ios device and try to build the app again.

If you want to deploy to the ios device, please open Xcode and deploy it. While building with ionic command line, please remove your ios real device first.

Thanks,


#5

I found solution …
Its happening because of xcode version…My xcode version id too much old …so i uninstalled and downloded latest xcode