Errors running xcode 3.2.2 on Lion - iphone

Just installed xcode 3.2.2 (on Lion) so I can test my app for the iOS 3.0 and 3.2
Created a simple test app based on View application template.
Just trying to build it gives me the following error.

I doubt you can use XCode 3 with Lion, even I was using XCode 4 and had to update to 4.1 to run on Lion.
However if using XCode 3 is mandatory for you I found some post explaining how to do so but it seemed tricky. In his original post he clearly mentions the same problem as you're having.

You can (must? should?) use the latest version Xcode and still target the older iOS. I see that you're trying to do this presumably to use the simulator, but I'd strongly recommend testing on the actual devices with the older versions of iOS.

Related

parse.com Linker Error xcode 6 swift

After I installing xcode6 I got some errors with parse.The project was working just fine in beta versions of xcode 6. I think i might be parse.com that is not compatible with xcode6. I think I have added all the frameworks properly
I experienced the same problem,
first, download the latest SDK version from Parse.com
second, I noticed that when I run it NOT on the iPhone 6 simulator it works fine.
You're targeting the iOS Simulator, which the Parse framework does not seem to support. So:
Clean project.
Change the destination from iOS Simulator to iOS Device.
Build.
That's all you need to do.

Testing on jailbroken brand-new iOS device - using Xcode?

OK. So, here's some details on my situation :
I've got a brand-new iPhone 4.
The iOS version has been updated to 5.1.1 (9B206).
The phone has been jailbroken using redsn0w.
I'm running Lion (10.7.4) and Xcode 4.3.
Now, my issue :
I'm creating a sample test app, which runs fine under the simulator.
Followed everything here, but without any result.
Also tried enabling my device via Organizer ("Use as development device").
When I click on "Use as development device", it keeps saying...
The version of iOS on “Dr.Kameleon’s iPhone” does not match any of the
versions of iOS supported for development with this installation of
the iOS SDK. Please restore the device to a version of the OS listed
below, or update to the latest version of the iOS SDK; which is
available here.
OS Installed on Dr.Kameleon’s iPhone
5.1.1 (9B206)
Xcode Supported iOS Versions Latest
5.0 (9A334)
4.3
4.2
While, when I try running on my "iOS device" (that's how it appears), it claims there's no device with a proper iOS version.
No provisioned iOS devices are available with a compatible iOS
version. Connect an iOS device with a recent enough version of iOS to
run your application or choose an iOS simulator as the destination.
Any ideas? What's going wrong?
Look, everyone who says you can't build directly on a jailbroken device is wrong. You can, and it's quite easy to do. If you don't have a provisioned device (and it looks like you don't), using this guide will work. I've tested it myself on Lion running Xcode 4.3 (it even works on later versions, but those are under NDA).
The real issue seems to be that, for whatever reason, you don't have the iOS 5.1 SDK - you're using the iOS 5.0 SDK. You can confirm this by looking in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport. If you don't see any mention of 5.1, you don't have it installed. Try downloading and installing Xcode again (I believe it's 4.3.2 now), which should have the iOS 5.1 SDK bundled with it.
This error is not due to the jailbroken iPhone, its basically due to your lower version of Xcode which doesn't support the latest iOS, try upgrading your Xcode version to latest.hope it helps

upgrading Xcode

I am currently working with Xcode 3.1.3 , i wanted to upgrade it to new version of Xcode 4.0.My question is will i be able to run my older applications which were built on Xcode 3.1.3 on the new version of Xcode.
Thanks in advance
Yes you will be able to do so. However PPC support and 10.4 support is dropped on the mac. If you want to play safe, you can install Xcode 4 in a separate location leaving your Xcode 3.1.3 untouched, so you can switch between these two.
The project format of Xcode 3.2 and Xcode 4 is the same.
One option is to install Xcode 4 into another directory. I just installed the latest version yesterday and it offers you this option. Here is a link here about this also. There is also a StackOverflow question here. If everything works as you expect you can delete Xcode 3.1.3. If not, you still have your current version around.

Simulate iPhone 3.0 with SDK 4.0

i have xcode 3.1.3 and xcode 3.2.1 installed
For sure now I use 3.2.1 with Sdk 4 to develop new apps.
But what if I like to test a App compiled with sdk 4 on a
simulated iphone that would just have 3.0??
As BaseSDk i use 4.0 and as target 3.0
In xcode 3.1.3 i could select a simulator down to 2.x but with sdk 4.0
i only have the option 4.0 iphone or 3.2 ipad
Example> i know iAd is not supported before 4.0 so I set the
framework to weak. But just to be sure all works fine I really
would like to test my app in a simulator that simulates an iphone with 3.0
thx
chris
The new simulator does not seem to be able to run the old simulator OSs (3.2 being the oldest it'll run). I tried moving them over from old SDK installs and several variations and "no go".
You can check that you aren't using methods defined in the new SDK, when you set the base SDK to 4.0 but set the Deployment to to 3.1.3, for example. For a blog post on how to do this see this blog post, and note my comment on an easier way to do the last two steps (no need to edit the project file as a text file).
inside the iphone sdk dmg file, there should be a folder called packages. in it, you'll find packages like iPhoneSDK3_0 and iPhoneSimulator3_0. Install them to be able to use them in xcode.
Correct me if I'm wrong, but I think a device with 3.0 installed can't even run apps compiled with 3.2 or 4.0. Furthermore, Apple now only accepts iPhone apps (including updates of existing apps) linked against the 4.0 libraries, which won't run on OS version 3.0 devices.
So why do you want to test your app on a 3.0 device?
Try setting the architecture you want to build for in the Xcode project preferences and rebuilding.
If this doesn't work, completely uninstall Xcode and downgrade. You have to completely uninstall because your system must have updated the frameworks for 4.0.
Hope this helps

install iphone sdks side by side

Im trying to get my xCode to contain all iPhone sdk's from 4 back to 2. But when I download the DMG files, it seems to only allow me to have an xCode with SDK versions 2 - 3.1 OR 3.2 - 4, not all together.
How can I install the SDK's into one xCode so I can build for all different OS versions?
Thanks
EDIT::
Ok so I know I can set the base SDK in xcode, but the options I have are only 3.2 or 4.0, I cant seem to install the 3.1 or earlier SDK's how can this be done?
Final Edit::
Ok got it solved, basically you only need to have an older version of xcode installed to get earlier simulators running, otherwise the articles given to me in my answers as well as others were very helpful:
http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/
Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs
How To Make iPhone App compatible with multiple SDK (firmware) versions
http://cocoawithlove.com/2010/07/tips-tricks-for-conditional-ios3-ios32.html (possibly the best one)
Is there any particular reason you need to do this? Are you trying to develop applications that will run on iOS 4.x and older versions (3.x)? You can still develop applications which will run on iOS 3.1.x with the iOS 4.x sdk.
Take a look at the following article: http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/
I tried the same thing some time ago, and it seems some minor SDK versions are automatically removed during the install process...
You may tried to copy them before installing the other XCode versions, and re-install them just after.
They are located in /Library/Platforms/iPhoneOS.platform/Developer/SDKs/ and /Library/Platforms/iPhoneSimulator.platform/Developer/SDKs/.
Note that you can also choose to install each XCode version in a separate directory.
You will lose a lot of hard disk space, and you'll have multiple versions of XCode, each one with different SDK versions.