Big problems with XCode 5

Monkey Forums/Monkey Programming/Big problems with XCode 5

garyk1968(Posted 2013) [#1]
Is anyone else having issues compiling for iOS with XCode 5?

I saw some of the other threads and I managed to get 1 small game I had done to compile but then it didn't run properly. I just installed Xcode 5 this morning and was blissfully ignorant of any issues as XCode 4 just worked, no issues at all.

But it seems there are a large number of problems. I was running v.69 so have updated to 74a now. Compiling a simple app gives me the following warnings/errors:

TRANS FAILED: Error executing 'xcodebuild -configuration Debug -sdk iphonesimulator', return code=16640

I can get around this by just opening the project in XCode and checking the build settings for the project. But I also get a number of compile warnings/errors

Warning:
UIAcceleration is deprecated - UIAcceleration has been replaced by CoreMotion framework

Error:
Use of undeclared identifier 'AudioSessionInitialise'
Use of undeclared identifier 'kAudioSessionProperty_AudioCategory'

I am loading three wav files using LoadSound and playing them with PlaySound

On another project I get the issues related to audio above but also get:

Use of undeclared identifier 'pthread_join' did you mean pthread_kill?
Use of undeclared identifier 'pthread_create'

And I don't even know to which they relate in Monkey!

Anyone else having issues like this? Really hacks me off every new XCode release completely screws everything. I was happy on 3.2 until 4 came along, was happy on 4 until today - should have known better and steered clear!

Cheers


Gary


garyk1968(Posted 2013) [#2]
OK got rid of the audio errors by adding

#import <AudioToolbox/AudioToolbox.h>


to main.h but that was because I found it in another thread, surely that should be part of the project template?

But still have those pthread errors

Gary


Shinkiro1(Posted 2013) [#3]
I had the same issue when using xcode 5 beta so I switched back to 4.
Especially the pthread join/kill stuff was something I couldn't work around.

Also monkey seems to use a lot of deprecated stuff on iOS.


garyk1968(Posted 2013) [#4]
Indeed Shinkiro.

What did you do as you can't get XCode 4 from the app store, did you have a copy of 4?

Cheers


Gary


garyk1968(Posted 2013) [#5]
Ignore that found 4.6.3 in the downloads section of dev area.

Think I will follow your lead!


programmer(Posted 2013) [#6]
I just upgraded to XCode 5 and I haven't any issues.

#import <AudioToolbox/AudioToolbox.h>
Monkey iOS template already have this code.


The most important thing you should know (from Monkey/VERSIONS.txt):
NOTE: If you're having trouble with a new version, try deleting '.build' dirs!!!!!



Paul - Taiphoz(Posted 2013) [#7]
was gona suggest something but then realized it's there already.


garyk1968(Posted 2013) [#8]
programmer....you are the dude!

Thats fixed it. I should have realised that but you know how you get bogged down deeper into these things.. :)

Is anyone also getting a 'Validate project settings' where it wants to change the build settings of the project? Attached is a screenshot




rIKmAN(Posted 2013) [#9]
I had that in previous version of XCode too, I just let it perform changes and have had no problems with it running / compiling to either iPod or iPad.


Pengwin(Posted 2013) [#10]
I'm still having problems with Xcode 5. Hopefully you guys can help.
The console output I am getting is:


As you can see, I am trying to test build the blobmonster demo. I have ensured that the .builds folder is deleted and all the command tools and all the iOS SDK's are installed.

However, I have noticed this bit in the console output:

Build settings from command line:
    SDKROOT = iphonesimulator7.0


but I have no option to install iOS 7.0 Simulator. Could this be the issue?

Edit: Forget that last bit about the iOS7.0Sim, it is installed


marksibly(Posted 2013) [#11]
For xcode 5, you may have to set 'deployment target' to 4.3 in the project build options.

Should all be working in the next release.


garyk1968(Posted 2013) [#12]
Pengwin I get that too but you just open the project in Xcode 5, as mark says you have to set the deployment target to whatever the lowest version of the SDK you have installed. So for me its 5.1.

Its because monkey sets the deployment target to 3.0 which doesnt exist in XCode 5.


Pengwin(Posted 2013) [#13]
OK, thanks guys. Thought it would be something simple like that.