iOS developer build does not install on one iphone 4S - ios

I have a developer build, made using iOS 6 library, targeting iOS 4+ devices, and it installs and runs on 4 different iphones, and 2 ipads. But for some reason, on one of the iPhones 4S with iOS 5.1.1, the app starts installing and get stuck at about 50% of the progress bar.
The carrier is Verizon, the phone has been bought this year.
Anyone has any insight?

The UDID of the device might not be present in the provisioning profile you signed with.

I suggest watching the Device Console in the XCode Organizer screen. You'll be able to see any error messages during the install and determine what the issue is. You can watch the console even if you're installing via TestFlight or some other mechansism.
If the device is thousands of miles away :) then you can have the user collect the console logs for you via the iPhone Configuration Utility. Per Apple Docs:
Getting Console Output Without Xcode Sometimes you may have to debug a
problem "in the field", or tell a tester how to gather more
information and send it to you. When installing Xcode isn't an option,
download the iPhone Configuration Utility to save Console output. It
is available for both Mac OS X and Windows.
1) Plug in the device and open iPhone Configuration Utility
2) Select the device under DEVICES in the left-hand column
3) Select the Console tab
4) Press the "Save Console As..." button in the lower right of the
window to export the Console log.

Related

Instrument with iOS 9.3.1 [duplicate]

I have been trying unsuccessfully to profile my device (via Instruments) using the latest version of Xcode 7.0.1 (7A1001 released 9/28), as well as the previous version of Xcode 7 (7A218), as well as Xcode 7.1 Beta 2 (7B75).
My device is an iPhone 6+ with iOS 9.0.1 installed - the latest GM release of iOS9. I am able to run / debug applications on this device without issues.
In the screenshots below you can see that my device is disabled (greyed out) in all screenshots in all versions. I am able to profile other devices running iOS 8.4.1 without any issues.
Does the current version of Xcode not support profiling against iOS 9.0.1 or is there some kind of configuration setting or known work around for this?
Xcode 7.0.1:
Xcode 7.0:
Xcode 7.1 beta 2:
TL;DR - Perform a complete reboot of your device; restart Xcode & instruments; select "Open Xcode" if prompted to enable the device for development.
Update 3/31/2016: I haven't encountered any issues with the latest version(s) of Xcode (7.2.x, 7.3), so it seems that the stability here has been improved.
I believe I may have finally gotten this to work properly. Detailed steps:
Unplug the device from your Mac & power down the device completely (hold the power button for several seconds; slide to power off).
Close Xcode and Instruments.
Restart the device & once it has booted completely re-connect it to your Mac.
Re-launch Xcode. Here, my device showed as disabled and Xcode indicated that the device was not available for use.
Open your project; clean (Shift+Command+K), Build (Command+B), Profile (Command+I).
After Instruments launched I noticed that the device was enabled. Upon selecting it, a message was displayed with the title "Enable this device for development?" and message "This will open Xcode and enable this device for development." (Note that this only happened to me the first time I went through this process even though I had already been using the device for development - whereas some users have also reported that they are not presented with this dialogue.)
Click "Open Xcode". Here Xcode did not prompt me for anything nor was anything displayed - no additional messages indicating anything had been done or that the device was or was not available for development. Opening the Devices window, the device appeared to be available. (I have not been presented with this option for subsequent occurrences.)
Now I was able to select the device in Instruments and profile it.
As a side note, I was also again able to delete installed apps from the Devices window (I realized that this was not possible to do previously).
I'm unsure how my device ended up in this state however I will be on the lookout to see if this continues to occur.
Please note that this was done using Xcode 7.0.1.
Update: My device seems to lapse back into not being able to be used for profiling some time after performing these steps - I've had to reboot my device again in order for it to be available for profiling. Not sure what is triggering this behavior but I will file a Radar for this.
Close instruments -> reset your device by long pressing home and power button -> restart instruments. Works for Xcode 7.3.
According to Apple staff on the developer forums the behaviour of this issue is greatly improved in the Xcode 7.3 betas, so one easy solution is to try upgrading Xcode. I've upgraded and it seems to be behaving so far.
This issue still occurred with XCode 10.3 and iOS 12.4.2
I restarted the device only, and it worked.

iPad with iOS 8 or 9 : Can't install enterprise app

I have been trying to install an .ipa using itms-services to an iPad with iOS 9.1. However, it shows the "Install..app?" and "Unable to install.." pop-ups the same as asked in this question:
iOS 8 - Can't Install Enterprise App
The installation is successful in iPhone with iOS 9.1 (same version as iPad). I tried the installation in another iPad with iOS 8.1. I tried the suggested fixes in the accepted answer of the above mentioned question. Also, tried cleaning the Downloads folder using iExplorer. Still unable to download.
I'm able to install app using iTunes, so it's not a provisioning profile issue.
Any suggestions? Thanks in advance.
There are many reasons why this stupid error can occur. To be overly cautious, let's..
1) delete the app from your ipad
2) delete all of the related provisioning profiles from your ipad
3) in xcode make sure you are using the provisioning profile correctly associated with the enterprise account (bundle identifiers must match properly) .. also make sure the DEPLOYMENT TARGET is lower than the ios version on the ipad
4) in xcode -> product-> clean
5) xcode -> product-> archive
6) while its building, turn your ipad off then back on
7) upload the enterprise build
8) try to redownload and install it on the ipad
there is a VERY VERY small chance that your wifi is corrupting the downloaded file, to check, see if you can get it to install on your iphone via wifi as well.
connect the ipad to your computer via usb, while doing the install, open up in xcode -> window -> devices, pick your ipad in the left column and hit the very tiny little square with an up arrow in it to show the console.. clear it before you open the app, then open the app and see what it says, this will give you more clues hopefully of whats going wrong

Xcode Server 4 not seeing any new attached devices

Xcode Server running on a Mac mini can no longer see any iDevices attached to it. Initially was able to see an iPhone 4, but no other devices since. Anyone have any suggestions?
Additional info:
Test Bot is configured to run all Simulators and devices
Test Bot runs in Xcode 6 and completes tests against Simulators but not any devices
iPhone Configuration Utility shows attached iDevices as expected
Xcode 6 on the server (mac mini) can see the attached iDevices
iDevices have the correct provisioning profiles
(possibly related) Server's app icon in the dock has a no go/ stop icon overlaid on it:
For anyone else encountering this issue: my solution was to just delete the XCode server application and reinstall.

iOS 8 Read console logs from user devices without installing Xcode

Any ideas how to get console logs from a user device running iOS 8?
Previous methods, including the iPhone Configuration Utility, do not seem to work with iOS 8 - the latter just doesn't show anything for the console. The older related iOS apps stopped working since iOS 7.
Installing Xcode is not an option, since the user is most likely running Windows, and in any case will not tolerate a multi-GB download and install.
We have an other option, which is, by installing itools and follow the below navigation where you can see the console logs.
Connect Your device to Windows. click on itools->Under iPhone->>Advanced->System logs.
Install itools from this location http://itools-for-windows.en.softonic.com/
iTools
To get real time iOS system logs on windows machine.
Note: Based on iOS / Xcode / iTunes (overall Apple) updates, this information is subject to change. With current iOS version 8.1.3, the iTools software version 3.1.7.6 works great.
Open iTools.
Connect your iDevice.
In the left pane under your device, choose 'Advanced'.
Click on 'System Logs'.
You'll get real time system logs just as Console log in Xcode.
As of iOS8 update iPhone Configuration Utility cannot get the logs. from a tutorial in testflight website, they say specifically for iOS 8 devices use xCode. So I guess you are out of luck.

iPhone 4 - no provisioned iphone os is connected

I'm trying to install an app onto an iPhone 4 and I get:
no provisioned iphone os is connected
I am using:
Xcode 3.2.3
iTunes 9.2
iPhone 4.0 with iOS 4.0 (8A293)
I have the development provisioning profile in XCode and in the phone.
The Organizer window shows the iPhone 4 with a green circle next to it. I have the correct App ID in the bundle identifier in Info.plist.
I've tried powering on/off phone, stopping/re-starting Xcode and iTunes with no luck.
Any ideas what is wrong?
If the profile is installed, you are probably trying to install the app on the device with the build configuration set to "Distribution"... you need to set it to "Debug" or "Release" in the drop-down menu in XCode on the main window.
So, build options should be "Debug" and "Device"
Did you check the status of the Organizer? From Xcode, go under Window->Organizer, and look under the DEVICES section on the left pane. It should show the connected devices, and provide a more detailed explanation (e.g., device is not enabled for development, OS installed on phone is not supported by SDK, etc).
One possibility is that you are running 4.0.1 on your phone, but only have the 4.0 SDK installed.
Double check the provisioning profile is tied to the build you are doing: Right click-> Info on the project icon in Groups & Files then Build and scroll down to Code Signing.
There seem to be a million different things that can go wrong with getting the app to the iPhone, I never get it right the first time.
I've followed this before: http://adeem.me/blog/2009/04/24/tutorial-list-guideline-for-building-ad-hoc-application-for-iphone/
It's for Ad Hoc but most of the steps are the same.
I figured out what the problem was. I had the build set to iPad and I was trying to download to an iPhone! I hope this helps someone else.

Resources