Forum

    • Register
    • Login
    • Search
    • Categories

    Ad Hoc Code Sign Error OSX

    General Questions
    5
    32
    146
    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.
    • DanH
      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 😢 😂

      Lindon 1 Reply Last reply Reply Quote 0
      • Lindon
        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

        DanH 1 Reply Last reply Reply Quote 0
        • DanH
          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...

          Matt_SF 1 Reply Last reply Reply Quote 0
          • Matt_SF
            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 - Build : may 14
            Win10 / Monterrey & Xcode 13

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

              @matt_sf Thanks, let me give this a try

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

                @matt_sf sadly getting the same error

                Matt_SF 1 Reply Last reply Reply Quote 0
                • Matt_SF
                  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 - Build : may 14
                  Win10 / Monterrey & Xcode 13

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

                    @matt_sf aha! let me try again 😆

                    1 Reply Last reply Reply Quote 0
                    • DanH
                      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!

                      d.healey Matt_SF 2 Replies Last reply Reply Quote 0
                      • d.healey
                        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_SF
                          Matt_SF @DanH last edited by

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

                          Develop branch - Build : may 14
                          Win10 / Monterrey & Xcode 13

                          DanH 1 Reply Last reply Reply Quote 0
                          • DanH
                            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...

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

                              @matt_sf are you on Mojave as well?

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

                                @danh nope, catalina

                                Develop branch - Build : may 14
                                Win10 / Monterrey & Xcode 13

                                1 Reply Last reply Reply Quote 0
                                • d.healey
                                  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

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

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

                                    Matt_SF 2 Replies Last reply Reply Quote 0
                                    • Matt_SF
                                      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 - Build : may 14
                                      Win10 / Monterrey & Xcode 13

                                      1 Reply Last reply Reply Quote 1
                                      • Matt_SF
                                        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 👍

                                        Develop branch - Build : may 14
                                        Win10 / Monterrey & Xcode 13

                                        orange 1 Reply Last reply Reply Quote 0
                                        • orange
                                          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.

                                          Matt_SF d.healey 3 Replies Last reply Reply Quote 0
                                          • Matt_SF
                                            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 - Build : may 14
                                            Win10 / Monterrey & Xcode 13

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

                                            14
                                            Online

                                            742
                                            Users

                                            5.4k
                                            Topics

                                            50.4k
                                            Posts