Getting iOS version before enrollment (Without Agent) - iphone

How to conditionally set the
<key>AccessRights</key>
<integer>$enrollment_code</integer>
in MDM enrollment profile based on iOS version its getting installed..
like 5.0 and above it must be 8191
and below 5.0 it needs to be 2047
In the Phase1: profile service, we do not get the iOS version..
So where to get the iOS version before enrollment.
PS: I am enrolling devices without agent (So agent cannot be an option to send it)

You can use the User-Agent reported from the browser.

Related

XCode 4 not detect iPad

I have iPad 1 and i want to test my app on it.
i connect the iPad to the computer, and the IOS Device not change to the device name.
when i press on Run i get this msg:
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version.
Connect an iOS device with a recent enough version of iOS to run your
application or choose an iOS simulator as the destination.
Any suggestion why it happen?
The top explanations for this error are
1) Your iPad is running an OS version newer than that supported by Xcode
or
2) You have not yet provisioned your iPad
Ok
I find the solution :
in IOS Deployment Target change it to the minimum version you want the app will work
You need to add the UDID of the device to your developer mobile provisioning profile.
If you have Xcode 4.2 this can be done actually automatically, else you'll have to do this manually (get the UDID, log into the developer portal, add the device's UDID to the devices list, at that device then to your developer profile, download and install that profile, select this profile as a developer profile for your current app)

Verizon iPhone Provisioning Problems

I upgraded to XCode 4 and a Verizon iPhone 4. After installing I am unable to sign and run anything on device. Yes I HAVE added it to the portal (using organizer and on the website). I've downloaded the certificates, and everything checks out.
I get the message: XCode cannot run using the selected device. No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination.
Could this be due to the Verizon iphone being 4.2.8 and not 4.3?
EDIT: Also, my ipad runs fine on it. Both devices show up in organizer, have the team provisioning certificates, and show up in the portal, etc...
-d
The fact that the iPhone is from Verizon has absolutely nothing to do with provisioning.
Try removing all of the certificates that are installed on the device currently, and try again. If the device is included in the certificates, then you should be good to go. Also ensure that you are running a supported iOS version on the device as set in your Xcode project.
The foremost thing you'll want to do is make sure your app's deployment target isn't iOS 4.3 and is instead something lower. (Base SDK should remain as Latest iOS.)

iPhone Ad Hoc Distribution Build does not work on 3.x Devices

We have made many Distribution Builds, so we are familiar with the daunting iPhone provisioning process.
We have entered all the devices into the Provision Portal, we have downloaded all certificates, and when we distribute our BETA build, it is only working for users on iOS 4.x. This is strange behavior because it wasn't doing this before.
Our iOS Deployment Target is set to: iOS 3.0
Base SDK is: iOS Device 4.1
Don't you think if we had a reference to a Base 4 SDK method, that it would at least install, but then crash? We are getting the infamous:
"The executable was signed with invalid entitlements"
This seems like an odd error when other all other devices that are on iOS 4 are working and all the iOS 3 devices are getting this?
We are stumped, thanks!
Are you doing a build and archive? You might want to try building it and manually zipping it along with the provision and sending that to your beta testers. I had this same problem with iOS 3 devices and zipping it manually seemed to work.
Versions of iOS prior to 3.2 cannot take advantage of an embedded provision file (included in the zip). For those devices, you have to install the .mobileprovision file separately by dragging it into the library in iTunes.

''Install Prohibited" iphone SDK

I am a registered Apple dev with the certificates, and mobileprofiles that i need. I have made several apps in xCode that I would like to test on my 3GS, I have registered my 3GS as one of my allowed devices but it still will not install giving the install prohibited error. The Xcode is set to same profile as my iphone has. Just dont kmow what to do. well i guess i =ll download sdk 4.1
You will get this exact message if Restrictions are enabled on the device, specifically the restriction on installing Apps.
You need to upgrade your SDK to 4.0.1 to use it with iOS 4.0.1 devices.
Is the iPhone OS Deployment Target in your Build Settings (either for the project or for the target) set for an OS version higher than the one on your 3GS?

If I install the 3.0 SDK, can I still make 2.0 compatible apps?

I've been putting off installing the 3.0 beta SDK in case I can't make apps to target 2.0. If I install 3.0 on my computer and iPhone, will I still be able to submit apps to the app store for users with 2.0 iPhones to download? Will I have to wait until 3.0 is released to submit more apps?
Actually, I suggest testing on OS 3.0 as it's a requirement your app doesn't break on the new OS.
"New iPhone applications will be
rejected unless they are ready for
Apple's forthcoming iPhone 3.0
firmware upgrade, developers have been
informed."
You can still build for 2.* but I can see how testing on only one device can make you nervous. There is no way to rollback to a previous OS once 3.0 has been installed. So, if this device is also your everyday cell phone, make sure you accept possible bugs. (though I haven't heard of any seriuous problems. OS 3.0 is worth it)
As for the issue you address. Apple says:
"iPhone SDK for iPhone 3.0 can not be
used for submitting iPhone OS 2.2.1
applications to the App Store."
I think they didn't express themselves too well. While technically spoken, they are right, you just have to select SDK for 2.2.1, and you're good to go.
Yes you can build 2.* apps. No you can't submit pre 3.0 apps to the app store. I can't paste the link for you since I am considered a new user, so just google "iPhone 3.0 app submit".
I understand that you wrote this a while ago and you've already accepted an answer, but I have some more advice:
You should install two copies of the SDK, the latest stable version (in "/Developer") and the latest beta version (in "/Developer Beta" or similar), as per these instructions.
For building 2.x applications, you set your "Base SDK" to 3.0 and your "iPhone OS Deployment Target" to 2.2.1, as per these instructions.
You can get it free or roll back if you do not like the new software at http://www.felixbruns.de/iPod/firmware/
download then follow these steps
1.) after it downloads open itunes and plugin your ipod/iphone
2.) Hold shift if on windows (Option key on mac) and then click resotre
3.) Select the ipod file and then wait for restore
4.) you will need to set up as new ipod (it will be slow if you restore from backup
The installation of the 3.0 SDK mentions weaklinked frameworks --
The Xcode UI now allows you to
designate a library or framework as
weaklinked, to support building with
newer SDKs while targeting older OS
versions.
I have yet to accomplish this, but will update once figured out.