How To Develop Android and iOS Build From Source Code

Android Build Development

Requirements : Eclipse, Java, Apache, Cordova

Install the following Softwares in order to Develop an Android Application.

Eclipse :
You can download it from : https://eclipse.org/downloads/
Java :
You can download it from : https://www.oracle.com
Apache ANT :
You can download it from : http://ant.apache.org/
Cordova :
You can download it from : http://cordova.apache.org/

1.After installing the above Softwares simply open Eclipse IDE in your System, and follow the steps as :
2.Click on File -> New -> Others.
Picture 1
3.Under Android Select Android Project from Existing Code.
Picture3
4.Click on Next Button.
5.Click on Browse Button to select your app code.
Picture5
6.Navigate to platforms folder and then Click on Open Button.
Picture6
7.Click on Finish Button, to open the code.
8.The Complete mobile code would be opened as shown below.
Picture8
9.You can click on the Arrow near your Project name to see the list of files that are available in a mobile app code.
Picture9
10. Simply navigate to Assets to change the file you want. Once you are finished with changing the contents of the code.
11. Select the Project Name from Package Explorer, as shown in the image below.
Picture11
12. Right Click and then Select Export.
Picture12
13.Under Android select Export Android Application.
Picture13
14. Give a name to your Exported Project.
Picture14
15. Add the Keystore Files that you got with your mobile app code.
Picture15
16. Fill in the entries.
Picture16
17. Select the path where your app would be stored. Click on Finish Button to generate the App with .apk extension.
18. Now you can simply mail this app to anyone who can download the app and run it in his mobile device.

Generate Android Build via Terminal :

1.If you want to generate the Android Build via Terminal, simply Open the Terminal.
2.Navigate to the Code where your Project is placed.
3.Navigate to .
4.Run the following command, but make sure that platforms folder is visible over here : sudo cordova build android
5. Android Build would be generated, and would be stored at the following location: /platforms/android/ant-build/-debug.apk
6. Android Build Created.

iOS Build Development

Generating iOS Build Development (Testing)

Requirements : Mac System, Xcode
1.Download Xcode to generate an iOS App.
2.Once Xcode is installed, simply navigate to the path where you project is kept.
3.Navigate to <Project_Name> -> platforms -> ios -> <Project_Name>.xcodeproj and right click and select Open With Xcode.
Picture3
4.Xcode would open with the project files.
5.Click on the arrow button near your Project Name.
Picture5
6.Click on Staging to open the files for your project.
Picture6
7.Here you will see the list of files that are used to make your iOS Application.
Picture7
8.You can edit any of them as per your needs.
9.Once you are finished with editing, simply plugin your device through a USB Cable.
10.You will notice that your device name would appear at the top.
Picture10
11.If you have the Provisioning Profile with you, then Double Click on your Provisioning Profile, your Provisioning Profile has been added in Xcode.
12.Open your Certificate File that you have got under Key Chain.
13.Click on the Arrow. Select Both the Files and then Right Click on it and select Export 2 Items.
Picture13
14.Name your Certificate.
15.Select your Project under Xcode, and click on General Tab. Fill in the required entries.
Picture15
16.Select Build Settings under the same tab.
Picture16
17.Scroll down to Code Signing Section and select Provisioning Profile that you have added right now from the drop down.
Picture17
18.Then select the Certificates that you have added.
Picture18
19.Select your Device name in Xcode and click on Play Button to Install the iOS App into your device.
Picture19
20.iOS App would be installed in the Device.

Generating iOS Build Production (Release)

1.Follow the same steps from 1 – 18 of Generating iOS Build Development (Testing).
2.After completing all the above 18 steps.
3.Select iOS Device from the Top.
Picture3
4.Click on Product Menu at the Top in Xcode, and select Clean from it.
Picture4
5.An alert for Clean Successful would appear on the screen.
Picture5
6.Again, click on Product Menu and select Build.
Picture6
7.You can see the Build Progress at the top of Xcode in the Progress Bar.
Picture7
8.Once the Build is generated, again alert message would be displayed as Build Succeeded.
Picture8
9.Click on Show the Project Manager at the top.
Picture9
10.Now Click on the Arrow just before your Project Title.
Picture10
11.You would be able to see a list of files that are under your project.
12.Scroll down to Products folder and click on the Arrow.
Picture12
13.You would see a .app file followed by your Project Name.
Picture13
14.Now press Windows + Spacebar and Type iTunes in it and press Enter.
Picture14
15.Open iTunes.
16.Drag and Drop your .app file in Xcode to iTunes as shown below.
Picture16
17.Your app would be added in iTunes.
18.Select your Project and right click and select Show In Finder.
Picture18
19.Now you have generated a .ipa file that is ready to be released on the App Store.

Have more questions? Submit a request

Comments

Powered by Zendesk