Ionic 3 Ios Build Failed With Exception

I tried to build my Ionic 3 project with command ionic cordova build android, but i got an error like below.I don’t understands whats happening there ,Can you suggest something about this issue.

=== BUILD TARGET FlipBox OF PROJECT FlipBox WITH CONFIGURATION Debug ===

Check dependencies
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

** BUILD FAILED **

The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/apple/Documents/vijay/flipbox/platforms/ios/cordova/build-debug.xcconfig,-workspace,FlipBox.xcworkspace,-scheme,FlipBox,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/apple/Documents/vijay/flipbox/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/apple/Documents/vijay/flipbox/platforms/ios/build/sharedpch

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

You also need to post the output from ‘ionic info’.

cli packages: (/Users/apple/Documents/vijay/FlipBox/node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.7
Cordova Platforms  : android 6.2.3 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

ios-deploy : 1.9.1 
Node       : v8.7.0
npm        : 5.4.2 
OS         : macOS Sierra
Xcode      : Xcode 9.2 Build version 9C40b 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

What happens when you run:

ionic cordova build ios

=== BUILD TARGET FlipBox OF PROJECT FlipBox WITH CONFIGURATION Debug ===

Check dependencies
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

** BUILD FAILED **

The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/apple/Documents/vijay/flipbox/platforms/ios/cordova/build-debug.xcconfig,-workspace,FlipBox.xcworkspace,-scheme,FlipBox,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/apple/Documents/vijay/flipbox/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/apple/Documents/vijay/flipbox/platforms/ios/build/sharedpch

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

-> with command ionic cordova build android, but i got an error like below

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

then -> ionic cordova build ios

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

Interesting …

Do you have a .bashrc ?

export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"

export ANDROID_HOME=/Users/rob/Library/Android/sdk
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH

Yes,I have.
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"

export ANDROID_HOME=/Users/rob/Library/Android/sdk
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH