Build Run = No SDK with name of path 'iphoneos4.0'

I picked up Unity iPhone basic recently, downloaded “penelope” example app to test if I could get my ipad working with unity.

Followed the stupid number of steps to get the developer testing working.

Now when I try to Build Run in Unity it pops up Xcode and spits out this error

“There is no SDK with the name of path ‘iphoneos4.0’”

I see that my iphoneSDK version is 4.2 not 4.0, so I manually adjusted it in the project settings-- but this does not help. It still wants 4.0 when I try to build.

If I adjust Xcode to try and build from 4.2 version, then close Xcode, and Build Run with Unity again, it is back to begin set to 4.0.

Unity seems to be lacking clear and correct documentation(I see a wiki site but it lists files and documents that simply do not exist on my machine) on how to build applications and test them on iPhone/iPad.

Also it would be helpful if the “help” button in Unity actually would work. I click help->unity manual… nothing happens. Same for all other documents. This is on a macbook air.

Have you set the SDK Version to 4.2 in the Unity Player Settings?

Find it through Build Settings on the File menu or Project Settings on the Edit menu.

Sorry to resurrect this thread but I have a similar/the same problem. I’ve downloaded UnityRemote from the Unity website today. I ran it using Xcode and get the same 'error: There is no SDK with the name or path ‘iphoneos4.0’ ’ message. The message I get at the top left of the Xcode window is 'Base SDK Missing. I installed Xcode this morning and rebooted the machine. The latest Os version on my iPad is version 4.3 which may have come out today. Could it be that the latest build is incompatible with the current UnityRemote?

In the Xcode FileName window I have CoreGraphics.framework, OpenGLES.framework, UIKit.framework and Unity Remote 3.app displaying in Red which I assume means they are missing. I’ve right clicked on the Unity Remote blue icon just under Groups Files and selected Get Info. In there I have Current Mac OS selected for the Architectures/Base SDK. I am completely stumped. Any help is much needed.

Edit - If you alt + click where it says 'Base SDK missing you can select the iOS from the dropdown that appears. It appears to have solved the problem. Many thanks to the nice people over on Unity Answers for this.