Xcode 4.3

Discuss issues relating to audio plugins

Xcode 4.3

Postby jules » Fri Feb 24, 2012 12:57 pm

Well, looks like Apple have buggered around with things again, and if you upgrade to Xcode 4.3 you're going to find that you can't build AU plugins any more because they've removed the old /Developer folder that contained all the headers.

What you now need to do is:

- In Xcode, choose "Open Developer Tool" / "More Developer Tools..", and download the audio package.
- Go to the Xcode.app, view its contents, and find the Developer folder inside it.
- Create an Extras folder inside the Developer folder, and copy the CoreAudio folder that you downloaded into it
- When you compile, you'll hit some errors in Apple's code which you'll need to fix. Nothing big, just add some casts and disambiguation for the latest version of Clang to accept it. (I had to do this in TextEdit because Xcode crashed when I tried to edit these files. Nice.)

..HTH!
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Xcode 4.3

Postby TheVinn » Fri Feb 24, 2012 5:13 pm

I hear that XCode 4.3 crashes more often than a blind man driving on the freeway.
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Xcode 4.3

Postby jules » Fri Feb 24, 2012 5:54 pm

I had it in a state today where as soon as I ran Xcode, it crashed. Took me an hour to find a way to stop it happening. 4.3 is a dreadful update - avoid it if possible.
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Xcode 4.3

Postby TheVinn » Fri Feb 24, 2012 6:17 pm

jules wrote:4.3 is a dreadful update - avoid it if possible.


Yeah that's what everyone is saying, wait for a bugfix before upgrading.
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Xcode 4.3

Postby xsd121 » Thu Mar 08, 2012 10:39 am

Always build error because of "Command /Applications/Xcode.app/Contents/Developer/usr/bin/Rez failed with exit code 2", and there's no Rez under this dir.

How to solve this?
xsd121
JUCE Obsessive
 
Posts: 75
Joined: Mon Apr 06, 2009 7:57 am

Re: Xcode 4.3

Postby jules » Thu Mar 08, 2012 10:42 am

xsd121 wrote:Always build error because of "Command /Applications/Xcode.app/Contents/Developer/usr/bin/Rez failed with exit code 2", and there's no Rez under this dir.

How to solve this?


No idea, sorry! My installation does have that tool, so if yours doesn't, maybe re-install?
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Xcode 4.3

Postby xsd121 » Thu Mar 08, 2012 11:23 am

I've fixed that.
The problem seems to be under the config "Build Phases -> Build Carbon Resources", there should only be one file existing: juce_AU_Resources.r. But after I perform an update prompted by xcode, it changed to two items: it adds the AUResources.r in this section, then I got this error. Remove that AUResources.r will do.

This 4.3 update is really a catastrophe for au plugin(I need to use the new iOS today so I update from 4.2 to 4.3.1).

I need to relocate all Apple AU Files that were included by IntroJucer. But how could I relocate them with ease?
The only way I found is to store the CoreAudio dir in a dir other than inside the Xcode.app so I could add them by using the "Add Files to XXX(_projectname_)" function.
Last edited by xsd121 on Thu Mar 08, 2012 11:29 am, edited 1 time in total.
xsd121
JUCE Obsessive
 
Posts: 75
Joined: Mon Apr 06, 2009 7:57 am

Re: Xcode 4.3

Postby xsd121 » Thu Mar 08, 2012 11:28 am

Though I've got a successful build now (after 1 hour's arranging), my condition that "no Rez under usr/bin" hasn't changed..
I don't know if it is weird.
Anyway, a successful build is the most important..
xsd121
JUCE Obsessive
 
Posts: 75
Joined: Mon Apr 06, 2009 7:57 am

Re: Xcode 4.3

Postby kuniklo » Wed Apr 25, 2012 4:01 pm

jules wrote:I had it in a state today where as soon as I ran Xcode, it crashed. Took me an hour to find a way to stop it happening. 4.3 is a dreadful update - avoid it if possible.

Just had to log in to strongly agree with this. I like a lot of Apple's products but Xcode sure as hell isn't one of them. I've moved entirely to Jetbrains' AppCode for my Objective-C work, and it's 100x better in just about every respect. Unfortunately it doesn't handle C++ very well so I'm stuck with Xcode for my C++ projects.

Apple's neglect of Xcode and of the entire CoreAudio/AudioUnit SDK really makes me wonder how seriously they take their developers.
kuniklo
JUCE Weenie
 
Posts: 13
Joined: Sat Dec 11, 2010 4:15 pm

Re: Xcode 4.3

Postby TheVinn » Wed Apr 25, 2012 4:15 pm

kuniklo wrote:I'm stuck with Xcode for my C++ projects.


There's always IntroJucer + Makefiles. No?
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Xcode 4.3

Postby dave96 » Wed Apr 25, 2012 4:34 pm

For what its worth 4.3.2 is a lot more stable. Make sure you use GDB instead of the LLDB debugger though because variables can be displayed incorrectly in that.
dave96
JUCE UberWeenie
 
Posts: 447
Joined: Sat Dec 27, 2008 9:29 pm

Re: Xcode 4.3

Postby kuniklo » Sat Apr 28, 2012 2:45 am

TheVinn wrote:There's always IntroJucer + Makefiles. No?

As bad as Xcode is it's still better than a plain text editor or something like Vim/Emacs (IMO).

And yes, 4.3.2 doesn't crash as much as previous versions. Only 2-3x times a day for me now.
kuniklo
JUCE Weenie
 
Posts: 13
Joined: Sat Dec 11, 2010 4:15 pm

Re: Xcode 4.3

Postby TheVinn » Sat Apr 28, 2012 2:57 am

kuniklo wrote:
TheVinn wrote:There's always IntroJucer + Makefiles. No?

As bad as Xcode is it's still better than a plain text editor or something like Vim/Emacs (IMO).


Have you seen Sublime Text ?

This editor is amazing! Its got some serious data structures behind it. Try opening up a 20 megabyte text file, it handles it no problem, including the thumbnail preview! You can insert lines right in the middle of the file and it updates FAST as if it was nothing, the thumbnail updates instantly! And this includes all the syntax highlighting, etc...

This is one of the pieces of the huge-text editing puzzle:
Rope Data Structure

If the juce TextEditor component could be as good as SublimeText .. whoa!!!!
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: Xcode 4.3

Postby Xample » Tue May 01, 2012 9:04 pm

In my opinion the "Rez" is going to be deprecated and this is why Apple replace the .r files in favor of the .plist
Take a look [url=http://developer.apple.com/library/mac/#technotes/tn2276/_index.html#//apple_ref/doc/uid/DTS40011031]here[/url]
The new "AUPlugIn" do not use resource files (.r files) or the 'thng' resource to define properties.
Xample
JUCE Geek
 
Posts: 27
Joined: Tue May 01, 2012 6:17 pm

Re: Xcode 4.3

Postby brp » Sun May 13, 2012 11:02 pm

hi there
i'm absolutely new to mac and xcode. i'd like to compile the audio-plugin i just finished within vc2010 in xcode on a lion-mac. can someone please give me a step by step explanation how to get juce 2.0 compiling my plugin in xcode?? i just don't get it working!!

thanks a lot!!
pascal
brp
JUCE Weenie
 
Posts: 11
Joined: Wed Apr 28, 2010 2:30 pm

Next

Return to Audio Plugins

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest