How to develop iOS 3.1.3 app in Lion? - xcode

I want to develop application for iOS 3.1.3 in Lion OS (10.7.3). Can I develop it? What Xcode I must use to develop iOS 3.1.3 app? Now I use Xcode 4.2.1 and I can create iOS 3.1.3 project cause iOS 5.0 have a different type with 3.1.3.
Thanks before. Regards. :)

You can download additional SDKS from the XCode->Preferences->Downloads. Install older iOS SDK's and simulators, as well as debugging tools from here. After downloading the iOS 3.x and 4.x SDKS, you can build apps that will run on older iOS versions. You then need to set the build versions in the project settings to whatever SDK you want to build. However, you must know that while developing for older versions is a great practice, it may end up being a lot of extra work because different features are not supported (I.e. ARC memory management). Lastly, building for iOS 3.x may be less-useful at this point, because iOS 3 is going to be deprecated in the upcoming months. Just a few things to consider.

To Change your IOS SDK setting . Simply create your new project and click on your project tab(LEFT PANE).
After that select PROJECT in next LEFT PANE .
After this new tabbar appeared there is 2 tabs INFO/BUILD SETTING .
Select BUILD SETTING . There you find ARCHITECTURE>BASE SDK.
In Base SDK menu you can select your required SDk to develop your application.
Hope this will help you.

Related

Your application is using the 'HealthKitUI' framework

I recently updated Xamarin. Ever since that time, I have been unable to build my iOS application due to this error:
Your application is using the 'HealthKitUI' framework, which isn't
included in the iOS SDK you're using to build your app (this framework
was introduced in iOS 9.3, while you're building with the iOS 9.2
SDK.) This configuration is only supported with the legacy registrar
(pass --registrar:legacy as an additional mtouch argument in your
project's iOS Build option to select). Alternatively select a newer
SDK in your app's iOS Build options.
Has anyone else seen this? I haven't changed anything in my code.
Looks like you need to upgrade to Xcode 7.3. Could you perform that update and let us know?
iOS 9.3 requires Xcode 7.3 support, these were added in Xamarin.iOS 9.6.0.0: https://releases.xamarin.com/stable-release-ios-9-3-xcode-7-3-support/
Also, check out the following for information on iOS SDK releases against Xcode releases.

Is it possible to install iOS 7 SDK on Xcode 6?

I have Xcode 6 installed but realise that I am only able to develop for iOS8. I am aware that this beta development kit is meant for the development of the iOS 8 beta release but I am in a position where I don't have the time yet to develop for it but wish to take advantage of some of Xcode's new features while I am developing for my current iOS 7 apps.
What can I do to get the iOS 7 SDK installed on xcode 6?
Seems like if you symlink the relevant SDK from a previous installation of Xcode to the Xcode 6 Beta directory, Xcode 6 will be able to use it. Assuming you still have Xcode 5.1.1 on your machine, try the following in terminal:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
This should link the iOS 7 SDK for iPhone (not sim), allowing you to select iOS 7 as the Base SDK in Xcode 6 Beta. If you want to do this for the simulator, replace iPhoneOS.platform with iPhoneSimulator.platform.
NOTE: Just because you have the iOS 7 SDK now doesn't mean it'll build. I'm personally having trouble with the fact that Xcode 6 Beta is using the Apple LLVM 6.0 compiler, which apparently isn't compatible with some of the stuff I'm trying to build.
ref: https://stackoverflow.com/a/11424966/2383003
Just posting so that someone might find it useful: I wanted to debug my app in iPhone running iOS 7.1, in XCode 6.0.1. The previous iOS version was not being listed in the settings page, to choose as base SDK/deployment target. (I'm using OS X 10.10 Yosemite). I installed both XCode 6.0.1 and Xcode 5.0.1 and copied
/Application/XCode501.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
to
/Application/XCode601.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Now I'm able to run iOS 7 apps from XCode 6.0.1.
I changed the deployment target just fine and installed on my iOS7 iPhone 4s all the same. You can do all your development this way and then use 5.1.1 to make your relevant builds. I wouldn't advice to build apps for production in this beta environment even if you could.
Just repeating Christian's comment (on Ziewvater's answer) so it's more prominent:
What's strange is the fact that after adding the symbolic link to my Xcode folder, I see my device twice with the exact name and with some infos (iOS build number, model, device identifier) in the target selector in the upper left corner of Xcode. Depending on which of the both entries I chose, my app works fine or not, no matter which BASE SDK I chose. ??! Anybody experiencing the same?
This is exactly my experience also! Me and my team were tearing our hair out trying to understand why some builds seemed to be working and others were not.
It looks like Apple must be ignoring the base SDK (or target... or something) when you pick the wrong device from the list.
in Xcode 6.1.1 (Window -> Preferences - Downloads) you can install iOS 7.1 simulator. unfortunately it doesn't install iOS 7.1 SKD. if you set deployment target to 7.1 all builds without any trouble. be worry!!!! it is up to you to check the compatibility with 7.1 (SDK is still 8.1). so or so, all runtime trouble should be seen in simulator. i use this approach to build for my iPhone 4 in swift, where iOS 7.1.2 is the last available. (simply don't use any classes available only for newer devices :-))

Running on device 4.2.1 with XCode 4.2

I have xCode 4.2, and I've done all the steps about the $99 ios dev program.
Now I need to test my project on my device, which is an iPhone4 in 4.2.1, but I failed to run the app on the device, where the xcode says Xcode cannot run using the selected device.
But in the Organizer my device seems well, because there is a green bulb nearby, like it is in the picture:
Does anyone know the solution to this problem? Should I find something like 4.2.1 sdk to add to my Xcode?
Thanks a lot for your answering!
Download latest version of the SDK, the one supporting iOS 5.0.1. Use the latest SDK as the base SDK. This is not necessarily the oldest version of iOS your app will support.
If you'd like to support/test on devices running iOS 4.2, just go to project build settings and set "iOS Deployment Target" to 4.2.

Mandatory to use XCode SDK 4?

Well you know they just released this new XCode 4 version thing...... I am still using version 3.x.x.
Is it mandatory to use XCode 4 for my iPhone apps to be approved?
Not at all. You can still build, sign and submit iOS Apps using XCode 3.
No, but it is recommended. You can use XCode 4 with base SDK 4.3 and target an older iOS version.
You can download iOS SDK 4.3 with either Xcode 4 or Xcode 3.2.6 from Apple's iOS developer page. Remember that the Xcode version number is not the SDK version number.
You should always use the latest SDK, even if you're targeting an older iOS version. As I understand it, Apple will sometimes fix bugs in older OS versions. In order to get those fixes, though, you need to use the latest SDK.
unless you don't want to try Git integration you should be fine :) I'm struck with xcode 3.2.5 and shortcuts. And I hate iTunes like toolbar for no reason :(

Base SDK missing after a fresh install of XCode 3.2.5 which includes iOS SDK 4.2

I'm new to iPhone development. I just did a fresh install of XCode 3.2.5 with iOS SDK 4.2. No previous XCode or iOS versions have been installed before. However trying to compile some sample project from some books gives "Base SDK Missing". :( What to do? How can I use XCode 3.2.5 for older iPhones like 3GS if it only supports 4.2?
When I go to "Project/Edit Project Settings/Architecture/Base SDK/iOS SDK's" only iOS 4.2 is available to be selected.
Do I need to install older XCode first and then upgrade?
In the build settings, you can support older phones by setting "iOS Deployment Target" to something like 3.0. http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html has more details on the difference between this and the Base SDK setting.
Set Project/Edit Project Settings/Architecture/Base SDK to the Latest OS version, then quit and restart Xcode. You can later set the Deployment target to a lower OS version.
I had the same problem for most of the afternoon. I did everything suggested and nothing worked UNTIL I cleaned and cleaned and saved and rebooted and re-built. Unfortunately that doesn't tell me what actually worked, but it does give everyone "just one more thing" to try.

Resources