I have an old version of Xcode so have been unable to create an .ipa file. I also only have leopard installed as the company I work for does not wish to purchase an upgrade so close to a new version being released.
The issue I am having is that when I drag the .mobileprovision file into iTunes that seems to be ok and it does ask if I wish to replace it. When I drag the .app file into iTunes it states 'An provisioning profile named "embedded.mobileprovision" already exists on this computer. Do you wish to replace it?'. If I click Yes then nothing happens.
I had this working on an old iTunes version this morning then updated as a client was having issues importing the .app file. Are all ad hoc distributions done with .ipa files now?
Basic steps I have been following:
2) Unzip the contents of “Sample.zip”
3) On Mac you will have two files, on PC you will have one file and one folder. These will be called “Sample.app” and “XXXX.mobileprovision”. The XXXX refers to whatever name the developer chose for their Adhoc profile (I use Andrews_Adhoc_DP).
4) Open iTunes.
5) Select both “Sample.app” and XXXX.mobileprovision and drag them to the Library panel
6) In your Applications pane you should now see the application which can be synced with your phone.
tldr; Can ad hoc installations still be done with a .mobileprovision file and a .app folder?
Many thanks!
Note to self and anyone who has the same issue:
In the info.plist file "Application requires iPhone environment" should be set to true. (got unticked for some reason)
Related
I've been reading and working through https://developer.apple.com/legacy/library/documentation/ToolsLanguages/Conceptual/YourFirstAppStoreSubmission/TestYourApponManyDevicesandiOSVersions/TestYourApponManyDevicesandiOSVersions.html, right up until the point where it says to drag the *.mobileprovision to iTunes, and it says, "Double-click the app archive (the file with the .ipa extension)."
I am presently unable to find a program of my own having a file with a .ipa extension, and therefore unable AFAICT to run my app on an iOS device yet.
The documentation I was reading is legacy documentation, but I didn't notice a link to anything newer.
I have several things in place now, including a Testing_.*mobileprovision dragged into iTunes, but I am having trouble identifying the last step(s) to get my app to run on my machine.
What can I do next to get the app to run on my machine?
Thank you,
You have to export the app using Xcode Organizer, Archives, Distribute, Save for Enterprise or Ad Hoc Depoloyment. Sign it with your Ad hoc profile. Then you will have an ipa to install.
I been distributed with myapp.app.dSYM and myapp.mobileprovision files, is it possible to install the app on device using these two files using iTunes? if yes. please mention how?
Note : I tried to drag and drop myapp.app.dSYM and myapp.mobileprovision on iTunes, only myapp.mobileprovision is installed on device (Settings>General>Profiles) but myapp.app.dSYM is not getting listed in the Sync apps in iTunes.
To make installable ad-hoc package you should Archive your project, then select archive in Organizer and press Distribute button, then select "Save for Enterprise or Ad-Hoc Deployment", sign it and you'll get ipa file. Drag this ipa file to iTunes library and sync with your device to install it.
p.s. dSYM file it's just debugger information to symbolicate crashlogs.
I have created an ad hoc archive and a .ipa file for the application I am trying to distribute. I have also created a distributing provisioning profile with the UDIDs of the devices that I plan on distributing my application to. When I drag the .ipa and .mobileprovision files into iTunes and try to sync the application to the device, an error message on the phone pops up reading "'myapp' failed to install". By the way, I have a standard iOS developer's license ($99 per year) and am using Xcode version 4.2.1. I am pretty new to the developer program, so please try to keep your answers as simple as possible. Let me know if you need any extra information. Thank you!
I had the exact same issue. My issue was simple to fix. Check your Code Signing Identities for Project & Target in your project Build Settings. Mine were pointing to my Development Profile.
The Code Signing Identities need to point to the Ad hoc Distribution Profile that you created.
Make this change and then recreate the Archive and .ipa file. I then deleted the old App in iTunes, and then dragged the .ipa file onto the iTunes icon (Windows). Then I was able to use iTunes to install the App successfully.
My problem seemed to be Xcode. I had multiple copies of the Ad_Hoc profile with different expirations (all valid) and a few with different names from the days. I deleted them all and the app still failed to install, but I noticed all the Ad_Hoc profiles had been resurrected by iTunes. Tried it several times and including deleting them from the Organizer, but they always resurrected (reappeared installed on the device). Finally I drug out a copy of the supposedly extinct iPhone Configuration utility and used it to delete the app and all Ad_Hoc profiles. Then tried to install just the profile. That got it down to 2. Finally got all deleted and got iTunes to install the right profile. Still took 2 more attempts for iTunes to finally install my archive file!
Check this .
Don't need to drag both .ipa and Provisioning Profile.
Just Drag the .IPA File Follow Further steps as you.
Set install owner param in Xcode project / Deployment to the name you specified in apple dev license. I set both install owner and alternative install owner and Install Group and Alternative Install Group to my name which the 100% exactly as in my apple development license.
And the error was gone.
I was having a similar issue where my project was stored on a secondary NTFS drive. After moving the project over to my desktop [aka MacOS Extended (Journaled) drive], I was able to load the ipa file via itunes.
Another point: If the store version of the app installed on your device (or a version deployed another provision), you have to remove it from your device before installing the ad-hoc version.
I solved the issue by not trying to sync with iTunes but instead to sync it within Xcode (from the window->devices menu)
I just installed itunes 9.2. Then tried doing something I've done thousands of times before: installing an add hoc build. I deleted the old version of the app and dragged the new version onto the app section of itunes. I get a message that the profile with the same name already exists (I select replace). Nothing happens- the app is not installed and does not show up in the app list.
Any ideas? The only difference is iTunes 9.2
https://devforums.apple.com/message/242443#242443
vChav wrote:
Ok, after removing all traces of the
app from iTunes and rebuilding it
worked. Here's exactly what I did:
1) Make a new folder called Payload 2)
Copy the build into Payload 3) Zip
Payload in the Finder 4) Rename the
zipped file MyApp.ipa 5) Drag the .ipa
file into iTunes 6) Sync the device
Thanks everybody for your help!
Ran into this problem as well. The solution was to package the app as an .IPA file using Xcode. The process is detailed here:
A better way to share ad hoc builds
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