HISE Logo Forum
    • Categories
    • Register
    • Login

    Ad Hoc Code Sign Error OSX

    Scheduled Pinned Locked Moved General Questions
    32 Posts 5 Posters 1.2k 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.
    • DanHD
      DanH
      last edited by

      I mentioned this a few weeks ago in a different thread. I haven't been able to use a commit of Develop to export a plugin from HISE since November 30th. The error I get upon export is below:

      ❌  error: Ad Hoc code signing is not compatible with the Hardened Runtime. Sign with a Mac Developer certificate or disable the Hardened Runtime by setting the ENABLE_HARDENED_RUNTIME build setting to NO. (in target 'DANH - App')
      

      All the hardened runtime stuff is as it should be in the project files etc (changing any of these settings breaks everything).

      I'm on Mojave on my main machine so I figured I'd upgrade my old laptop (which was on Catalina but also getting these errors) to Big Sur and hey presto, I can now export from the latest Develop. All my developer certificates are on my main machine. My laptop doesn't have any of these and I'm not logged into XCode on there. Obviously I had to upgrade XCode to v 13.2.1.

      I'd rather not risk upgrading my main machine to Monterey in case other things break in the process, not to mention I lose some 32 bit plugins and a couple of hardware synths that have yet to update themselves!

      I can happily codesign and notarize plugins exported from Develop 30th Nov commit. So I don't think my certificates are to blame (esp as I has the same errors on my laptop).

      Any advice sincerely welcome! I'm getting left behind 😢 :face_with_tears_of_joy:

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @DanH
        last edited by

        @danh what are you using to do the codesigning?

        Daves utility? or command line?

        HISE Development for hire.
        www.channelrobot.com

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @Lindon
          last edited by

          @lindon this is literally exporting from HISE direct, as in:

          Export -> Export as Instrument (VST/AU) Plugin

          So no codesigning should be happening anywhere as far as I'm concerned. I could be wrong though?

          I'm not sure what's changed between 30th Nov and now...

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          Matt_SFM 1 Reply Last reply Reply Quote 0
          • Matt_SFM
            Matt_SF @DanH
            last edited by

            @danh we talked about this recently and I got the same error, which was gone with I-don't-remeber-which commit. But afterwards I grabbed a more recent commit and the issue was back... The solution I used was to open the autogenerated projucer file and build the plugin using xcode (like when you're building HISE).
            It worked fine, but I always codesign my plugins manually after compiling.

            Develop branch
            Win10 & VS17 / Ventura & Xcode 14. 3

            DanHD 3 Replies Last reply Reply Quote 0
            • DanHD
              DanH @Matt_SF
              last edited by

              @matt_sf Thanks, let me give this a try

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @Matt_SF
                last edited by

                @matt_sf sadly getting the same error

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                Matt_SFM 1 Reply Last reply Reply Quote 0
                • Matt_SFM
                  Matt_SF @DanH
                  last edited by

                  @danh oh I didn't mentioned it but in the projucer file you have to disable 'hardened runtime'. I should have some time soon to check the process, I'll come back with more info.

                  Develop branch
                  Win10 & VS17 / Ventura & Xcode 14. 3

                  DanHD 2 Replies Last reply Reply Quote 1
                  • DanHD
                    DanH @Matt_SF
                    last edited by

                    @matt_sf aha! let me try again 😆

                    DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                    https://dhplugins.com/ | https://dcbreaks.com/
                    London, UK

                    1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @Matt_SF
                      last edited by

                      @matt_sf ok, success... nice thanks. so it's built the standalone. How do I make it build a vst / au?

                      Sorry, haven't built this way before!

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      d.healeyD Matt_SFM 2 Replies Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @DanH
                        last edited by

                        @danh Exactly the same method for the plugin

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

                        1 Reply Last reply Reply Quote 0
                        • Matt_SFM
                          Matt_SF @DanH
                          last edited by

                          @danh great! it depends on the autogenerated file. So just choose 'HISE > export as plugin'

                          Develop branch
                          Win10 & VS17 / Ventura & Xcode 14. 3

                          DanHD 1 Reply Last reply Reply Quote 0
                          • DanHD
                            DanH @Matt_SF
                            last edited by

                            @matt_sf ok gotcha. Thanks loads for the help. Definitely more time consuming than using @d-healey 's app!!

                            If only we could find the issue...

                            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                            https://dhplugins.com/ | https://dcbreaks.com/
                            London, UK

                            d.healeyD 1 Reply Last reply Reply Quote 0
                            • DanHD
                              DanH @Matt_SF
                              last edited by

                              @matt_sf are you on Mojave as well?

                              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                              https://dhplugins.com/ | https://dcbreaks.com/
                              London, UK

                              Matt_SFM 1 Reply Last reply Reply Quote 0
                              • Matt_SFM
                                Matt_SF @DanH
                                last edited by

                                @danh nope, catalina

                                Develop branch
                                Win10 & VS17 / Ventura & Xcode 14. 3

                                1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @DanH
                                  last edited by

                                  @danh said in Ad Hoc Code Sign Error OSX:

                                  If only we could find the issue...

                                  Probably a problem with the template generator in HISE, should be an easy fix

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  DanHD 1 Reply Last reply Reply Quote 0
                                  • DanHD
                                    DanH @d.healey
                                    last edited by

                                    @d-healey As in it's setting the Runtime to the wrong setting?

                                    DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                    https://dhplugins.com/ | https://dcbreaks.com/
                                    London, UK

                                    Matt_SFM 2 Replies Last reply Reply Quote 0
                                    • Matt_SFM
                                      Matt_SF @DanH
                                      last edited by

                                      @danh I can't check it now but search for the setting here :

                                      HISE/hi_backend/backend/ProjectTemplate.cpp
                                      HISE/hi_backend/backend/StandaloneProjectTemplate.cpp

                                      I'll try to test it tonight and see if it works

                                      Develop branch
                                      Win10 & VS17 / Ventura & Xcode 14. 3

                                      1 Reply Last reply Reply Quote 1
                                      • Matt_SFM
                                        Matt_SF @DanH
                                        last edited by

                                        @danh It couldn't be simpler : go into these files :

                                        HISE/hi_backend/backend/ProjectTemplate.cpp
                                        HISE/hi_backend/backend/StandaloneProjectTemplate.cpp

                                        and search for hardenedRuntime=\"1\".

                                        Change 1 to 0, recompile HISE and you're done, it's working just fine :thumbs_up:

                                        Develop branch
                                        Win10 & VS17 / Ventura & Xcode 14. 3

                                        orangeO 1 Reply Last reply Reply Quote 0
                                        • orangeO
                                          orange @Matt_SF
                                          last edited by orange

                                          AFAIK, the Hardened Runtime is a must for the notarization. So disabling it isn't a good way to go.

                                          There should be a fix without disabling it.

                                          develop Branch / XCode 13.1
                                          macOS Monterey / M1 Max

                                          Matt_SFM d.healeyD 3 Replies Last reply Reply Quote 0
                                          • Matt_SFM
                                            Matt_SF @orange
                                            last edited by

                                            @orange ok thanks for the info ! I'll try to notarize a plugin later to see what happens. If really this isn't the solution, we'll still be able to compile projects by loading the projucer file in xcode, so this is not a big issue.

                                            Develop branch
                                            Win10 & VS17 / Ventura & Xcode 14. 3

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

                                            25

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.1k

                                            Posts