Why are there no archives under the organizer section in xcode? - xcode

I am in the process of uploading my ios app to the app store and I clicked on the organizer button but no archives came up. All that came up was "Use the Archive command within an Xcode project or import an archive from an Xcode Server bot." Does anyone have any idea what the problem is?

To build your archive you need to:
1 - Set "Generic iOS Device" as the selected device (top left corner near the scheme) instead of a simulator device.
2 - Click on "Product" on the top bar, and then "Archive". This will start building your archive. When it finishes the Organizer will comes up and you will be able to see your archive.

If you've already created an archive by going to Product > Archive. I would try restarting Xcode. That might not be helpful, but that's where I would start, let me know.

Adding to Matias Jurfest answer, in Xcode 12, you would need to
Set "Any iOS Device" as the selected device (top left corner near the scheme) instead of a simulator device.

Related

Xcode 7.3 does not show up any downloadable iOS simulator

Just upgrade my Xcode from 7.2.1 to 7.3. Have no idea why. Do I have choices other than delete Xcode and reinstall again? (which I highly don't like).
BTW, the documentation tab is fine. Just a blank simulators.
Update: If I click "check and isntall now", it reports:
Could not download and install OS X 10.11.4 Documentation. The certificate for this server is invalid. You might be connecting to a server that is pretending to be “devimages.apple.com.edgekey.net” which could put your confidential information at risk.
I checked cert on https://devimages.apple.com.edgekey.net, seems fine..
In Xcode 7.3 I found the following way to add older simulator versions.
1.) Choose "Window" from the menu bar
2.) Choose "Devices" from the drop down menu list
Result: Devices window opens
3.) Click the "+" icon in the lower left-hand corner of the window.
4.) Choose the Add Simulator option
Result: You can add a simulator (and download older ones).

Destination toolbar disappeared on XCode 6.4

Today in the morning I tried to compile my project to run in my device and I found the destination toolbar disappeared and I cannot choose my IOS device or IOS Simulator device as target. (I can do it in the Product/Destination Menu)
After some research I found the >> at the right on the screen and when I pushed a Scheme option appeared but it is disabled and I can't enable again.
This is what I tried with no success:
Open an old project to see if the problem was in my project
Create a new project (with Swift and Objective C but I don't think this make any difference)
Restart my computer
Hide and show the toolbar (View menu/Hide Toolbar and the View menu/Show Toolbar)
I tried all the previous options with the device connected and disconnected
I have installed the IOS Simulator 8.4 (when I run my project it runs in the last selected simulator) and XCode 6.4.
Looks like Xcode hides that menu when the window is a certain size. I have to make my window quite large before it comes back.
Not a fix as such but you can work around it using the menus: Product > Scheme and Product > Destination
You're probably running into the same issue I am. Like #BrandonWilliams said in his answer, it appears again if the Xcode window is wide enough. The underlying cause, for me at least, seems to be that in this build of Xcode (6.4) running on El Capitan beta 2 (with Xcode 7 beta installed), I am seeing duplicate simulators for iOS 8.4. And since there are two of the same version, the Schemes dropdown shows some sort of long GUID next to each one, causing the Scheme dropdown to be quite large:
I came to SO looking for an answer but realized that I had seen this issue before.
So the problem is basically that auto layout sucks (I mean it is not working properly in Xcode 6) and on El Capitan, the destination toolbar is for some reason hiding instead of collapsing properly. So when your Xcode window is narrow, the destination toolbar disappears.
But, if you expand the window far enough, it shows back up again.
In case you can't tell, in the first screenshot, the window is about 1241 pixels wide and in the second screenshot the window is 1541 pixels wide.
Go to Product then Destination and choose at which simulator or device you want to test your build.
I'm running with same problem. You can select device or change scheme using below steps:
Select Product from menu
Select Scheme or Destination
Select required Scheme option or Destination option
Alternative Solution:
The only solution is to use Xcode 7 or above. I've installed Xcode 7.1 and found Scheme/Simulator list available. Refer screenshot.
It seems that Xcode 6 or below doesn't support OS X El Capitan.
I am still seeing this problem in Xcode 7.2 on iMac with resolution 1920x1080. Resizing the XCode windows dens't help. I can have the menu bar back if I push the green button and go to full screen mode. But that's pretty annoying. This is how I finally figure out a solution that works for me. I notice that only if I open the project file that I have been working daily that the menu bar is missing. If I create a new project, the menu bar is there. And here is my solution:
Remove your project file on disc (or move it to a different folder)
Open the Welcome to Xcode window by shift+command+1
Make sure your project is no longer under this list. If it is still there, click on it and Xcode will tell you the project is not found and it will be removed.
Add the project file back and open it and I have my menu bar back (if you have moved it, simply opening it from a different file location may work I guess)
I guess the problem is that some cache value in Xcode about the project file is messed up somehow. Hope this helps.
I make my XCode screen little big and now find both options.
On XCode 9.0 beta, this worked for me: select View -> Show Toolbar from menu
right click on title bar -> select show toolbar
Fixed it by deleting the following file ~/Library/Preferences/com.apple.dt.Xcode.plist and restarting Xcode.
The downside is that Xcode preferences dropped to defaults obviously.

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.

Browse the files created on a device by the iOS application I'm developing, on workstation?

I'm developing an IOS app that creates files on the device, e.g. with NSKeyedArchiver.
During Android development it's possible to browse a device filesystem when it's connected to your workstation via USB, for instance to help with troubleshooting your app.
However for IOS I don't see anything similar under the Organizer in Xcode, to help me browse files my app creates from the workstation. Googling "iOO browse device files", "iPhone view files" etc. reveals solutions for jailbroken devices but not for regular devices provisioned for development.
How can I browse files on a device created by an iOS app I'm developing?
In Xcode's Organiser, go to your device's Summary tab. Find your application in the list, and click the disclosure triangle. Under it, you should see an icon saying "Application Data". Click the down pointing arrow to download the data, and it'll prompt you for somewhere to save it.
In Xcode 5, listed under your device in Organizer, click on "Applications" and you can see "Data files in Sandbox" in the bottom half of the window.
In Xcode 6, go to Window -> Devices, select the device, select the app name under Installed Apps, click the settings gearbox, then select Download container.... In finder, double finger tap the package and select Show package contents.
In Xcode 6, open the Devices window:
Then, select the app (in Installed Apps) and then click the gear icon and select Download Container.
Pls note, that you can view contents of downloaded .xcappdata container by right click on it and select "Show Package Contents"
iExplorer works like a charm! Just used it to export some app files! http://www.macroplant.com/iexplorer/download-ie3-mac.php
In Xcode9: / Window / Devices and Simulators
Select the desired installed app, click the gear at the bottom and Download container...
In Finder, "right-click" the downloaded file and Show Package Contents to open it in a new Finder window.
I hope it's useful. Peace.
XCode version : 10.2.1
goto window -> Devices and Simulators
and after that choose your device from the left list, choose the app from the installed app, so you can press show container for show app's contains on the new page on xcode, press download container to download it to your OSX, also you can replace an old container to the moment state with Replace container...

How do I build apps to my jailbroken iPad?

I have XCode 3.2.2 and am trying to build an app to my jailbroken iPad. I have followed the tutorial to Fake Code Sign Apps here on Multi-Touch forums. On the iPad, I installed AppSync. Still, when I tried to build my app, I got
Error Starting Executable
No provisioned iPhone OS device is connected.
I think next, I'll try Cydia's tutorial....which probably woulda made sense to do first anyway. I'll post progress here. But in the meanwhile, any suggestions are welcome.
Thanks!
Thomas
OK so clearly, I'm just an idiot. I'm using XCode 3.2.2, which only supports iPad 3.2. My iPad has 3.2.1 installed. Updating my XCode will probably fix this (non) issue lol.
There are three ways to do this:
Self-Signing (from Xcode)
Pseudo-Signing (from device)
Disable Signing
All are detailed and explained here on Saurik's site.
I went with self-signing. Here's the process for those interested.
Self-Signing
Edit Info.plist file
Located at /Developer/Platforms/iPhoneOS.platform/.
Find three occurrences of "XCiPhoneOSCodeSignContext" and replace with "XCCodeSignContext"
Create certificate.
Open Keychain Access >> Click Keychain Access >> Certificate Assistant >> Create a Certificate
give it any name
Self-signed Root
Change type to "Code Signing"
Check "Override defaults"
Click "Continue" until done
Build the app in Xcode.
Edit Project Settings >> Set "Code Signing Identity" to the name of the certificate you just created.
Select the device you want to build to from the dropdown menu (not simulator)
Cmd + B to build
Copy to Device
Get the .app file from the build directory (/build/Debug-iphoneos/AppName.app)
SSH the file over to /Applications directory on the device
Respring/ reboot
In xcode's menu bar, go to windows->organizer. I don't remember exactly what it looks like, but once you plug in an ios device (aka the iPad) it should appear under devices on the left hand side. Click on it, and it will take you to a screen with 2 or so buttons on it, one of which will be 'use for development', or something like that. Clicking this will provision the iPad for development, and everything should work fine after that. Repeat for all other ipads/phones/touches.

Resources