Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / iOS 6 and Xcode 4

Author
Message
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 21st Sep 2012 21:28
In order to test something for another AppGameKit user, I allowed my iPad to update to iOS 6.

Then it was not recognized by Xcode 4.

Then I got offered the Xcode update and installed it. It took an hour for it to download. After installation, it no longer allowed the selection of iOS 5.1 SDK. And a built app will not run on my iOS 5.1 device.

I finally discovered how to be able to build and test for both, at least in theory.

Use Xcode->Preferences->Downloads to add the iOS 5.1 Simulator. This lets you use the iPad/iPhone simulators for both iOS 5.1 and iOS 6. You can install other simulators as well.

It also let me build/install for my iOS 5.1 iPod Touch. To build/run for iOS 5.1, set the iOS Deployment Target to 5.1 in the Info panel for the project (not the target info panel).

However, I'm having difficulty getting my previously working app to install on my iOS 6 iPad. Further testing/investigation needed.

Cheers,
Ancient Lady
AGK Community Tester
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 21st Sep 2012 22:42
I got it!

Make these changes for both the PROJECT and TARGETS -

Set Build Settings->Architectures->Base SDK to 'Latest iOS(x)' in ('x' is now 6.0 on mine).

Set Build Settings->Architectures->Valid Architectures to only 'armv7'. (It was allowing armv6 that was messing up my iPad iOS 6).

Set Build Settings->Deployment->iOS Deployment Target to 'iOS 5.1' (we probably can assume that everyone has updated to that, if you prefer not to, use one of the other values).

Cheers,
Ancient Lady
AGK Community Tester
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 22nd Sep 2012 13:16
Oh yes i knew this thing cause it happened to me the last time ehehe...
Anyway i also re install all the old simulators too.

I must also test if the simulator now didn't fire all that errors on frameworks.

Long life to Steve!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 22nd Sep 2012 14:42
can you also build for ios 4.x ?
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 22nd Sep 2012 16:59
Hmmm well, i'm testing it now, but as i see Apple need 4.3 minimum.
When you archive the code and send it to apple it will be rejected i think.
I got this error while updating the CB Radio Box app and i did the 4.3 options as they asked.

Long life to Steve!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 22nd Sep 2012 18:01
I know that you can use iOS 4.3 as a target and it builds properly and installs via Xcode 4 on iOS 5.1 devices.

I just tested using iOS 4.3 as a deployment target on my iOS 6 device and it worked fine.

Quote: "can you also build for ios 4.x ?"

So, the answer is 'Yes'.

Cheers,
Ancient Lady
AGK Community Tester
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 22nd Sep 2012 23:39
i am planing to update to mountain lion and the latest xcode as soon as i finish the project i am working on.

most games don't use any specific 5.x or 6.x features so making them only 5.x up restricts how many people can play your game
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 23rd Sep 2012 01:21
Building something for 4.3 still works on an iOS 6.0 device. So we can program to the lower end, nice.

Any time Apple comes out with a new major iOS release, they also come out with Xcode updates. Fortunately, it turns out that the Xcode updates are backwards compatible.

I haven't upgraded my core Mac OS, yet. But I might.

Cheers,
Ancient Lady
AGK Community Tester
Commandor
13
Years of Service
User Offline
Joined: 25th Jan 2011
Location: Kiev, Ukraine
Posted: 26th Sep 2012 20:21 Edited at: 26th Sep 2012 20:24
Hi all,

IPad updated to version 6.0 and installed XCode 4.5 and now I can not run anything. Help solve the problem.

XCode 4.4.1 the same code compiles and runs in Simulator 5.1

Life is our game, playing we live!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 26th Sep 2012 20:24
First, when you say you cannot run anything, are you referring only to apps you built with AppGameKit?

Next, what happens when you try to run stuff?

Did you try the various things discussed in this thread?

Cheers,
Ancient Lady
AGK Community Tester
Commandor
13
Years of Service
User Offline
Joined: 25th Jan 2011
Location: Kiev, Ukraine
Posted: 26th Sep 2012 20:25 Edited at: 26th Sep 2012 20:48
Quote: "Did you try the various things discussed in this thread?"

Yes

XCode 4.4.1 the same code compiles, but runs in Simulator 5.1 now. XCode 4.5 - not compile.

Life is our game, playing we live!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 26th Sep 2012 20:59
What errors are you getting?

Do you see both iPhone/iPad 5.1 and 6.0 simulators in the template selection drop down at the top/left of Xcode?

Cheers,
Ancient Lady
AGK Community Tester
Commandor
13
Years of Service
User Offline
Joined: 25th Jan 2011
Location: Kiev, Ukraine
Posted: 26th Sep 2012 21:05
Not compiled only one file:


Quote: "Do you see both iPhone/iPad 5.1 and 6.0 simulators in the template selection drop down at the top/left of Xcode?"

Yes

Life is our game, playing we live!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 26th Sep 2012 21:34
After you updated your Xcode, did you clean your project and rebuild it?

Or did you just tell it to run?

What version of the Apple OS are you running?

Have you updated your core Apple OS? (I haven't and won't for a while, so I'm not suggesting that you do.)

Cheers,
Ancient Lady
AGK Community Tester
Commandor
13
Years of Service
User Offline
Joined: 25th Jan 2011
Location: Kiev, Ukraine
Posted: 26th Sep 2012 22:32
Quote: "After you updated your Xcode, did you clean your project and rebuild it?"

Yes

Quote: "What version of the Apple OS are you running?"

Lion 10.7.4

Quote: "Have you updated your core Apple OS?"

No

Life is our game, playing we live!
Commandor
13
Years of Service
User Offline
Joined: 25th Jan 2011
Location: Kiev, Ukraine
Posted: 26th Sep 2012 22:35
Compilation stops on different files.

Life is our game, playing we live!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 26th Sep 2012 23:45
Make sure that all your .cpp/.c files are set to compile as 'File Type' = 'Objective-C++ Source'. This is set in the column on the right.

It is not impossible that this might fix the issue. But it might not. It is a way to avoid some other issues that some times pop up.

Quote: "Compilation stops on different files."

Do mean the compiling the same project fails in different files at different times when there has been no changes in the files?

If so, this indicates an issue not necessarily having to do with your project.

Have you tried cleaning and then compiling in Release mode?

And, while one wouldn't normally do this with anything but a Windows machine, have you tried shutting down all applications, closing down your Mac and restarting it? I actually had to do that after the updates to let everything 'settle'.

Cheers,
Ancient Lady
AGK Community Tester
Commandor
13
Years of Service
User Offline
Joined: 25th Jan 2011
Location: Kiev, Ukraine
Posted: 29th Sep 2012 18:15
Found a solution: XCode 4.4.1 compiles all the encoding *.cpp files, but XCode 4.5 only UT8. If the *.cpp file actually ANSI, then 4.5 defines it as UT8 and not compiles it! Need an external editor to rewrite it in UT8

Life is our game, playing we live!

Login to post a reply

Server time is: 2024-03-29 08:27:50
Your offset time is: 2024-03-29 08:27:50