I can't build platform iOS

IIt was built correctly on Android.
On iOS, however, build fails.

ionic cordova build ios
[INFO] Running app-scripts build: --platform ios --target cordova

[13:22:46]  build dev started ...
[13:22:46]  clean started ...
[13:22:46]  clean finished in 4 ms
[13:22:46]  copy started ...
[13:22:46]  transpile started ...
[13:22:48]  transpile finished in 2.02 s
[13:22:48]  preprocess started ...
[13:22:48]  deeplinks started ...
[13:22:48]  deeplinks finished in 28 ms
[13:22:48]  preprocess finished in 29 ms
[13:22:48]  webpack started ...
[13:22:48]  copy finished in 2.19 s
[13:22:56]  webpack finished in 8.18 s
[13:22:56]  sass started ...
[13:22:57]  sass finished in 1.18 s
[13:22:57]  postprocess started ...
[13:22:57]  removed unused font files
[13:22:57]  postprocess finished in 7 ms
[13:22:57]  lint started ...
[13:22:57]  build dev finished in 11.45 s
> ionic cordova prepare
> cordova prepare
⠏ Running command [13:22:59]  lint finished in 2.14 s
✔ Running command - done!

> cordova build ios
✖ Running command - failed!
[ERROR] An error occurred while running cordova build ios (exit code 1):


Error: ios-deploy was not found. Please download, build and install version 1.9.0 or greater from
https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy'

I installed ios-deploy with the following command, but the same error message appears.

Sudo npm install -g ios-deploy --unsafe-perm = true --allow-root

My ionic info is shown below.

ionic info

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

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.2.3 ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.0

System:

    Node  : v6.11.1
    npm   : 5.3.0
    OS    : macOS Sierra
    Xcode : Xcode 8.3.3 Build version 8E3004b

Is there anything I have done wrong?

For me it doesn’t even require ios-deploy.
I just added platform ios using - ionic cordova platform add ios.
Then build files for iOS using - ionic cordova build ios.
Thats all for me. Build runs fine on iOS (in Emulator till now).

I can’t say if it will help you to debug iOS apps without using Xcode as ios-deploy GitHub page says.

@sujit77

Thanks for the reply.
On the ios side of the platforms folder, I found the xcode project file.
It works fine in xcode when you run the file.

What does cordova requirements return for you?

Using the Xcode project file is a valid workaround, but of course can cause it’s own problem and not be automated.