Ionic build ios not working in windows

whenever im running ** ionic build ios ** it showing me an error as shown below…

Running command: “C:\Program Files\nodejs\node.exe” C:\Users\t\myApp\hooks\after_prepare\010_add_platform_class.js C:/Users/t/myApp
add to body class: platform-ios
Running command: cmd “/s /c “C:\Users\t\myApp\platforms\ios\cordova\build””
‘C:\Users\t\myApp\platforms\ios\cordova\build’ is not recognized as an internal or external command,
operable program or batch file.
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1

I tired running just Cordova… it was running successfully…
Can any one suggest me where did i missed…
Any Help…

You cannot build ios apps on windows.

Thank You for your reply…
Is there any other way to create a mobile app on windows using ionic…
or any other frameworks which can be useful for creating apps on windows…
Any suggestion or help…

You can target other mobile platforms like android and wp8 if you are using Windows system for development. iOS SDK doesn’t work in Windows system.

Thank You for your reply,
http://ionicframework.com/docs/guide/installation.html
I followed the above link but i stuck after the command ionic platform add android
what would i do after this if i run ionic build android it showing me an error like error code 2…

Any Suggestion for running Ionic with Android in windows system…

See , I have one trick to create iOS application on windows ! :wink:

You need to create iOS Virtual Machine on VMware Workstation.

Read these following articles can explain you in details. I used these this and its working fine. iOs on Windows.


http://www.akkihub.com/2015/03/install-os-x-109-mavericks-on-vmware.html

See when you will use “VMware Workstation” its directly not supported iOS Virtual Machine you need to unload “iOS” option in VMware.

You can search these keywords also on google

“OS X Mavericks 10.9 Retail VMware Image.7z”

“unlock-all-v130.zip”

“xcode_6_beta_3.dmg”

@gayatri31
On page http://ionicframework.com/docs/guide/installation.html, please follow ‘Windows note on Java, Ant and Android’ section.

Hi, Thank you…
I followed everything in this link http://ionicframework.com/docs/guide/installation.html and i installed Genymotion in Android Studio… but im struggling with the below shown error… wen ever i’m running ionic run android or ionic emulate android

Running command: “C:\Program Files\nodejs\node.exe” C:\Users\t\todo\hooks\after_prepare\010_add_platform_class.js C:/Users/t/todo
add to body class: platform-android
Running command: cmd "/s /c “C:\Users\t\todo\platforms\android\cordova\run.bat”"
ANDROID_HOME=C:\Users\t\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79
WARNING : No target specified, deploying to emulator
WARNING : no emulator specified, defaulting to Nexus_5_API_23_x86
Waiting for emulator…
Could not launch ‘./qemu/windows-x86_64/qemu-system-i386.exe’: No such file or directory

I’m really not getting how to rectify this part… any suggestion or help will be very grateful…

You are able to build for android platform now. Great!

Please create an ARM based emulator in Android Virtual Device Manager (in Android Studio) and check whether you are able to launch this emulator or not. Please delete other emulators, if exist. If you are able to launch the emulator then try running ‘ionic run android’.

OR

You can try running the project directly in an android phone. USB debugging should be enabled in your android phone and your system should have your android phone’s driver to detect it.

In general, here are the steps:

  1. Enable USB debugging on the device: Settings > Developer options. If you have an Android 4.2+ device, the developer options are hidden by default. Click on Settings > About phone and tap Build number seven times.
  2. In “Developer options”, select USB debugging checkbox.
  3. Click OK to confirm that you are turning on USB debugging.
  4. Connect your device to your computer using the USB cable.

hey i did the 2nd option in your reply… in that also nothing will happened…
In Android Studio RUN and AVD options are disabled
i dont know how to enable that …
Any Suggestions or help…

After building for Android platform, an android project will be created at “{Project Folder}/platforms/android” location.
Open ‘build.gradle’ file in Android Studio and then run the project. You should be able to see Emulator. AVD option will also be enabled.

Why were you not able to run the project in android device? What was the error? Have you installed the device driver in your system? Have you enabled USB debugging in your android device?

Actually i sorted out error… it was because i didn’t added any module to run…
For projects which i created through android studio then the RUN and AVD enabled
But The main part is that i’m importing an ionic project android studio so i have to add a module for that project and select genymotion emulator to run…

So by this my issue got sorted now my first moblie app running…

Thank You for your help and support…

1 Like

Hi,
I’m facing problem with ion tags none of them was working… Even i’m not getting what’s the error is. All the css classes are working but only tags are not working like <ion-view> <ion-nav-bar> these…

Any suggestion or help…

Please run this command and see the log. It opens the app in a web browser. You can see logs in Command Prompt.
ionic serve --consolelogs --serverlogs

Hey Thanks…
its working now… the problem is i didnt add .config() function app.js…
when i added its working…
actually i thought view part is different and js part is different…
now its sorted out…
Your command is the solution step for my problem…

Hi,
I need your help for connectivity of ionic with mongodb… I googled alot for any of the tutorials but i didnt found anything… Can you suggest me how to make it…

Any advice or suggesstions…
Thanks for your support…

Hey,

You should create RESTful web services to access MongoDB. There are some wrappers/plugins available, like parse.com (https://www.parse.com/docs/rest/guide/).

Once it will be ready, then you can integrate web services in your ionic app. For example:
$http({
url: ‘https://api.parse.com/1/classes/GameScore’,
method: ‘POST’,
headers: {
‘X-Parse-Application-Id’: ‘APPLICATION_ID’,
‘X-Parse-REST-API-Key’: ‘REST_API_KEY’,
},
data: {“score”:1337,“playerName”:“Ian Brown”,“cheatMode”:false}
})

Please see this tutorial: