How to compile apps for multiple versions of ios sdks? - iphone

I have an app, and I want to compile it for iOS 4.1 iPhone system, but I only have SDK 4.3 on my Mac. Can I compile that for 4.1? How can I configure it? Or so I need to install 4.1 SDK onto my Mac? How can I install it?

You can use SDK 4.3, XCode > Select a project > Project menu > Edit Project Settings > scroll to iOS Deployment Target > select a lower version your app supports

Related

Running the XCode 3.1 application in XCode 4.1?

I am new developer on iPhone. My problem is that I have installed the XCode 4.1 after changed the settings in the edit project settings it shows XCode 3.1 is missing so if any one know about it give me solution to solve the problem.
you should set the base SDK version in project settings and Target settings as well.
you should check if you have specified the base SDK at both places.
Best of luck.
click on your project under project navigator. then go to build settings
change the base SDK to your 4.x. do it in both project and target.
See "To Edit a Build Setting…":
http://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Building/Building.html#//apple_ref/doc/uid/TP40010215-CH9-SW5

XCode can't find base SDK

XCode 3.2.3 Beta does not allow building for below 3.2.
I opened a project that was made in an earlier XCode.
For some reason, the base SDK is reported as missing even after changing it to 4.0.
Other projects from earlier XCode do not have this issue.
What can I do?
If you can't choose the SDK at the top left of x-code you have to first
set the base SDK in the project settings.
Project -> Edit Project Settings.
Then choose the "General" tab.
At the bottom you can choose "Base SDK for all Configurations:"
Happy to hear it worked!
—
Editing the .pbxproj in your .xcodeproj might help. In the XCBuildConfiguration section there are values for SDKROOT.
This question has more details on the situation: Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs
I found I had to edit the Base SDK setting for each of the different build configurations, then the error went away. You need to fix "Release", "Debug" and any others.

How to switch versions of iPhone SDK?

Now that I installed SDK 3.2 for my iPad development, I need to build with the previous version for my old iTouch. Is this possible to switch or do I have to uninstall 3.2, install 3.1.x and re-install 3.2 in a "versioned" folder?
If you go to build settings (right click on your project and click info) you can set the base sdk for the project. the setting is right up the top of the list. if you set it back to 3.0 (for example) then you can choose all releases from then till now.

iPhone 4.0 Beta compile for 3.1.3

I downloaded the iPhone 4.0 Beta. But for my projects I need to compile for 3.1.3 to be able to still submit my projects to the App Store. If I run an old project that isn't a problem I can see all the versions, but when I start a new project I can only pick the 4.0 beta, how can I fix this?
Open your project. In XCode open the project settings (Project -> Edit Project Settings). Choose the build tab, and pick an appropriate Base SDK from the options under the architecture group.
You should not submit apps with beta versions of the SDK. Rather install beta SDKs alongside one for production builds.

IPhone XCode Version 3.2.1

I downloaded and installed Version 3.2.1 of XCode.
On the top left dropdown, I can only see the option of building it in 3.12 and 3.13.
Any ideas one how to build it it 3.1?
Thanks,
Chris
digadesign is online now Report Post Reply With Quote
Check your project settings. From the Xcode menu Project -> Edit Project Settings. At the bottom of the general tab there is an option to set the base SDK for the project. You should be able to set 3.1 from there and it will then show up in the project.