I’m just wondering if anyone else has see them. My Auto-Lock can’t be selected, and the only option for the passcode lock time is Immediately.

I installed iOS 4 (GM) from WWDC did a clean install and checked the pass-code option, it was fine. Then, when I installed just my apps and content it locked me out again. I didn’t install from backup.

I’m wondering if it has something to do with my profiles… Although I did check some other people’s iPhones at WWDC and did not have this problem.

Update: Turns out Google’s Exchange policy is to blame -

“Exchange servers can require that devices have specific auto-lock settings. iPhone honors those settings. If a particular Exchange server requires that you have auto-lock set to 1 minute, then your auto-lock will be set to 1 minute, and you cannot change it as long as your iPhone uses that Exchange account.” ﻿

This is not exactly that accurate. It’s true, I was surprised to see a Microsoft Bing demo…. and I hate Microsoft more than the next guy, but, I just felt so bad for this little girl on stage trying to get this demo to work with a room of 5000 Apple folks all thinking the same thing… ‘well, that’s par for the MS course’. I mean lets be honest, what true Apple fanboy does not want to see MS fail but when that demo finally worked after like the 10th time we all applauded because we were so relieved that her.

I think the feeling in the room after the demo was more: Microsoft is still making crap even when you give them a great platform and I hope that girl does not kill herself.

One can’t help but appreciate the irony here. The initial friendship between Apple and Google was surely inspired in part by a common rival in Microsoft. Now the tables have turned, with Apple and Microsoft sharing the stage against Google. The reversal is so severe that a busted Bing demo in a later session drew heavy applause upon finally working. A WWDC audience would not have been so kind to Microsoft in earlier years.

Get the Ad Hoc Xcode Target Build Setting right

In Xcode double click on your target and check it against these screenshots. Since this is an AD Hoc build you want to make sure you select iPhone Distribution . You also want to make sure you have setup your Signing Entitlements properly ( Check the first link in the resources ) only for the Ad Hoc Configuration.﻿﻿﻿

Important: If you set the Entitlements entry for Ad Hoc configuration make sure it is unset for Debug and/or Release configurations. Otherwise you will see:

Error launching remote program: failed to get the task for process﻿

After some trial and error I found using the Automatic Profile Selector (Recommended) -> iPhone Distribution under the Code Signing -> Code Signing Identity worked the best.

Testing your Ad Hoc Build

If you are doing an Ad Hoc build don’t bother doing a ‘Build & Run’ from Xcode. Ad Hoc builds are meant to be sent to a tester so what you want to do is a ‘Build’ and go to you build dir inside of your Xcode project, take the .app file from inside the ‘Ad Hoc-iphoneos﻿’ folder and follow the instruction from the link below: Apple - ﻿iPhone Development Guide -﻿ Publishing Applications for Testing﻿﻿ – Instructions for Application Testers.