xcode organizer download button di - xcode

I am trying to copy data files of an ios (5.1) app from an iphone, with Ad Hoc Provisioning Profile, to a MacBook. XCode 4.4.1 is used on the MacBook. With the iphone connected, under Organizer, Devices, the connected iPhone and the app are detected. However, when the app is selected, no files are displayed in the 'Data Files in Sandbox' section and the Download button is disabled.
What would be the possible causes? The MacBook used is not the developer's machine. Can this method used to copy app data files to any MacBook with XCode installed (but no source code)?
Thanks.

You cannot use Xcode Organizer to copy files from an iPhone to a non-developer machine. The Organizer shows only apps for which a valid provisioning profile is available in Xcode.
But you can do it with iTunes if you connect the device, select it and go to the bottom of the "Apps" tab. There you see all Apps that support file sharing. If you select one of the apps, you can see and download the contents of the Documents directory.
To enable file sharing for your app, you have to add the key
UIFileSharingEnabled (Application supports iTunes file sharing)
to the Info.plist and set the Boolean value to YES.

Related

Why my application is showing incompatible on downloading from iTunes on iphone 5?

Previously , My application was able to download on each device from iTunes. Currently I am working on Xcode 7.2 and have uploaded app to iTunes. Now, it is showing that this app is not compatible to your device when downloading it from iPhone 5. I cannot find the reason for this.
Log into iTunes connect, select your app and click Activity. Under All Builds, select the current build available on the App Store and view Device Requirements.
If these are not as expected then you will need to review the preferences you have set in Xcode.
Try to put the Deployment Target IOS in your application, to your iPhone5's IOS.
Deployment Target

Install IPA with iTunes 12

I have an IPA signed for ad-hoc distribution. I can install it fine with Flash Builder. I'd like to install a release version via iTunes 12, though. Dragging it onto:
The device name
The app section
The app list
The Home Screens section
...does not work? Does anyone have any idea how to do this with the new iTunes 12?
Note : If you are using iTunes 12.7.0 or above then use Solution 2 else use Solution 1. Solution 1 cannot be used with iTunes 12.7.0 or above since Apps section has been removed from iTunes by Apple
Solution 1 : Using iTunes 12.7 below
Tested on iTunes 12 with Mac OS X (Yosemite) 10.10.3
Also, tested on iTunes 12.3.2.35 with Mac OX X (El Capitan) 10.11.3
This process also applicable for iTunes 12.5.5 with Mac OS X (macOS Sierra) 10.12.3.
You can install IPA file using iTunes 12.x onto device using below steps :
Drag-and-drop IPA file into 'Apps' tab of iTunes BEFORE you connect the device.
Connect your device
Select your device on iTunes
Select 'Apps' tab
Search app that you want to install
Click on 'Install' button. This will change to 'Will Install'
Click on 'Apply' button on right corner. This will initiate process of app installation. You can see status on top of iTunes as well as app on device.
You can allow new apps to install automatically by enabling checkmark present at bottom.
Solution 2 : Using iTunes 12.7 and above
You can use diawi for this purpose.
Open https://www.diawi.com/ in desktop/system browser
Drag-and-drop IPA file in empty window. Make sure that last check mark are unselected (recommended due to security concern)
Once the upload is completed then press Send button
This will generate a link and QR code as well. (You can share this link and QR code with Client)
Now open Safari browser in iPhone device and enter this link (Note that link is case-sensitive) OR You can scan the QR using Bakodo iOS app
Once link is loaded you can see app details
Now select ‘Install application’
This will prompt an alert asking permission for installation. Press on Install.
Now you can see the app installation begins on screen.
iTunes 12.7 ( Xcode needed )
You cannot install a release ipa directly on your device. Ipa generated withAppStore Distribution Profile requires to be distributed from App Store or TestFlight. However, I found that app panel was removed even for installing ad hoc ipa from iTunes 12.7. I found a workaround to install ad-hoc apps which might help to them who cannot install even ad hoc ipa. Please follow the instructions below,
Connect your device
Open Xcode and go to Window -> Devices
Select the connected device from left panel
Brows the IPA from Installed Apps -> + button
Wait few seconds and its done!
From iTunes 12.7 apple removes App Store, So we unable to for find App option
We have another way to install iOS app using iTunes 12.7 as below
1)drag and drop your .app file to iTunes.
2)It will create .ipa file, you can find that at ~/Music/iTunes/iTunes Media/Mobile Applications/
3)connect the device you want to install that app.
4)drag .ipa file from finder to iTunes on my Device section as shown in below section.
I don't remember this being very difficult with iTunes 12, but at least for iTunes 12.8 (and likely for the previous couple of minor versions also) it's pretty straightforward even though the Apps button is not there, as demonstrated in the below two steps:
While your device is connected to your laptop/desktop click the device icon on iTunes 12.8:
Drag your .ipa file from Finder or Desktop and drop it into the "On My Device" area.
Wait for the sync to finish and the app is on your device!
For newest iTunes 12.7 and above can easily install IPA by copy and paste
Select and copy your .ipa (cmd+c or ctrl+c)
Connect phone to laptop
Open iTunes and select your device tab on top left of iTunes
Select the music tab
Paste the ipa (cmd+v or ctrl+v) not drag
In my case Drag & Drop didn't work.
I had to first Sync iTunes with the iOS device (Sync button on the bottom right)
I had to add the IPA file through iTunes menu bar: File -> Add to Library...
I had to press the "Install" button for my app in the "Apps" screen
I had to press the "Apply" button on the bottom right
Edit: See Jayprakash Dubey's answer for iTunes 12.7
From the menu shown in the following screenshot, choose Apps. You can drag and drop you IPA file in the next view.
After that, go to your device's page, you'll see the list of apps, install your app and press Apply from the bottom bar.
Tested on iTunes 12.5.3.17
1.Open the iTunes select the “Apps” section with in that select the “Library”
2.Now drag and drop the file AppName.ipa in this Library section (Before connecting your iOS device to your computer machine)
3.Now connect your iOS device to your computer machine, we are able to see our device in iTunes…
4.Select your device go to “Apps” section of your device and search your App in the list of apps with "Install" button infront of it.
5.Now hit the “Install” button and then press the “Done” button in bottom right corner, The “Install” button will turn in to “Will Install” one alert will be shown to you with two options “Don’t Apply”, “Apply”, hit on option “Apply”.
6.The “App installation” will start on your device with progress….
7.Finally the app will be installed on your iOS device and you will be able to use it…
IPA file are generally executable file for iOS app.
Approach used to install IPA in iTunes 12 is different as compared to lower versions.
Simply, add IPA file into iTunes library and search for IPA in apps section of connected device.
Click on install and Apply.
I found a solution for Windows users. All the other solutions i tried didn't work for Windows.
I have been searching about the same problem for a few days. iTunes make obligation to update itself to iTunes newer version for ios 11 phones and iTunes 12.7 version doesn't have apps section so i couldn't download anymore my ad hoc app ipa file and provision files to iPhone.
I just found out that there is an iTunes version (12.6.3) Apple published which won’t be prompted to download new versions of iTunes and you can use this version to download your app. You can dowload it from this link: https://support.apple.com/en-us/HT208079
Apple say if you have a newer version of iTunes you can just download this one over it but I couldn't do it like this. First, I removed iTunes from my computer, then I removed the iTunes folder from my musics folder (you probably don't need to do that) and I downloaded iTunes for 64 bit PC from the link I wrote above. And with this iTunes i can use Apps section again and it doesn't force me to update it. So it works like the good old times.
For iTunes 12.9.5.5 and above you can install the apps by Copying the IPA file and Paste it (Cmd+V or Edit -> Paste in iTunes) in any categories as Music/Films/TV Programmes etc. The app will be installed automatically on your iPhone screen.
Tested on 29 Nov 2019.
Demo:
Since iTunes 12.7 doesn't have "Application" section so it can't be done.
As a workaround I've found this answer.
I simply installed "Apple Configurator 2". Than:
Run application
Connect device
Unlock device
Drag IPA file to visualisation of device in "Apple Configurator 2"
Confirm action
I didn't had to "sign in" as described in on linked question answers
For iTunes 12.7.0 and above, you just need to Cmd+c your app and Cmd+v into your device on iTunes. Any tab works, including Summary, Music, Movies.
For the macOS Catalina 10.15.3 and onwards iTunes is no longer present in the system. all iTunes contents are added in Finder itself. So instead, open the Music app and drag-drop IPA as mentioned below.
installation itunes music ipa
Do not use any service similar to https://www.diawi.com/ as it can potentially have huge security implications. Using this kind of process and with some clever coding skills, a third party can inject extra stuff in you application. And they are basically charging you for something that you can do yourself.
In iTunes 12.7.x, it is still possible to install an ipa directly on a device with a simple drag-n-drop. Look at #ganesh ubale' solution here or the other answers at https://stackoverflow.com/a/46520816/609862 or https://stackoverflow.com/a/46229114/609862.
The Apple developer web site also have detailed information about how to configure a web site for installing an IPA wirelessly (by simply sharing the download link).
I just reset the device (erase all settings) and sync up with iTunes and now I can drag the app over to the phone library on iTunes (even though there is no apps tab). Once you sync. the app is then on the phone.

It it possible to build and IPA without any device connected at any moment?

Having a Apple Developer Membership account and a Mac, it is possible to generate from a Xcode project an IPA file, without connecting a device (iPhone, iPad) at any moment?
If you go to the Product menu and select "Archive" it will build the app for release on device, regardless if a device is connected or not.
You can then export the API file from the Archives Organizer (Window->Organizer) by selecting the version you just built and clicking "Distribute." You will be asked if the export is for the iTunes store, ad-hoc, etc. and most methods will prompt for a distribution profile to sign the .ipa with.

Downloading app data from a released app using Xcode 4.6

Related to How to download app data in Xcode 4.2, I am using XCode 4.6 and can no longer download my app data using the Xcode Organizer. My app was recently released to the app store, and I can't recall, but I may have downloaded my app from the app store. In any event, the current version of the app on my phone is a development version (through Xcode, not app store). Other development apps show up in the Organizer, but not my released app. Since I don't want to lose the data associated with the app, I can't just delete the app, and re-install through Xcode. Suggestions?
If you coded your app to save the data to the app's Application Documents directly you can use a tool like PhoneDisk (or the newer iExplorer - http://www.macroplant.com/phonedisk/) to access your device and copy the contents from the documents folder to your desktop (or wherever).
Often times when we build apps with databases and we want to make sure users can easily backup, transfer, and/or email the DB to customer support so we enable iTunes file sharing.
This allows users to open iTunes, choose their device, select the Apps tab, then scroll down to the File Sharing section. From there the user can select any file located in the documents folder and easily copy the files to/from the device via iTunes.
To do this, you must enable Application Supports iTunes File Sharing by adding the same key and setting the BOOL value to YES in the *-Info.plist file for your application.

Could not launch 'app' with iCloud container

I have an OS X app targeting 10.7 (Lion) platform. I use XCode 4.4 on a development machine where iCloud is enabled. The OS X version on this machine is 10.8 (Mountain Lion).
I have an APP ID that I enabled iCloud using the Developer Certificate Utility: com.company.appname. The utility shows a green tick next to iCloud label under description of the App ID.
From XCode Target/Summary tab I enabled Entitlements and added iCloud Container com.company.appname. Of course internally it is preceded by the team id in the Entitlements file: teamid.com.company.appname.
I also have a valid (green ticked) provisioning profile on my Mac with the same id:teamid.com.company.appname.
Derived Data locations is set to Relative from XCode/Preferences.
The app builds OK. But when I run it I get "Could not launch "appname". Permission denied." error.
If I remove the iCloud container id com.company.appname from iCloud Containers list box under Entitlements and build the app, it runs OK. But of course I cannot access iCloud container enabled for the app.
I have been working on this problem for the past 24 hours. I have read the guides; Developing for the App Store, App Sandbox Design Guide, and Entitlement Key Reference inside out. Yet I am stuck. What went wrong?
I am desperate and I will be grateful if you can help me.
I think the most likely problem is that the AppID, the Entitlement and your provisioning profile do not match each other.
This can happen easily if you experiment a lot with those settings. It should work right out of the box if you create a fresh new project with valid settings, but it might get corrupted if you convert, change or edit existing projects.
Do not forget about the 10-digit prefix of your app bundle id. This is required, esp. for iCloud Key-Value-Storage!
Log into developer.apple.com, check the AppIDs tab
Create an AppID if necessary
Check the iCloud settings for this app
Note down the exact app identifier in the form ABCDE01234.com.domain.app
Switch back to Xcode, update your Provisioning Profiles and Entitlements in the "Teams" section of the "Devices" Tab in the Organizer
Go to the project settings, select the app target and search for "Code Sign"
Make sure the correct code signing identity is selected (see the application identifier above)
Go to the summary tab and put in your app ID
Open the Entitlements file and check if the right ID is in there as well.
Then it should work.
Hopefully.
Edit: thought it would be nice to add the link to the app id center:
https://developer.apple.com/certificates/index.action#bundlelist

Resources