HISE Logo Forum
    • Categories
    • Register
    • Login

    CI mode plugins compile script on MacOS- error in building the App only

    Scheduled Pinned Locked Moved General Questions
    2 Posts 1 Posters 298 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gorangroovesG
      gorangrooves
      last edited by

      Here is my simple compile script for MacOS:

      #!/bin/bash
      
      project_name="Handy Drums- Flamenco Percussion"
      project_dir="/Volumes/GoranMacSSD/HISE_PROJECTS/HandyDrums-FlamencoPercussion"
      hise_source="/Volumes/GoranMacSSD/HISE-develop"
      hise_path=$hise_source"/projects/standalone/Builds/MacOSX/build/Release/HISE.app/Contents/MacOS/HISE"
      projucer_path=$hise_source"/tools/projucer/Projucer.app/Contents/MacOS/Projucer"
      
      output="/Users/goranrista/Desktop/plugins"
      echo =========================================
      echo =========================================
      echo Build the binaries
      echo =========================================
      
      "$hise_path" set_hise_folder -p:"$hise_source"
      "$hise_path" set_project_folder -p:"$project_dir"
      
      chmod +x "$projucer_path"
      
      echo =========================================
      echo Building the standalone app
      echo =========================================
      "$hise_path" export_ci "XmlPresetBackups/$project_name.xml" -t:standalone -p:""
      chmod +x "$project_dir/Binaries/batchCompileOSX"
      sh "$project_dir/Binaries/batchCompileOSX"
      
      
      echo =========================================
      echo Building VST2 plugin
      echo =========================================
      "$hise_path" export_ci "XmlPresetBackups/$project_name.xml" -t:instrument -p:VST2
      chmod +x "$project_dir/Binaries/batchCompileOSX"
      sh "$project_dir/Binaries/batchCompileOSX"
      
      echo =========================================
      echo Building VST3 plugin
      echo =========================================
      "$hise_path" export_ci "XmlPresetBackups/$project_name.xml" -t:instrument -p:VST3
      chmod +x "$project_dir/Binaries/batchCompileOSX"
      sh "$project_dir/Binaries/batchCompileOSX"
      
      echo =========================================
      echo Building AU plugin
      echo =========================================
      "$hise_path" export_ci "XmlPresetBackups/$project_name.xml" -t:instrument -p:AU
      chmod +x "$project_dir/Binaries/batchCompileOSX"
      sh "$project_dir/Binaries/batchCompileOSX"
      
      echo =========================================
      echo Building AAX plugin
      echo =========================================
      "$hise_path" export_ci "XmlPresetBackups/$project_name.xml" -t:instrument -p:AAX
      chmod +x "$project_dir/Binaries/batchCompileOSX"
      sh "$project_dir/Binaries/batchCompileOSX"
      
      echo =========================================
      echo Copy all compiled plugins and standalone app to the packaging plugin set_hise_folder
      echo =========================================
      
      cp -R "$project_dir/Binaries/Compiled/$project_name.app" "$output/$project_name.app"
      cp -R "$project_dir/Binaries/Builds/MacOSX/build/Release/$project_name.vst" "$output/$project_name.vst"
      cp -R "$project_dir/Binaries/Builds/MacOSX/build/Release/$project_name.vst3" "$output/$project_name.vst3"
      cp -R "$project_dir/Binaries/Builds/MacOSX/build/Release/$project_name.aaxplugin" "$output/$project_name.aaxplugin"
      cp -R "$project_dir/Binaries/Builds/MacOSX/build/Release/$project_name.component" "$output/$project_name.component"
      

      The script builds all plugins perfectly, but fails in the app. I managed to compile the app directly from HISE. The error I am encountering with this CI mode compile is:

      ** BUILD FAILED **
      
      
      The following build commands failed:
      	Ld /Volumes/GoranMacSSD/HISE_PROJECTS/HandyDrums-FlamencoPercussion/Binaries/Builds/MacOSX/build/Handy\ Drums-\ Flamenco\ Percussion.build/Release/Handy\ Drums-\ Flamenco\ Percussion\ -\ App.build/Objects-normal/x86_64/Binary/Handy\ Drums-\ Flamenco\ Percussion normal x86_64 (in target 'Handy Drums- Flamenco Percussion - App' from project 'Handy Drums- Flamenco Percussion')
      	Ld /Volumes/GoranMacSSD/HISE_PROJECTS/HandyDrums-FlamencoPercussion/Binaries/Builds/MacOSX/build/Handy\ Drums-\ Flamenco\ Percussion.build/Release/Handy\ Drums-\ Flamenco\ Percussion\ -\ App.build/Objects-normal/arm64/Binary/Handy\ Drums-\ Flamenco\ Percussion normal arm64 (in target 'Handy Drums- Flamenco Percussion - App' from project 'Handy Drums- Flamenco Percussion')
      (2 failures)
      

      @Christoph-Hart What does this mean?

      I also got the following warnings that also display when exporting directly from HISE, but that didn't stop HISE from exporting:

      /Volumes/GoranMacSSD/HISE_PROJECTS/HandyDrums-FlamencoPercussion/Binaries/batchCompileOSX: /usr/local/bin/xcpretty: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
      2024-01-15 15:35:47.998 xcodebuild[1152:564206] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22269/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103
      
      Details:  createItemModels creation requirements should not create capability item model for a capability item model that already exists.
      
      Function: createItemModels(for:itemModelSource:)
      
      Thread:   <_NSMainThread: 0x6000002842c0>{number = 1, name = main}
      
      Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
      

      Goran Rista
      https://gorangrooves.com

      Handy Drums and Handy Grooves
      https://library.gorangrooves.com

      gorangroovesG 1 Reply Last reply Reply Quote 0
      • gorangroovesG
        gorangrooves @gorangrooves
        last edited by

        @gorangrooves Seems that updating to the latest XCode 15.2 fixed the issues.

        Goran Rista
        https://gorangrooves.com

        Handy Drums and Handy Grooves
        https://library.gorangrooves.com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        31

        Online

        1.7k

        Users

        11.8k

        Topics

        102.6k

        Posts