# Moduleinfo.json and macOS notarization

**URL:** <https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208>\
**Category:** VST 3 SDK\
**Tags:** mac\
**Created:** [January 19, 2023, 11:21pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208 "2023-01-19T23:21:54Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 19, 2023, 11:21pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/1 "2023-01-19T23:21:54Z")

</div>

Hi Arne,

I noticed the VST3 SDK uses a command to perform local signing of the moduleinfo.json in `SMTG_AddVST3Library.cmake`:

```auto
 if(SMTG_MAC)
        add_custom_command(
            TARGET ${target} POST_BUILD
            COMMAND 
                codesign -f -s "-" -v "${PLUGIN_PACKAGE_PATH}/${SMTG_MODULEINFO_PATH_INSIDE_BUNDLE}"
                WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
        )
endif()

```

Without this XCode fails to create the bundle and complains that ‘code object is not signed at all’.

Unfortunately, when making an installer for distribution, even after signing everything with a proper Apple developer certificate,  
and despite codesign saying the bundle is properly signed, I cannot get it to pass notarization checks using notarytool.  
The log states ‘The signature of the binary is invalid’.  
If I remove the .json or move it to `Resources` everything works perfectly.

Are you sure that putting non-code objects at the root of the `Contents` bundle folder is actually allowed ? According to Apple it strongly looks like it isn’t …  
[https://developer.apple.com/forums/thread/128166](https://developer.apple.com/forums/thread/128166)

 ![image](https://europe1.discourse-cdn.com/steinberg/original/3X/9/8/986300f4fc283afdabe573d7686d215e2b313d6d.png)

> **[Placing Content in a Bundle | Apple Developer Documentation](https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle?language=objc)**
>
> Place bundle content in the correct location based on its type.

I suppose you’re using the moduleinfo.json for Steinberg plugins, if so, could you tell us how you solved the issue ?

Thanks,  
Lorcan

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [January 20, 2023, 8:35am UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/2 "2023-01-20T08:35:22Z")

</div>

I will have to talk to some people here. May take some time.

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 20, 2023, 12:20pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/3 "2023-01-20T12:20:12Z")

</div>

Thanks.  
In the meantime I will use the IPluginCompatibility option instead.

For the record this compatibility feature is used by NI Maschine to provide [NKS integration](https://support.native-instruments.com/hc/en-us/articles/6178238907421-KOMPLETE-KONTROL-MASCHINE-Error-Product-could-not-be-loaded-as-it-may-not-support-Apple-Silicon-or-VST2-to-VST3-migration-) for plugins on Apple Silicon where VST2 isn’t available anymore.

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [January 20, 2023, 1:21pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/4 "2023-01-20T13:21:23Z")

</div>

Hi Lorcan,  
I just checked here to notarize a plug-in installer which includes a plug-in with a moduleinfo.json file and it was successfully notarized by Apple.  
Did you really sign the moduleinfo.json with the correct identity? I see that the signing of this file in the SDK is currently broken for release mode as it always signs the moduleinfo.json with an ad-hoc signature.

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 20, 2023, 1:25pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/5 "2023-01-20T13:25:21Z")

</div>

Yes I did sign the moduleinfo.json with my Apple Developer Certificate, otherwise codesign reports the signature as invalid (the vst3 binary and json signatures don’t match).  
Codesign then reports the bundle signature as correct but notarytool disagrees, you get an error in the subsequent log …

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [January 20, 2023, 1:26pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/6 "2023-01-20T13:26:34Z")

</div>

What did you notarize? You cannot notarize a .vst3 bundle you need to notarize a pkg installer, zip or disk image.

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 20, 2023, 1:31pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/7 "2023-01-20T13:31:41Z")

</div>

Yes I notarize the .pkg, prior to that I notarize the .vst3 binary as this is recommended by all sorts of sources including Apple, juce, kvr etc.  
Steinberg’s own Halion Sonic SE and Groove Agent SE are also signed and notarized.

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 20, 2023, 1:33pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/8 "2023-01-20T13:33:11Z")

</div>

![Screenshot 2023-01-20 at 14.32.11](https://europe1.discourse-cdn.com/steinberg/original/3X/9/7/97b98f73ccb9699aa2efbe0d0ae194e609bb3607.jpeg)

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 20, 2023, 1:40pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/9 "2023-01-20T13:40:44Z")

</div>

And by the way you [can notarize a bundle](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution?language=objc)

[https://developer.apple.com/documentation/security/notarizing\_macos\_software\_before\_distribution/customizing\_the\_notarization\_workflow?language=objc](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow?language=objc)

 ![image](https://europe1.discourse-cdn.com/steinberg/original/3X/0/0/00768ce2ff01a362a2ca0bf8368b5d8864ff903a.png)

 ![image](https://europe1.discourse-cdn.com/steinberg/original/3X/7/e/7ea9d0a91b337ad7ffd0ab69bb7a2e71b388e887.png)

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [January 20, 2023, 1:48pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/10 "2023-01-20T13:48:13Z")

</div>

Oh, seems I’m wrong. Sorry. My only contact with notarization was always with pkg.  
Which App is the screenshot from?

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 20, 2023, 1:51pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/11 "2023-01-20T13:51:40Z")

</div>

No problem, signing and notarization is a minefield and Apple keep changing their policies so it isn’t easy to follow.

The app is [Apparency](https://mothersruin.com/software/Apparency/).  
They also have [SuspiciousPackage](https://mothersruin.com/software/SuspiciousPackage/) which is great for installers.

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [January 20, 2023, 2:00pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/12 "2023-01-20T14:00:27Z")

</div>

Thanks, if I look at the installed plug-in where I added the moduleinfo.json file, the app Apparency shows the plug-in as notarized.  
So if you notarize only the installer the plug-in gets this status after installation. At least this works.

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [January 20, 2023, 2:06pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/13 "2023-01-20T14:06:55Z")

</div>

Ok but so you only signed moduleinfo.json with a valid certificate prior to building the .pkg and submitting it to notarization then ?

I’m afraid this won’t work for people not using .pkg installers though, e.g. companies who have center type apps (Plugin alliance etc)

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [January 20, 2023, 2:56pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/14 "2023-01-20T14:56:21Z")

</div>

For a deeper analysis I need more time. We have a CI infrastructure that does all the building, signing and notarization for us. So I need to do this by hand to see what happens exactly. For me it doesn’t make sense to disallow notarization in this case, but we will see.

---

<div class="post-metadata">

**Author:** ![Arne\_Scheffler](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/arne_scheffler/32/92023_2.png) [@Arne\_Scheffler](https://forums.steinberg.net/u/Arne_Scheffler)\
**Post date:** [May 4, 2023, 2:41pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/15 "2023-05-04T14:41:39Z")

</div>

Hi Lorcan,  
I finally was able to work on this issue. For me it is possible to notarize a ZIP file containing the VST3 bundle without issues. We use the REST API and not the **notarytool** to do the notarization.  
Can you tell me with which parameters for **notarytool** you get the error?

---

<div class="post-metadata">

**Author:** ![Lorcan](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/lorcan/32/72547_2.png) [@Lorcan](https://forums.steinberg.net/u/Lorcan)\
**Post date:** [May 5, 2023, 12:26pm UTC](https://forums.steinberg.net/t/moduleinfo-json-and-macos-notarization/829208/16 "2023-05-05T12:26:22Z")

</div>

Hi @Arne_Scheffler, I’m currently moving houses and am without access to the mac for a few days.  
I’ll check this shortly and will get back to you ASAP, thanks.

Best,  
Lorcan
