How to build a Hybrid App with Intel XDK for iOS running Dev. without owning an Apple Developer account? - intel-xdk

I've been developed a Hybrid App using Intel XDK + Cordova , It has been built for android platform with no pain and is running in a good condition BUT at the time of build for iOS platform the XDK asks me for mobile-provision and p12 certificates and it's password ! I know I should have the Apple Developer account to build the certicates but please pay attention that now I'm living in Iran and its impossible to create one , beside it there is no need to publish the final app on the Apple official App Store , I just need the certificates for build the app and turn my codes into .ipa file , the final .ipa will be submitted into a local market and they will publish it with their certificates and etc ...
THE QUESTION IS : is there any way or solution to obtain a certificate (even fake one) just for bypassing the build stage of XDK !?
P.S. : while ago I found a fake certificates but the XDK had alert for the password

I am an active Intel XDK developer with an Apple account as well as Android and Windows. With the Intel XDK you develop your IOS app on Windows or Linux up until you submit the IPA bundle to the App Store for review. You don't need a developer's account until you are ready to build IPA (iPhone build from the Intel XDK), because you need to download the CSR from the Intel XDK IOS build panels and then log into your Apple Developer's account to create an App Store distribution certificate for each IOS app you will be building/submitting. Then download the certificate, include in your Intel XDK project, then upload and build your IPA bundle. The IPA is Apple's bundle as APK is for Android. Here are the steps to build an IPA from the Intel XDK.
Click the Build IOS from Intel XDK build tab, the project will be uploaded.
When at the Build Screen, don't click Build button, instead click the Ceritifcate edit.
Download the CSR, by clicking the download button and save to your desktop.
Log into your Apple account at http://developer.apple.com and click Member Center.
Create a new account or log into your existing account
Click on Certificates, Identifies, & Profiles
Click on Certificates
Click the Plus button to add a certificate
Choose the App Store and Ad Hoc radio button under Production and click Continue.
Click Continue again to the Upload your CSR.
Now upload the CSR that you downloaded from the Intel XDK build.
Once uploaded, click Generate
Now click download and save your certificate to your desktop.
Back in the Intel XDK, click on browse to upload your new certificate you just downloaded.
You cannot build yet because there is no provisioning profile associated with this app. Cancel the build.
Go back to your Apple Developer account, and select the App ID's from the left menu, and press the plus button to add a new App ID.
Give the App ID a name and a bundle id, the bundle id you will use in the Intel XDK build settings for the App ID.
Press Continue followed by Submit.
Now select Provisioning Profiles in your Apple developer account,
Choose Distribute->App Store and press continue,
From the select field, choose the App Id you just create and press continue,
Now choose the certificate you just created, and press continue.
Give the provisioning profile a name and press Generate
Now download your new provisioning profile and save to your Intel XDK project directory under the www subdirectory. THIS IS VERY IMPORTANT.
From the Intel XDK on the Build Settings, select IOS tab, and locate the Provisioning Profile selection and choose production,
Now click on the Provisioning Profile File and the Add dialog popup appears, then choose the provisioning profile file you just download. You must select from the project www subdirectory.
Go back to the build tab, if a previous build page is showing, close that build page, and choose IOS build.
Then choose Upload Project, VERY IMPORTANT! as you have new changes which include a provisioning profile. Make sure you App ID in the build settings match the Developer bundle id. Also the CFBundleIdentifier can be set to the version number of the app.
When the Build Now page is showm, press the Build button and the Intel servers will build your IPA file.
Upon a successful build, download the IPA to your desktop.
Now log into your Apple developer account, and choose the ITunes Connect option.
From Itune connect, you must create a new App by choosing My App and then clicking the plus button to add a new App.
IMPORTANT: choose the IOS platform and the app you are deploying from the Bundle ID, as well as a Name and language. Then press create.
You app is ready to receive the previously created IPA.
From up til now, you did not need a mac, but to upload the IPA you need a MAC. Copy your recently created IPA to flash drive, or network drive like dropbox, that your mac can also access. If you do not have a mac, there is a service called www.macinacloud.com. If you plan on developing many IOS apps, it is worth buying at least a Mac Mini Intel-edition, not power-pc version.
From your MAC, launch the Application Loader and choose your IPA file. You will receive a successful confirmation of the upload. Wait about several minutes, then go back to ITunes connect.
Choose you App, and scroll down to the Build section, you should see the newly upload IPA with a version number. Select this IPA, and complete the remaining form for the App to prepare to submit for review.

Nope. To my knowledge, there is no way to get around this. For the build process to even work, you need to generate your certificates using the .csr (certificate signing request) associated with your specific Intel XDK account.
An apple developer account must be involved at some point in the process to get an app that can be built using Intel XDK's cloud building process.
(If someone else has information to the contrary, please feel free to correct me)

Related

How to show iPhone app to the client without submitting to the app store (ad-hoc distribution)

I want to show my app to the client without submitting to the app store. I was following the below instructions. But my app doesn't display in iTunes. Could you please help me?
Login to the iPhone developer portal website.
Add their iPhone UDID to the list of devices. Generate a provisioning profile that includes your own test phone and theirs. Download the file (ends with .mobileprovision).
Double-click it to install it on your development machine. Quit and restart Xcode, then set your code signing identity to the name of this profile. Build the binary.
In the left side of Xcode "Groups & Files" bar look for Products (may need to expand the folder).
Select {yourapp}.app. Right click and choose 'Reveal in Finder.' Now take that .app file and the .mobileprovision file you downloaded, zip them both up and send it to the client.
They will need to unzip the archive, then drag-drop the .app and .mobileprovision onto their iTunes and sync the phone. Your app should show up and run.
The portal site has more detailed instructions, but this is basically it in a nutshell.
TestFlight is a great free service to do most of the hard work here for you. Follow these instructions for generating an IPA file and distribute it to whomever you like, without having to go through iTunes.
You still have to follow steps 1, 2 and 3 from your existing instructions.
First create distribution profile using apple developer portal you can follow this tutorial.
http://www.manyfriends.com/wiki/iphone/index.php/Create_an_ad-hoc_provisioning_profile
After installing profile follow this to create a binary that you will send to you client.
http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/

Installing Developed Application into iphone device

Can anybody help me to install my developed app into an device.
what are the steps to execute my application in device.
how can i connect the device to run my application in device????
Please help me out.
Thank you..
Creating ad-hoc distribution profiles
The instructions that Apple provides are not very concise or clear. This is how I created a general provisioning profile that will work with multiple apps, and added a beta tester.
My setup:
Before you get started, make sure that..
You can run the app on your own iPhone through Xcode.
Step A: Add devices to the Provisioning Portal
Send an email to each beta tester with the following message:
To get my app on onto your iPhone I need some information about your phone. Guess what, there is an app for that!
Click on the below link and install and then run the app.
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285691333&mt=8
This app will create an email. Please send it to me.
Collect all the UDIDs from your testers.
Go to the Provisioning Portal.
Go to the section Devices.
Click on the button Add Devices and add the devices previously collected.
Step B: Create a new provisioning profile
Start the Mac OS utility program Keychain Access.
In its main menu, select Keychain Access / Certificate Assistant / Request a Certificate From a Certificate Authority...
The dialog that pops up should aready have your email and name it it.
Select the radio button Saved to disk and Continue.
Save the file to disk.
Go back to the Provisioning Portal.
Go to the section Certificates.
Go to the tab Distribution.
Click the button Request Certificate.
Upload the file you created with Keychain Access: CertificateSigningRequest.certSigningRequest.
Click the button Aprove.
Refresh your browser until the status reads Issued.
Click the Download button and save the file distribution_identify.cer.
Doubleclick the file to add it to the Keychain.
Backup the certificate by selecting its private key and the File / Export Items....
Go back to the Provisioning Portal again.
Go to the section Provisioning.
Go to the tab Distribution.
Click the button New Profile.
Select the radio button Ad hoc.
Enter a profile name, I named mine Evertsson Common Ad Hoc.
Select the app id. I have a common app id to use for multiple apps: Evertsson Common.
Select the devices, in my case my own and my tester's.
Submit.
Refresh the browser until the status field reads Active.
Click the button Download and save the file to disk.
Doubleclick the file to add it to Xcode.
Step C: Build the app for distribution
Open your project in Xcode.
Open the Project Info pane: In Groups & Files select the topmost item and press Cmd+I.
Go to the tab Configuration.
Select the configuration Release.
Click the button Duplicate and name it Distribution.
Close the Project Info pane.
Open the Target Info pane: In Groups & Files expand Targets, select your target and press Cmd+I.
Go to the tab Build.
Select the Configuration named Distribution.
Find the section Code Signing.
Set the value of Code Signing Identity / Any iPhone OS Device to iPhone Distribution.
Close the Target Info pane.
In the main window select the Active Configuration to Distribution.
Create a new file from the file template Code Signing / Entitlements.
Name it Entitlements.plist.
In this file, uncheck the checkbox get-task-allow.
Bring up the Target Info pane, and find the section Code Signing again.
After Code Signing Entitlements enter the file name Entitlements.plist.
Save, clean, and build the project.
In Groups & Files find the folder MyApp / Products and expand it.
Right click the app and select Reveal in Finder.
Zip the .app file and the .mobileprovision file and send the archive to your tester.
Here is my app. To install it onto your phone:
Unzip the archive file.
Open iTunes.
Drag both files into iTunes and drop them on the Library group.
Sync your phone to install the app.
Done! Phew. This worked for me. So far I've only added one tester.
See Installing developed application into iPhone device
You will need a developers account, iTunes, a Mac computer, and the iPhone.
Follow this tutorial:
http://mobiforge.mobi/developing/story/deploying-iphone-apps-real-devices

How do I test my app on iphone

I am university student, and i received from school an invitation to apple developer which i created an account and joined the group. I downloaded and installed the "WWDR intermediate certificate" and installed it, also noticed that they added my device in the provisioning profile.
From here I am lost, were I am not sure what is the next steps I should do
Login to the Member Center
Go to the provisioning portal
Create a developer certificate (different from a distribution cert, which you'll need for AppStore release)
Create an App ID (and add a device, if you're doing an ad hoc app)
Create, download, and install a provisioning profile
Plug your iPhone into your Mac
Build your Xcode project for the device (instead of for the simulator)
In the developer portal you should:
Enter your app and give it a name.
Add the app to a provisioning file.
Download the provisioning file
Drag that file into Xcode.
In the organizer-window in Xcode - add the provisioning file to your phone. This might not be necessary since Xcode can automatically download a team provisioning file.
That was from the top of my head. Try search for a guide or tutorial for it, there's plenty of them :)

How to test an iPhone app on a device for the first time?

I am developing an app for iPhone. How can I test this app on my device?
What are the procedures to follow? Please give information regarding this problem.
Deploying iPhone Apps to Real Devices
http://mobiforge.com/developing/story/deploying-iphone-apps-real-devices
In brief:
Sign up for the iPhone Developer Program
Obtain an iPhone Development Certificate
Generate a Certificate Signing Request
Generate, download and install your provisioning profile
Download and install your Development Certificate
Deploy your iPhone application.
Things you will need are
your private key.
your provisioning profile (with the UUID of your device added).
go to project settings and change code signing entity to your
distribution profile.
then you can build and run after connecting your device.
1) Open Xcode,
2) Go to Active SDK, and select the OS version running on your test device (viewable by going to Settings->General->About on the device).
3) With your project open, click on "Build and Run" (or press Command-R) to run the project, which will prompt you to allow access to your keychain.
4) Once deployed, the app will run automatically.
Distribution
First of all, to run the app on your phisical device you must enroll to the apple developer program.
Second, generate a developer certificate and download it. Then, import the certificate into Xcode and here you go.
There are some steps you need to follow to test your app on your personal iPhone. Below you can find all the steps:
Creat MAC certificate at first step.
Second step is to upload that certificate to developer account.
Now you should open developer account at
http://www.developer.apple.com
You can now find an option for device id in your developer account on
left side.
Now you should register your iphone device.
It is time to create your unique identifier on developer account
Download your certificate and install it on xcode organize
Now open your project embed your unique identifier in your project.
These steps can be beneficial for all software testing gusy involved in mobile application testing.

Installing app on Devices(iPhone/iPod)

I have developed an application for iPhone and iPod touch. Now i want to install that app on the device. I have created a provisioning profile for the particular device.
My query is that, now to install the app on a device I have to add the provisioning profile of that device to xcode and after selecting the developer in build option in project info pane i build the project and send the build and provisioning profile to the user.
Is there any to install the app without doing the above task of building the project with the provisioning profile.
Means i have a build of an app and a newly downloaded provisioning profile. I will send the user both build and profile in a zip file. will the user be able to install the app on his/her device?
Thats a bit of a confusing description, but I think the answer is yes. I normally ZIP the app before sending. The user must install the profile then the app by draggin into applications in iTunes (windows) or just ot iTunes on the Dock (Mac)