HI everyone … I am trying to publish my mobile app built using ionic framework … but I am not able to do as I am getting the following error:
xcodebuild was not found. Please install version 4.6.0 or greater from App Store
ERROR building one of the platforms: Error: /opt/lampp/htdocs/firsthive/fhapp.v5/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /opt/lampp/htdocs/firsthive/fhapp.v5/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Please find the following ionic info details installed in my system
Cordova CLI: 5.3.3
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.6
Ionic App Lib Version: 0.6.2
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS
Node Version: v4.2.1
Can anyone suggest the solution for the above problem ?
You can’t build iOS app on Ubuntu, you need a Mac for this.
Okie … thanks for the info gmarziou
Yes but you need a mac or you could have a look at online build services: Ionic and PhoneGap have one.
But you need a mac to debug your app with xcode and Safari remote debugging so tehse services are not that helpful.
I did not really understand what you said gmarziou … I have developed / coded the app in ubuntu system only … now how can I transfet it into the MAC ? Can you guide me exactly ?
iOS platform uses ipa not apk, your Android apk is a native package, it does work only on Android.
To build an ipa, you need a mac, then you will be able to upload it to an iphone via USB or to publish to the App Store.
There’s no way around, to develop for iOS you need a mac and an iOS device.
Read Ionic docs for an intro.
1 Like
Okie I got it … I will be following the same …
You can try to use Ionic Package
Here is a official blog link.
http://blog.ionic.io/build-apps-in-minutes-with-ionic-package/
Hi Pasinetti … I am getting the following error when I tried to install the ionic package on my ubuntu 14.04 system …
Error: Unable to locate the ionic.project file. Are you in your project directory?
at Object.load (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/project.js:50:11)
at Object.IonicTask.run (/usr/local/lib/node_modules/ionic/lib/ionic/package.js:37:23)
at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:96:32)
at Object. (/usr/local/lib/node_modules/ionic/bin/ionic:9:10)
at Module._compile (module.js:435:26)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
Unable to locate the ionic.project file. Are you in your project directory? (CLI v1.7.6)
Your system information:
Cordova CLI: 5.3.3
Ionic CLI Version: 1.7.6
Ionic App Lib Version: 0.6.2
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS
Node Version: v4.2.1
Can anyone suggest any solution for the above issue ?
You have to go in the project folder and then launch a command ionic package build ios --profile
Look the official docs.
Ok I did the same and now I am getting the following error -
Error: Missing Ionic App ID.
at Object.IonicTask.run (/usr/local/lib/node_modules/ionic/lib/ionic/package.js:41:13)
at Object.run (/usr/local/lib/node_modules/ionic/lib/cli.js:96:32)
at Object. (/usr/local/lib/node_modules/ionic/bin/ionic:9:10)
at Module._compile (module.js:435:26)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
Missing Ionic App ID. (CLI v1.7.6)
Your system information:
Cordova CLI: 5.3.3
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.6
Ionic App Lib Version: 0.6.2
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS
Node Version: v4.2.1
May I know where I am going wrong ?
Try to upload your app on ionic server, check out this guide http://docs.ionic.io/docs/io-uploading and try again…