Auval issues in tip


#1

Hi

I’m using OSX 10.7.5 with Xcode 4.2.1 and the lastest Introjucer.

When running auval on the demo plugin I get the following errors ( I also get this in my plug-in):

auval -v aumf Jcdm RawM

  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
         AU Validation Tool
         Version: 1.6.1a1 
          Copyright 2003-2007, Apple, Inc. All Rights Reserved.

         Specify -h (-help) for command options
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

--------------------------------------------------
VALIDATING AUDIO UNIT: 'aumf' - 'Jcdm' - 'RawM'
--------------------------------------------------
Manufacturer String: Raw Material Software
AudioUnit Name: Juce Demo Plugin
Component Version: 1.0.0 (0x10000)

* * PASS
--------------------------------------------------
TESTING OPEN TIMES:
COLD:
JUCE v2.0.39
FATAL ERROR: OpenAComponent: result: -1,0xFFFFFFFFv
 auval -v aufx Jcdm RawM

  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
         AU Validation Tool
         Version: 1.6.1a1 
          Copyright 2003-2007, Apple, Inc. All Rights Reserved.

         Specify -h (-help) for command options
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

--------------------------------------------------
VALIDATING AUDIO UNIT: 'aufx' - 'Jcdm' - 'RawM'
--------------------------------------------------
ERROR: Cannot get Component's Name strings
ERROR: Error from retrieving Component Version: -50

* * FAIL
--------------------------------------------------
TESTING OPEN TIMES:
FATAL ERROR: didn't find the component

#2

Seem to remember this is something to do with 64-bit mode…


#3

It was this issue:

viewtopic.php?f=8&t=11116

Adding yairadix’s code to my post-script fixed it:

# Fix info.plist for AUs built with Xcode 3
if [ $copyAU -gt 0 ]; then
  if [ -f "$DEVELOPER_DIR/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUPlugInDispatch.cpp" ]; then
    OLD_AU=0
  else
    OLD_AU=1
  fi

  if [ $OLD_AU -gt 0 ]; then
    echo "Removing AudioComponents entry from Info.plist because this is not a new-format AU"
    /usr/libexec/PlistBuddy -c "Delete AudioComponents" "$original/Contents/Info.plist"
  fi
fi

#4

Ah yes. That script has been included in the latest introjucer code for a while now.