App not running on older version of iOS SDK - ios

I want my application to run on both iOS 6 and iOS 7. I have already upgraded to XCode 5, so to see how my app runs on ios 6, i downloaded ios SDK 6.1 and pasted it in the folder of XCode.app. I changed deployment target to ios SDK 6.1, the base SDK to iOS SDK 6.1. I have installed simulator 6.1 too. But when i run my app, i get several errors..
like
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:53:24: 'UIAccelerometer' is unavailable: not available on OS X
All errors are similar to this one. I don't know why the app is trying to run on mac OS X..

I dont know why you done this all if you only want to run your app on both iOS 6 and 7.
You can see your app running like on iOS 6 device by simply running the app on iOS 6 simulator with XCode 5 and iOS7 Sdk. You dont have to change your deployment target anyways.
Even if you want to see your XIb in iOS6 pattern,you can do that too in XCode 5. If you want to see that, please revert me i will tell you that too. Or if you want something else, please tell us more precisely. Thanks :)

Make sure that you can run other apps on your simulator.
What about your error description - UIAccelerometer is deprecated in iOS 5. I think you try to run old application.

Related

Could not attach to pid : “16541” unable to attach ios simulator

I have a sourcecode which is dependent on a framework which requires Base SDK 7.0. It is very old codebase, so I am using Xcode 6.4 still. Since iOS10 is released recently, found few issues in iOS10. But, couldn't debug or solve them since I couldn't run it in Xcode6. I downloaded Xcode8 and copied SDK in /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs folder.
I can still see Base SDK iOS7.0 not found and I cannot run it in iOS10 simulator. I get Could not attach to pid : “16541” unable to attach this error when I try running in iPad Air (iOS 10) simulator.
Is there any other way, I can run it on iOS10 simulator? Or only way to work is update the dependent framework to latest SDK? Please advice.
This is very not supported and will not work. Xcode 6 is not compatible with the iOS 10 platforms. Just install Xcode 8.

iOS 6.0 simulator disappeared

I'm not able to test my app on iOS 6.0 simulator, because it disappeared. I definitely remember I downloaded it and for some time I could use it. When I click on more simulators to download it now, there is only iOS 7.0 and iOS 6.1 simulators. And for all I know, I have set the deployment target to 6.0 everywhere. Any ideas?
Apple withdrew the 6.0 simulator at the server end, so it is no longer listed. If you really want it, you can move it into Xcode from another version of Xcode (it's obvious where it goes).
The latest Xcode (5.1 as of writing this) only supports iOS 6.1 simulator. If you wish to test on iOS 6.0, you need to test on a device.
Technically speaking, there is very little API difference between 6.0 and 6.1, so you can test 6.1 for most scenarios just fine.
Still we can use ios 6 simulator in xcode 5.1.
If you cant see iOS 6 simulator in downloads. Try this one,
download xcode 4 sdk and copy the ios 6 simulator sdk from xcode4,
[Application->xcode 4 ->contents->developer->platforms->iphone
simulator platform->developer->sdk folder.]
And paste ios 6 simulator sdk to xcode 5, [Application->xcode5->
contents->developer->platforms->iphonesimulator
platform->developer->sdk folder]
I followed this steps and got ios 6 simulator,. see below

Compiling legacy code using iOS 7 SDK breaks app

I have a developed application and the code is compiled using Xcode 4.6 and executes on iPhone with IOS version 6.1.3 . That's all OK.
Now I am requested to test it on the iOs 7.0 or later version . Then I upgrade all needed stuff , including xcode, mac OS version ,etc. (I have to upgrade them because the original version of xcode complains of the failure that it can not compile and debug on ios7.0)....
When I try to build the code using the latest combined versions and run on ios7.0, the application is dysfunctional and the problems are mainly related to GUI-related.
But the application with xcode 4.6 built can normally run on IOS 7.0.3 phone. So I think it is feasible for the legacy code/SDK to run on ios 7.0.3. Currently, I don't have plan to upgrade the code to optimize for ios7.
So My question is : How can I test/debug this application on iOS 7 or later ?
Thanks alot
Daniel
If i am not getting wrong understanding from your question...And what you want is this..
You don't want to build your application using iOS 7 base sdk (You were using iOS 6 base sdk on xcode 4.6).
But you want to use latest xcode with old SDK 6.1 etc and test apps on iOS 7 Devices/Simulators
Here is solution...
You just need to copy 6.1 SDK(or older) from your old xCode(4.6) to latest xcode(5.x) sdk folder and set base sdk to 6.1 SDK(or older one) in project setting.
This will let you run your app on devices with iOS 6.x or lower as they were running before also lets you test your app on iOS 7 devices without compiling with latest iOS 7 SDK.
To achieve this..
1. click on your xcode4.6 -> show package content , go to path
/Applications/Xcode_4.6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
This is where you will see older SDK you were using (6.1 etc). Now open same path for latest xcode 5.x and copy SDKs from old xCode path to new xCode path. OR Download it from Xcode preference -> Downloads.
2. Now go to project setting and set base sdk as iOS 6.x SDK
You can use Wireless AdHoc Distribution or simply build the IPA and install it through iTunes. Debugging it, however, is a bit more complicated. You will have to launch Instruments on its own and choose the already running process on the device.

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.

Is it possible to run iPhone app deployed with 5.0 SDK in iOS 5.1.1 iPad device

I have build the app using Xcode 4.2.1 and iOS 5.0 SDK target, now i am have iOS 5.1 in my iPad device, what i have to know is, if i upgrade my device to iOS 5.1.1, will my app work. I just googled it, but i can't find solution. Any help appreciated. Thanks.
Yes it will work, it will also work on any ios in the future (ios 6+ etc..)
Please check my answer here Will my app work with a new iOS?
If you're talking of deployment for testing, you need at least Xcode 4.3 (for Lion only) to be able to run your app on a device on iOS 5.1
I have tested my app build with Xcode 4.2.1 and 5.1 deployment target, now i can work the app in iOS 5.1.1 installed device.
Note :
Make sure your Xcode have iOS 5.1 SDK Frameworks support.

Resources