Mystic troubles with iOS deployment target on real devices - ios

I have a trouble with XCode 5.
Yesterday everything was fine. Today, when I try to run my app on iPhone 5 or iPad Mini I get the following error:
iOS deployment target '7.0' for architecture 'armv7s' and variant 'normal' is greater than the maximum value '6.1.99' for the iOS 6.1 SDK.
Base SDK and Deployment Target are both iOS 7 (Latest version). I have iOS7 on both devices. When I try to launch the app on simulators with iOS7 everything is fine.
I've tried to clean the project, to restart XCode and MAC, looked in project.pbxproj - still can't understand what's up.
So, any help would be very great!
Base SDK:
Deployment target:

So, I've solved the problem by deleting iOS 6.1 SDK from XCode completely - I've installed it manually a couple of weeks before. After that the app built with no problems.

You have configured your project to run on iOS 7 but you are building against iOS 6.1 SDK.
You should build against the latest SDK but set the deployment for the lowest version that you would like to support (You have done the opposite here).
In your project build settings make sure you have selected ios 7 as base sdk.

Related

Xcode 10.3 where are the other iOS versioned simulators [duplicate]

I have the Xcode Version 6.0.1 (6A317) on Mac OS X 10.9.5 with all iOS 8 simulators. I have also downloaded the iOS 7.1 simulators.
I am developing an app for iOS 8 and iOS 7.
The problem I encounter is that Xcode 6 doesn't show the iOS 7.1 simulators in the devices menu. At some point it did show them but on my newly created Xcode 6 project it does not.
I was looking at some stackoverflow solutions.I have addded the iOS 7.1 simulators Window - Devices - SIMULATORS. They are also checked with "Show in the Run Destionations Menu",however they are not shown.
I found a workaround by setting the Project and Target Deployment Target to 7.1. However, this is a stupid solution since for every test I need to manually switch them forth and back 7.1-8.0
This is my first ipad app and it worked perfectly under Xcode 5.1.1. iOS 7 and iOS 8 (CREATED UNDER Xcode 5.1.1.). Now I have created a project in Xcode 6.0.1. and the project doesn't have the simulators showing correctly and 95% of the app doesn't work.
I am new to iOS development but I suppose that this is a bug, but I am unsure. Please help.
The deployment target is the minimum OS version you intend to support.
As you stated, you need to set the deployment target to 7.1 in order to see the 7.1 simulators. If your deployment target is 8.0, the 7.1 simulators will not be available in the run destinations menu. This is the correct behavior because you can't run on iOS 7.1 if your deployment target is 8.0.
I already had deployment target 7.0 and simulator still wasn't available for 7.1.
I fixed the issue though by going into Xcode preferences, selected Downloads and re-downled the missing 7.1 simulators under 'Components'. Although I previously had 7.1 simulator, the Xcode 6 upgrade had seemed to remove them.

New compile errors on iOS 7.1 SDK targeting iOS 7.0 deployment target

Just updated my local SDK to iOS 7.1 and Xcode to 5.1. All is fine but when I tried to compile a perfectly fine 7.0 codebase targeting the Simulator it runs fine but when I tried to target a device that runs iOS 7.1 it gave a whole set of new compile errors. There's just a lot to list out here but the more prominent one is from the famous SVPRogressHUD.
Is anything changed in iOS 7.1 SDK that need treatments differently? This is so annoying for the past hour or so.

UI of App on iOS7 looks Like UI on iOS 6

As i need my application to run on both iOS 6 and iOS 7, i have set my "iOS deployment target" under "Project" as well as "Targets" to iOS 6.0. However, after doing this, when i create an ipa file and install it on my iPad (that runs on iOS 7), i see everything converted to the look of iOS 6 - the searchbar, the keyboard etc etc.. Why is this happening??
I thought that on iOS 7, all my UIComponents will look as intended in iOS 7 and same thing will happen in case of iOS 6, when i run it on a device that is running on iOS 6! why is everything messing up???
Likely it depends on the Base SDK that you selected.
If you are using Xcode 5: select your project on the left panel, then click tab Build Settings, check that your Base SDK is "Latest iOS (iOS 7)".
You should always use the latest sdk as Base SDK, it represents the SDK used to build your app against.
If you want to support old iOS, you should just change the Deployment Target
Check it for both your target and project, since target overrides project settings
The problem was: I still had iOS 6.1 sdk on my system even when i upgraded to xcode 5. deleting the older version of sdk and cleaning and building my target solved my problem..

How to deploy iPad app for iOS 6.1 from Xcode 5

I am new to iOS. With iOS 7 release I am struggling to find how to target my app for previous versions but building from new iOS 7.
I do not know if at all this is possible. but iOS has changed app UI totally, but can not do all change now. So I have been told to build it on new version but target should be for old, so that no UI changes to be done.
Something like building from Xcode 5 but iOS should be 6.1. I do have both Xcode running on my Mac.
If I open both it shows: Xcode 5 - iOS 7, Xcode 4.6 - iOS 6.1. How can I use Xcode 5 to target iOS 6.1?
As far as I know you can't deploy only for iOS6.x using xcode 5, but you can deploy for iOS7 and iOS6, setting the deployment target ad Raptor said.
If you want to deploy only for iOS6 you can download the old xcode 4.6.3 from apple site and make the procedure from there.
I guess your question is How to build iOS app with iOS6.1 SDK in XCode5. Am i right?
You must install iOS6.1 SDK (iphoneos6.1 not simulator iOS6.1) to your XCode first. This question Is it possible to install iOS6 SDK on Xcode 5? could help you to install iOS6.1 SDK.
Than you could configure your project using iOS6.1 SDK to build your app like below:
If you are looking to test your app on lower iOS simulators.
go to Xcode - > Preferences - > Downloads
Over here download the desired simulator.
Once you have downloaded and installed it you can test your application on lower iOS versions.

in Xcode, older iOS SDK missing--for pre-existing project only

I recently upgraded to Xcode 4.5.1 to compile an app under development for the new iPad. That worked fine, but when I went back to run it on my old iPad under iOS 5.1 it wouldn't compile. I traced this back to the "Base SDK" setting in my project. Unfortunately, for some reason it's stuck on iOS 6.0, and iOS 5.0 SDK is not in the list:
The puzzling thing is that a the iOS 5.0 and 5.1 SDKs are available if I start a whole new project, but are just not an option in the list for this particular project. The other puzzling thing is that it also still runs on the iOS 5.0 simulator.
How to fix this without rebuilding the project from scratch?
Actually, under Xcode 4.5.x, the only allowed Base SDK is 6.0. You need to set your project's (and target's) Deployment Target to iOS 4.3 or later depending on what you wish to support in your app.
The Bask SDK defines what APIs you can use. The Deployment Target defines how far back you wish to support.

Resources