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

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

Related

Is there a way to test my Xcode 7.2-compiled app with iOS 9.3?

I have the iOS 9.3 beta installed on a testing device as I'm running a few 9.3-compiled apps, but I also have an old app that is compiled in Xcode 7.2. I can run the app on any iOS 9.2 device with ease, but if I try to run it on the one iOS 9.3 beta device, I get the "could not find Developer Disk Image" error.
Xcode 7.3 includes some updates to Swift, so I'd have to change a great deal of my files, and I just want to test to see if it's working fine. Is there any way to do this without having to change a lot of Swift code? It's on the App Store compiled for 9.2 and I can run it on my 9.3 device, so I don't understand why it's so difficult.
If you want to avoid the beta version of Xcode from potentially altering your original project, just make a copy of the project and then just open it up in the beta version. If you have an app running in Swift 2.1.1 (Xcode 7.2), the differences to Swift 2.2 (Xcode 7.3) are pretty modest. And if you do this with a copy, you can be confident that your original project won't be altered.
If you don't want to do that for some reason you can install apps from a production version of Xcode on a device running a beta version of iOS:
First, you want to make sure you have the profiles installed on your beta iOS device. The easiest way to do this is to run some "Hello World" app on your beta device from the beta Xcode. If prompted to add a team/profile onto your device, you should go ahead and do so, like usual.
Quit the beta Xcode and start the production Xcode and open the project for the app you want to install. Select "Generic iOS Device" where you choose the active scheme in jump bar and then build the app. You should then see the .app file (not in red) in the Products folder in the "Project Navigator" tree in the left panel.
Install the app on the device by opening the devices window (shift+command+2) and selecting the device in question. In the right panel (or top right panel if you're showing the console, too), you'll find a "Installed Apps" section. Just drag the .app file from the Products folder into this installed apps section.
Clearly, if you have other apps you want to install, you can just repeat steps 2 and 3 as appropriate.
There are a bunch of different ways to install an app on a device, but I find this is the easiest for one-off installs with a device sitting in front of me. You won't be able to debug if you do it this way, but you can at least fire it up, run it through its paces, watch the device console for any debugging messages you may be NSLog'ing, etc.

Xcode 6.1.1, Yosemite, cannot add iOS device for testing

Since updating to Xcode 6.1, I cannot add any iOS devices to run on. Clicking add in the device window only asks to install more simulators. Itunes is 'seeing' the devices connected to the computer, but not Xcode.
Normally the devices I have on hand are an ipad2 running ios 7 and an older ipod touch running ios 5.1. I have set the build targets in the xcode project to include at least ios7.x but still can't see any device.
I have reviewed all my certificates and provisioning profiles in the developer portal. The ones generated by Xcode 6 seem to all start with "XC:..." If I generate and then download any of the older ones, they are greyed out in the add provisioning profile window from devices in Xcode.
Obviously, its critical that I can run on attached devices. Any suggestions would be appreciated.
thanks
r
Go to Windows -> Devices (or ⌘Shift2). Click on the device in the left column, and then "Use for development." If you don't see it there, you may need to restart Xcode, the device, and/or your computer.

Building apps that will run under ios7 from xcode 4.2 ios 5

Extremely new to the xcode / ios world, so I apologise in advance .....
My dev machine is an old mac-mini running Snow Leopard and xcode 4.2
I have built an executeable that I want to put on my ipad, which is running at ios7.
In xcode, I did all the provisioning stuff and I see the following message :
The version of iOS on "Daves iPad" does not match any of the versions
of iOS supported for development with this installation of the iOS
SDK. Please restore the device to a version of the OS listed below,
or update to the latest version of the iOS SDK
I'm not sure I can ( or want ) to do either of these things. As far as I know xcode5 won't run on my machine, and I don't really want to downgrade my iPad to ios 5
Am I missing the point? Should I expect to be able to run ios5 executeables under ios7? If I should, how do I get them on to the ipad?
Yes, you can run iOS 5 executables on iOS 7, but you can't run a debug session on an iOS 7 device from anything older than Xcode 4.6.3.
I think the best you're going to be able to do is to build the app, package it into an IPA, then install it on your device and run it from iTunes.
You can create .ipa file from xcode, here is the link. But before that you should have installed provision profile for app distribution. Your testing devices should be listed there in iOS Provisioning Profiles (Distribution) on Apple Developer Member center -> Certificates, Identifiers & Profiles.

Xcode Developer Preview: Cannot Run on Device

When trying to run any project in an Xcode Developer Preview (Xcode 5 DP6 in my case), the app is not started and the following error message appears:
Could not launch "" - No such file or directory (/private/var/mobile/Applications/741F0826-E354-4E13-9CC3-0FB3A66E8798/.app)
The solution was very simple in my case, in Terminal just execute
sudo xcode-select -switch /Applications/Xcode5-DP6.app/Contents/Developer/
with the path for the currently used Xcode Developer Preview.
Do not forget to switch back when developing on the previous stable Xcode version again - especially when archiving for AppStore submit.
I faced the same problem, I did following things to sort out my problem:-
1) Changed "don't sign" and "iPhone distribution" to my valid developer provisioning profile in Xcode's build setting.
2) Quit Xcode.
3) Uninstalled App from device.
4) Unplugged device.
5) Plugged in device.
6) Ran Xcode
7) Built and Ran App.
Thats it :)
This has a very simple solution (works on every Xcode so it's not NDA thing):
Kill all Xcode running
Delete the app from device (if there is any), Restart your device and disconnect it (if was connected).
Open organiser in Xcode and check that device is connected and used for development, if not select "use for development"). Device should be on and connected.
Check the signatures are good.
Build& run.
This should work. Let me know if it doesn't.
I worked on this issue for about an hour, trying everything on every post I could find on SO, but nothing worked. I then compared my project settings to another project that did run on iOS and found the issue was MACOSX_DEPLOYMENT_TARGET was set to 10.7 on the iOS build. I share the same project for my iOS and OSX targets for each app I make, so it's easy to see how this happened. I deleted the setting at the project level, added it to the target level for each OSX target, stripped and built the iOS target and it finally ran! Not to say the other solutions are wrong here, there just could be multiple causes.

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