<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">@feek; Fascinating, thats something to be excited about!</p>

<p dir="auto">@Zdenko; Thanks, thats amazing :)</p>

<p dir="auto">@allan; I'm running out the door, but if you like I'll put a formal pr together (if only for review).</p>

<p dir="auto">To see this error I had to make some changes in the source.</p>

<p dir="auto">In TMPlugInController, line 90 (original);</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">if([bundle load])
</code></pre>

<p dir="auto">becomes:</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">NSError *bundleLoadError;

if([bundle loadAndReturnError:&bundleLoadError])
</code></pre>

<p dir="auto">and then down on 104 (original);</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">NSLog(@"Failed to load plug-in: %@, path %@", name ?: identifier, aPath);
</code></pre>

<p dir="auto">becomes</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">NSLog(@"Failed to load plug-in: %@, path %@. Error %@", name ?: identifier, aPath, bundleLoadError);
</code></pre>

<p dir="auto">Thanks,<br>
Graham</p>

<p dir="auto">On 13 Jul 2019, at 3:41, Allan Odgaard wrote:</p>

</div>
<div style="white-space:normal"></div>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div id="8DAE844C-2623-4001-9516-F5545502EF92">

<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 12 Jul 2019, at 22:34, Graham Heath wrote:</p>

</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I am also seeing the same error for Contents/PlugIns/Dialog2.tmplugin and<br>
Dialog.tmplugin.</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">Where are you seeing this error?</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">% codesign -vv TextMate.app/Contents/PlugIns/Dialog.tmplugin
TextMate.app/Contents/PlugIns/Dialog.tmplugin: valid on disk
TextMate.app/Contents/PlugIns/Dialog.tmplugin: satisfies its Designated Requirement
</code></pre>

<p dir="auto">And TextMate itself (which embeds the plug-ins) should be notarized:</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">% spctl -a -v TextMate.app
TextMate.app: accepted
source=Notarized Developer ID
</code></pre>

</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I tried signing the plugin, but it was already signed.<br>
<br>
$ codesign -s "[...]" EmmetTextMate-1.tmplugin</p>
</blockquote></div>
<div style="white-space:normal">

<p dir="auto">The recent change was the switch to the hardened runtime, this is done by adding <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">--options runtime</code> to <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">codesign</code>.</p>

<p dir="auto">So try re-sign it with that option.</p>

<p dir="auto">However, when enabling the hardened runtime the plug-in may need entitlements, for example if it is sending AppleEvents. But lacking entitlements shouldn’t cause a problem loading the plug-in, it will just be a runtime failure from <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">AESend</code>.</p>
</div>
</div></div></blockquote>
<div style="white-space:normal">
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
</blockquote><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">_______________________________________________<br>
textmate mailing list<br>
textmate@lists.macromates.com<br>
<a href="https://lists.macromates.com/listinfo/textmate" style="color:#777">https://lists.macromates.com/listinfo/textmate</a></p>
</blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>