.app file not getting dragged into Itunes folder - ios

I want to generate the .ipa file for App download. I am executing code in xcode 4.5.2 and after build success, dragging the .app file to itunes folder. But, the drag itself is not happening. My device has IOS 5.1.Do i need to upgrade my device OS to IOS6 or any other reaon is the cause. Can anybody tell me, why this is happening?

For the method to generate .ipa file from .app file
see my answer to this question:
iOS App loader - what file type should be uploaded

As far as I know, you cannot drag an .app file to iTunes. You can drag an .ipa file however.
To create the .ipa file in Xcode:
Run Product / Archive. If successful, it switches to the Organizer window.
Click "Distribute...", select "Save for Enterprise or Ad-Hoc Deployment" and continue the wizard until you're asked to save the .ipa file.
The saved .ipa file can then be dragged to iTunes and synchronized to your device.
For uploading the app to the Apple' App Store, you don't need to explicitly create an .ipa file. You can be directly upload from the Organizer windows using the same "Distribute..." button.

Related

Get provisioning profile from iPhone local files

We signed an Enterprize application with a provisioning profile.
And launched the application on an iPhone device.
My question is:
How can I get the provisioning profile from that iPhone?
Can I get to the files using USB?
Or there is a way to programmatically get the profile file data?
You can try to extract the IPA from iTunes using this technique. Or, if you already have the original ipa that was installed to the device, even better.
Once you have the .ipa, you can change the .ipa extension to .zip and extract the contents. On a Mac, in Finder, you should get a folder called "Payload". Inside that folder will be a .app. Right click on the .app and choose "Show package contents". Inside the .app is a file called embedded.mobileprovision. That is the provisioning profile that was packaged with the app when it was build, and subsequently installed on the iOS device when it was installed from the .plist/.ipa.

How will I able to upload *.app to Appstore not via Xcode?

I have application for iOS created on Go language, I compiled it to .app file. Can anyone tell me what should I do to:
Load application to my iPhone
Load application to iTunes connect (I loaded another via Xcode, but there are no objective c or swift code here to do so)
PS: I have valid developer account, able to create any certificates that will need. Versions: XCode 7.2, iOS 9.2
Thanks a lot for your help.
For submission part there is Apple tool called Application Loader. It is a part of Xcode, but I think can still be downloaded separately. It can deliver app to App Store without having to use Xcode Organiser interface.
You need to deliver your app as .ipa file. If your .app is properly signed and contains a valid .mobileprovision (which is a different question), all you need to do is to create a new folder named "Payload", put copy your .app into ito it. Then you can rename the .zip file to .ipa and upload it using Application loader.

The app could not be added to your itunes library because it is not a valid app

My app is already in itunes and after some changes on the existing app,I created the new app id ,certificates and provisioning profiles and then generated .ipa file using folowing steps...
Go to Product-->Archive
2.Click on Export option.
.ipa file was generated but when opening with itunes it displayed error as...
"The app could not be added to your itunes library because it is not a valid app".
What this error means..??I only want to to generate ipa file using adhoc distribution so that the app can be tested on number of devices .
What should I do..??
My existing app has version and build as 2.1.2 but now I changed to as 2.5,then also its displaying error...
Please help if anyone can.....Thanks
I resolved this issue from the Link:
In order to resolve this issue, do these steps:
Renamed the exported ipa file to .zip and opened her up.
XCode is now putting the .app file inside a folder named "Applications".
Rename this folder to "Payload", zipped it back up, and rename the zip back to .ipa.
Now dragged this new ipa file to iTunes it should works fine this time and can be installed on my phone.
This seems a bug in Xcode in latest Xcode versions.

iOS App loader - what file type should be uploaded

I have always been uploading iOS apps to appstore from XCode Organizer. That is pretty simple process. And we do not see any IPA or APP file is created. Now my client is trying himself to upload the app using app loader and is continuously asking for an IPA file. Now I have some specific questions -
Does app loader exist now-a-days ? Is it a different program out of XCode?
If it does, what file it takes from me to upload to appstore? An IPA?
How do I create the file for appstore? Note that I have the distribution certificate and appstore provisioning files installed and set in my release configuration. And I am sure if I have tried with XCode it would upload already. But, client not allowing me to do that. He will do it using app loader.
Special Notes -
1. Please do not give me links to an apple documentation, they do not talk about file type and how to create that. They always say "binary". Their doc titles does not reflect the content.
2. Please do not show me the Ad Hoc build process, that is not what I am asking.
3. Please only reply if you have used app loader before.
Application Loader is present in the Utilties folder.
For XCode 4.5 go to
XCode -> Right Click and select Show Package Contents
then go to Contents -> Applications -> Application Loader.
When you just do a build from Xcode, you get .app file.
To create .ipa from it follow below process:
On "/" create a folder named Payload
Copy your .app and .mobileprovision files in this folder.
Open terminal, go to / and run following command
zip -9 -y -r appName.ipa Payload/
This will create file "appName.ipa" on /
Yes and Yes.
As far as I know, it takes a compressed .app file.
In Xcode go to Products and select "show in finder". Then compress the file with a right click. The result should be uploaded with application loader. The result is located in the Library directory. Depending on your settings this can be hidden from application loader. Therefore you should copy the compressed file to a directory which is accessible from any program (like the desktop).

Difference between ipa and xcarchive?

What is the difference between an IPA file and an .xcarchive?
Which one do I have to create to upload an app using Xcode's Application Loader?
Difference between IPA and .xcarchive:
IPA is a zipped up Payload folder which has YourApp.app bundle. .app contains all your application resources like images, plist files, compressed nibs and the executable, CodeSigning resources,etc.
xcarchive contains your app and dsym files. .DSYM is required to desymbolicate your crash logs. Right click on saved .xcarchive and select show package contents to see what it contains.
First comes .xcarchive, which can be used to create an .ipa and sent to App Store Connect.
TLDR: .xcarchive is intermediary step for you, and an .ipa can be used for uploads to the App Store.
.xcarchive:
xc is a hint that its for Xcode, not users. (e.g. other files for Xcode: .xcodeproj, .xcworkspace)
.ipa: iOS Packaged App
After generating your .xcarchive and you can find it in Windows > Organizer > Archives, you can click Distribute app > App Store Connect > Export , which creates this, which you would upload to App Store Connect:
To investigate whats in the .ipa, you can rename the .ipa file into a .zip and extract it. You'll find the following directory structure:

Resources