Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Fixing the "Audio Unit with Cocoa View" Xcode 3.1.x Template on Mac OS X 10.5.x Leopard
Q: The "Release" build of Audio Units created using the Xcode "Audio Unit Effect with Cocoa View" template does not work. The project builds and runs, but the view displayed is the generic view, not the custom cocoa view. How can I fix this?
The fix described ONLY applies to Xcode 3.1.x. Xcode 3.0 users will need to first upgrade to Xcode 3.1.x before continuing with the template update.
If you have already upgraded to Mac OS X 10.6.x and Xcode 3.2.x, this template update is not required and can be ignored.
The problem with the template is that the 'Product Name' setting for the Release build is incorrect.
To fix any Project created with the Audio Unit Effect with Cocoa View template:
Select the CocoaUI target residing under the "Targets" tag.
Get Info (Cmd+i) on the CocoaUI in the project.
Select the Build Tab.
Select Debug Configuration.
Double click the entry for the 'Product Name' setting (Packaging Section) and copy the string.
Choose the Release configuration.
Double click the entry for the 'Product Name' setting (Packaging Section) and paste the new string.
The 'Product Name' string for both Debug and Release builds should now look like: «ORGANIZATIONNAME»«PROJECTNAMEASIDENTIFIER»_CocoaViewFactory
.
To fix the Audio Unit Effect with Cocoa View Template itself, apply the above changes to the following files:
Xcode 3.1.x: /Developer/Library/Xcode/Project\ Templates/Audio Units/Audio Unit Effect with Cocoa View/StarterAU.xcodeproj
For convenience, we have included an updated version of the Audio Unit Effect with Cocoa View Template with the fix already applied for download. Simply replace the older template with the one included in the download.
Downloadables
Document Revision History
Date | Notes |
---|---|
2010-04-19 | New document that discusses how to fix a bug with the release target of the Audio Unit Effect with Cocoa View Xcode Template on Leopard |
Copyright © 2010 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2010-04-19