Page 1 of 1

iOS SDK 4.3

Posted: Wed Nov 23, 2011 2:51 am
by marksmithhfx
Hi, maybe someone can help me out... I am feeling sort of confused. I went to the dev center to upgrade. Apple lists 4.2.1 of the SDK for Lion and 4.2 for Leopard. I download 4.2 When I go to compile in LC it reports : performing iOS device builds requires the iOS 4.3 SDK platform to be installed. Really? Why does the Apple Dev Center list 4.2.1 and 4.2 as the most recent versions? I must be missing something.

Help!!

-- Mark

Re: iOS SDK 4.3

Posted: Wed Nov 23, 2011 5:02 pm
by CALL-151
Mark,

I think you're confusing the Xcode version (4.2) with the iOS SDK version (4.3 for you, 5.0 for some). Try the following:

1. In LC prefs, select Mobile Support. Under "Location of developer root for iOS 4.0 and above" point to the folder containing the iOS 4.3 SDK (usually in /Developer)
2. In your Standalone Application Settings for iOS, make sure the minimum iOS version is 4.3 or lower.
3. Under the Development pulldown menu, make sure the Test Target is either iPhone or iPad Simulator 4.3

Re: iOS SDK 4.3

Posted: Thu Nov 24, 2011 1:56 am
by marksmithhfx
CALL-151 wrote:Mark,

I think you're confusing the Xcode version (4.2) with the iOS SDK version (4.3 for you, 5.0 for some).
Yes, quite possibly. I went to the iOS Dev Center, selected "Download the latest build of iOS SDK" which took me to Xcode 4.2 (for Leopard, 4.2.1 for Lion). I just downloaded and installed that (not knowing any better). Apart from selecting Xcode (which lists my version as 4.2) how do you tell which version of the SDK is installed?
CALL-151 wrote:Try the following:

1. In LC prefs, select Mobile Support. Under "Location of developer root for iOS 4.0 and above" point to the folder containing the iOS 4.3 SDK (usually in /Developer)
Actually it still says "Location of developer root for iOS 3.2 and above" (I'm using LC 4.6.4). It does point to the /Developer folder.
CALL-151 wrote:2. In your Standalone Application Settings for iOS, make sure the minimum iOS version is 4.3 or lower.
The minimum is set to 3.1.3
CALL-151 wrote:3. Under the Development pulldown menu, make sure the Test Target is either iPhone or iPad Simulator 4.3
It is iPhone 4.3

Hopefully that will give you some more clues. I haven't upgraded to LC 5 yet because I generally wait as long as I can before upgrading. iPhone is at 5.0.1 which turned out to be incompatible with my previous SDK/Xcode so I had to upgrade. It seems to recognize the iphone fine now but now LC won't compile.

Thanks for replying. -- Mark

Re: iOS SDK 4.3

Posted: Thu Nov 24, 2011 3:33 pm
by marksmithhfx
Hi Call-151, I solved the problem by upgrading to LC 5.0.1. That was it. Everything worked fine after that. But apart from that there is also this hole in my understanding... I still do not know how to tell which version of the iOS SDK I have installed. However, I'm not sure that is important. Thanks again for your help in trying to debug the problem.

-- Mark

Re: iOS SDK 4.3

Posted: Thu Nov 24, 2011 10:33 pm
by CALL-151
Glad that did it. You should be able to tell which SDKs you have by looking in the Mobile Support section of LC prefs. There should be a line that says "Available Simulators:". You can also look inside the root folder (e.g. /Developer) or search in Spotlight for the folders iPhoneOS4.3.SDK, iPhoneOS5.0.SDK, etc.

Re: iOS SDK 4.3

Posted: Sat Nov 26, 2011 4:29 am
by marksmithhfx
CALL-151 wrote:Glad that did it. You should be able to tell which SDKs you have by looking in the Mobile Support section of LC prefs. There should be a line that says "Available Simulators:". You can also look inside the root folder (e.g. /Developer) or search in Spotlight for the folders iPhoneOS4.3.SDK, iPhoneOS5.0.SDK, etc.
Thanks Call-151. And one more. Under the Apple Menu -> About this Mac -> More information -> Software -> Developer lists the SDK's installed. In my case

SDKs:
Mac OS X:
10.6: (10K549)
iPhone OS:
5.0: (9A334)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
4.3: (8F192)
5.0: (9A334)

Cheers,

-- Mark
PS Ask me in 6 months (when the next upgrade comes around) if I will remember that :D

Re: iOS SDK 4.3

Posted: Sat Nov 26, 2011 5:51 am
by marksmithhfx
Talk about the never ending problems. Ok, I've updated everything and I am using LC 5.0.2 and the latest SDK (5.0) and simulator and Xcode 4.2 and can download software onto the iPhone just fine. BUT... (isn't there always a "but" :D ) The exact same program that last week, before I upgraded everything, was handling orientations just fine now seems locked into portrait mode on both the sim and iPhone. Rotating the iphone does nothing. Same on the sim. I've edited nothing in the application. The standalone settings are the same. etc. However, one change I seemed to have noticed in LC 5.0.2 (and I just checked and this was not in 4.6.4) is that where it used to say "initial orientation" it now says "iphone initial orientation" and where it used to say "Supported Interface Orientations (and listed all 4) it now says "iPad Supported Initial Orientations" (notice that gone is any discussion of "supported interface orientations")?. So, is the supported interface orientations now being handled differently on the iPhone?

Some days I feel like I've fallen down a rabbit hole :shock:

-- Mark

Re: iOS SDK 4.3

Posted: Sat Nov 26, 2011 4:58 pm
by CALL-151
LC 5.0.2 is a dp release, and what you're describing may be a bug. I'm not a dp participant so I can't confirm, but you should report this as an issue using the resources available to you as a member.

Re: iOS SDK 4.3

Posted: Sat Nov 26, 2011 10:13 pm
by marksmithhfx
CALL-151 wrote:LC 5.0.2 is a dp release, and what you're describing may be a bug. I'm not a dp participant so I can't confirm, but you should report this as an issue using the resources available to you as a member.
Hi Call-151, I'm pretty sure its the same issue with 5.0.1 (which is why I upgraded). I'm pretty sure its either a bug or undocumented change because the release notes for 5.0.2 (and .01) say this:

"On startup, the engine reads the settings of 'initial orientation' and 'supported orientations' from the
plist (as configured by the iOS standalone settings pane).... To ensure that your application works in only specific orientations
from the outset, you need only configure the options in the standalone builder. In particular, you need take no further action in
script."

However, the options for "supported orientations" do not appear (to me anyway) to be in the standalone settings anymore. There may be another way to do this. I'll ask on the revolution user forum.

Thanks

-- Mark

Re: iOS SDK 4.3

Posted: Sun Nov 27, 2011 3:40 am
by CALL-151
Interesting. Orientation for the iPad continues to work as it did previously, but to allow orientations on the iPhone it appears that you now need to follow the procedure described on p26 of the iOS release notes. Have you tried creating a comma delimited list as described?

Re: iOS SDK 4.3

Posted: Sun Nov 27, 2011 9:36 am
by marksmithhfx
CALL-151 wrote:Interesting. Orientation for the iPad continues to work as it did previously, but to allow orientations on the iPhone it appears that you now need to follow the procedure described on p26 of the iOS release notes. Have you tried creating a comma delimited list as described?
Hi Call-151,

I did that and it didn't work. I posted my code on the revolution mailing list and someone pointed out an error (I had spaces after the commas in the list... silly me for thinking I could create an "english language" like structure... but I digress). The following works:

Code: Select all

on startup
   iphoneSetAllowedOrientations "portrait,portrait upside down,landscape left,landscape right"
end startup
The old standalone config options have apparently disappeared.

As always, thanks for your help. -- Mark