iPhone / iPad enterprise distribution problem - iphone

I've just set up our iPhone / iPad Universal app to support Enterprise Distribution. I've hosted the provisioning profile, the plist file, and the application itself (the IPA file) on our private servers.
Users can go to Safari on their device and download the provisioning profile and it installs itself just fine. They can also view the plist file (we used this to test connectivity, etc).
However, no matter what we try the application file itself will not download. We navigate to our 'get' URL which sends back the manifest (plist) file, which in turn redirects to the application (IPA) file itself. Safari displays a 'Safari cannot download this file' error and we get a 'broken pipe' exception thrown on the server side.
I'm kinda stuck, so any help would be greatly appreciated!
Thanks in advance,
Ben

You shouldn't need anything but the plist and the IPA file, since nowadays the provisioning profile comes bundled in the IPA.
Did you create the plist yourself. or did you have XCode generate it for you with through the "Build and Archive" path in XCode?

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/

Getting error of installing .Ipa file in to my iPad

I developed an app and created a .Ipa file and sync it with my iPad1 but the problem is, I am trying to sync the same app in to my other iPad2 using iTunes.
But it is not syncing and showing an error that the App can't be installed and installation failed!!!.
There are several reasons for failed to instal in device.
1.check your provisioning profile contains device UDID of ipad2 added or not.
2.check your ipa file created properly or not.if you feel you created properly then delete the app from your first device which is having same app and instal the ipa again and check once.Then you come to know your ipa creation is correct.
3.one more reason might have take place is ipa may break accidentally.
you can check these steps:-
Make sure that your iPad2 device ID is added to your provision profile you have created in developer portal.
Make sure that your bundle id in your plist is match with the your provisioning profile bundle ID you have choose to build your project.
Second thing you can check if the provision profile is installed on your device on not.
Thanks,
Sandeep
This is a free program to check an IPA file for errors, there's over 20 reasons why an IPA file will fail to install, many strange combinations in mobileprovisioning and info.plist files.
CheckIPA

Finishing an app - getting the binary file?

I've finished developing my app and I want to release it. What is the binary file that apple is looking for in the submission for in iTunes connect?
Zip the app bundle, or better yet, use the Organizer to upload.
Check in the Build directory inside your project folder. There should be a folder in there called "Release". Inside that folder is YourApp.app. Zip it up and send it in.
You need to visit apple provisioning portal to generate a distribution certificate for your app, then download it to your machine and in the end you have to build it up it with this certificate in xCode.
There some tutorials on the provisioning page. So I hope you can make it.
https://developer.apple.com/iphone/manage/overview/index.action

How to solve "Cannot connect to server" message with wireless app distribution on iPhone iOS 4

I found the pre-release docs for this at https://developer.apple.com/iphone/prerelease/library/featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html (Developer account required)
and some more at: http://jeffreysambells.com/posts/2010/06/22/ios-wireless-app-distribution/
I'm running into issues when I click on the link to the .plist file
Install My App over the air
-- the iOS4 device reports back:
Cannot connect to www.server.edu
Server names intentionally obscured
Obviously the device can connect to the server otherwise i wouldn't be able to see the page that has the link...
Any suggestions?
This happened to me because the SSL certificate had expired. Make sure you add that to the list of things to check. Once I renewed that it started working again.
I run into the same problem. It turns out there is a typo in the plist file.
Acutally, you don't need to create this plist file.
If you are using XCode to distribute, it will generate the right plist file with the ipa file.
Follow the following steps:
1. Sign your app with the enterprise distribution certificate.
2. Once you create the archive, go to Organizer, select the archive and click Distribute.
3.select "Save for Enterpise or Ad-Hoc Deployment" and click next.
4. Make sure you select the right code signing identity, the same certificate for in house distribution and click next.
5. When prompted for save, check "Save for Enterprise Distribution". It will ask for more information.
6. Application URL must be the url pointing to your ipa file when deployed in your app distribution server. You will need to have another two image files (required as 512*512 and 57*57).
7. When clicked save, plist file and ipa file will be created in the folder you chooose.
Official Guide: http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html
I haven't run into this, but the first place I'd look is the web server access logs at www.server.edu, to see if a) the request is getting to the server, and b) it's returning an error. I'd bet that the server doesn't like something about the HTTP request coming from the device. Missing cookie? Authentication required? Expecting a particular "Accept" header?
Check authentication on your server on this page and plist file request.
Because cookies of your browser do not send them to itunes on device.
Your plist file must be available without auth.

"The binary you uploaded was invalid. the file was not a valid zip file" Error message uploading app to iTunes Connect

I'm trying to upload an iPhone app binary to iTunesConnect and keep getting the following error message "The binary you upload was invalid. the file was not a valid zip file". I had an app upload ok recently but this app is having problems. So after a while I carefully went through the following steps trying to make sure everything was ok. Any help is appreciated.
The steps:
renamed the project
(Project->Rename... enter name into
Rename project to:) to release name
making sure the name has no spaces.
Cleaned project
Make sure
references in build setting reflect
new app name
Create new app ID
matching project name in iPhone
Provisioning Portal
Destroyed old
developer and distributer
provisioning profiles in
Provisioning Portal, in XCode and on
iPhone.
Create new development
provisioning profile using new app
name.
Install development
provisioning profile into XCode 8)
Build (Release) for iPhone OS 3.1.3
(highest my phone will upgrade to,
I'm assuming current released
version)
Builds, Installs and Runs on actual
iPhone: To me this implys App and
developer ID's are OK.
Create a distributor provisioning profile
using existing Distributer ID.
Install distributer ID into XCode
Clean
Checked that "Code
Signing Identity" and "Any iPhone OS
Device" lines in Build settings are
set to Distributor ID
Build for
release for OS 3.1.3
Check Build
results to make sure code is signed
with Distributor Profile
Reveal
.app file and compress (alt click >
Compress "appName.app")
Upload
to iTunes connect
Gives "The binary you uploaded was invalid. The file was not a
valid zip file"
Here's some additional steps I try: Quit Xcode after clean (or clean all) then delete the Build folder. I don't "Build and Go", just "Build". The AppName.app is generally in the "App Store" folder (or whatever you name your build configuration for App Store release. I right click only that AppName.app file and choose "Compress" in the Finder.
You could also try uploading it with Safari.
It seems like your problem isn't with the provisioning profiles, but with the way the file is being zipped (or maybe uploaded). Try repeating that part, changing details.
Thanks for the help. It turned out the problem was to do with the fact my project folder was on an ntfs HD. As an experiment I copied it onto my macs HD and it worked perfectly. I don't really understand why this is.
NTFS (New Technology File System) is a windows format. You may like to read this:
https://en.wikipedia.org/wiki/NTFS
Now if you will have a NTFS format iTunes will not recognize that format. And iTunes will support or recognize mac extended versions.
So try not to use NTFS or FAT format for ziping up the projects.
Regards
Rajeev