GLBasic forum

Main forum => FAQ => Topic started by: mrplant on 2012-Dec-27

Title: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: mrplant on 2012-Dec-27
Hi there.

After months away, I am back to update my old iphone/ipad app.
It wont compile on Mountain Lion with latest XCode 4.5.2 as it has 3 errors and 96 or 98 warnings.
I am using release build 10.283 of GLBasic.

The errors are something to do with CPU Architechture being wrong etc.

Just wondering how others are doing it these days - how to fix theres errors - is the beta preferred?
Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: spicypixel on 2012-Dec-27
I was told to ignore them, so I did :) I don't recall them being problematic.
Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: mrplant on 2012-Dec-28
It's the architecture based errors I can't fix - the warnings I can ignore...

Does the beta compile with no errors and warnings under ios 6?
Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: hardyx on 2012-Dec-28
Apple iOS 6 SDK not supports 2G or 3G devices anymore. This means "architecture armv6 is not supported".
You must to change the target platform setting to ARMv7 (3GS/4G+ devices) in XCode project.
Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: mrplant on 2012-Dec-28
Was thinking as much.
With the latest mountain lion and xcode installed - is it still possible to compile for older ios versions such as say ios4? It does't seem to be built in but maybe its possible to download the older sdk from within xcode somewhere?
Title: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: Kitty Hello on 2012-Dec-29
Armv6 code is totally compatible v7 code. Just set the project settings.
Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: mrplant on 2012-Dec-31
two days later and im still trying..

Im getting loads of problems with trying to get Xcode 4.5.2 to compile to older IOS versions....


argh.......
Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: hardyx on 2012-Dec-31
Quote from: AppleChanges in Xcode 4.5

- Xcode 4.5 and later does not support generating armv6 binaries.
- The minimum supported deployment target with Xcode 4.5 or later is iOS 4.3.
If you want to compile for armv6 devices, you must to use an older SDK.

Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: mentalthink on 2012-Dec-31
Hi Mrplant I have this Xcode..
Version 4.4.1 (4F1003)

I use Mountain Lion... I think you have to use some torrent or something similar... I doubt Apple leave this Xcode in the Store...
Runs fine...

Sometime Ago, I stay in your same situation... I try a lot of Xcode and anyone works!!! :rant:

This have to run 100%... I have this update of Mountain Lion... 10.8.2
Title: Re: How to compile an iOS App on OS X Mountain Lion Xcode 4.5.2
Post by: mrplant on 2013-Feb-09
Today I am trying GLBasic 11.261 and trying to compile its iPhone output with the latest Xcode 4.6 - I keep getting errors but am working on it...

Whilst on this subject - what is currently the version recommended for day to day development and submission to the app store - assuming it is still version 10 at the moment..