For those of you that have not been following the recent thread on the Xcode AU project templates, it has been brought to our attention that the Audio Unit Effect with Cocoa View XCode project template is not working with the release build style on Leopard with Xcode 3.1.4.
We did some changes for the Xcode that ships with Snow Leopard, but unfortunately, these changes did not make it back to the templates that were shipped with the latest Leopard version of Xcode.
We realize that this really is a major pain in the butt for all of you, and we sincerely apologize for the problems you have been having. There is really no good excuse for this, and we are very sorry for the inconvenience we have caused.
We will be remedying this issue with the next Xcode release. At this time, I do not know the schedule of that release, so in the meanwhile, here is what you can do to workaround the issue:
Build your Audio Unit on SnowLeopard 1) Create a new project using the Audio Unit with Cocoa View template 2) Select the project in the Groups and Files list on the left side of the project window 3) Choose "Get Info" from the File Menu 4) Change the Base SDK to Mac OS X 10.5 Your audio unit will be able to run on both Snow Leopard and Leopard. I have personally tested this. I realize that this is not a good solution for some of you because you either don't have SnowLeopard, or need to go back further than 10.5 due to host reasons. If you are in this category, read on.
Download the Modified Version of the template Tahome posted a message with a link to a fixed version of the template. We cannot make any guarantees for this, but it's reported that it works well.
Fix your local template (requires a good text editor like BBEdit) 1) Go to /Developer/Library/Xcode/Project Templates/Audio Units/Audio Unit Effect with Cocoa View 2) Make a copy of StarterAU.xcodeproj and move it to your desktop in case you make a mistake and need to go back to the original version 3) Control-Click on StarterAU.xcodeproj and choose "Show Package Contents" from the contextual menu 4) Open project.pbxproj in a text editor such as BBEdit 5) Search for PRODUCT_NAME 6) The first result will be in a block with a comment of /* Begin XCBuildConfiguration section */ Copy the value "«ORGANIZATIONNAME»«PROJECTNAMEASIDENTIFIER»_CocoaViewFactory"; to the clipboard 7) Find again 8) Change CocoaViewFactory; to the pasted value so that the line reads PRODUCT_NAME = "«ORGANIZATIONNAME»«PROJECTNAMEASIDENTIFIER»_CocoaViewFactory"; 9) Save the project file. Your template will now work correctly. Again, we apologize for the confusion, and wasted time caused by these problems. We will be more vigilant about verifying the correct behavior of these templates in the future. And please do continue to use bugreporter.apple.com to report issues and concerns. We track all of those issues carefully, and work to fix them in a timely fashion.
Thanks,
Michael |