<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Howdy, I maintain the EditorConfig plugin for TextMate (<a href="https://github.com/Mr0grog/editorconfig-textmate" class="">https://github.com/Mr0grog/editorconfig-textmate</a>). I haven’t had much time to work on it recently, but I was trying to update it for the latest TextMate this morning. However, MacOS won’t actually load my bundle inside TextMate. I see this message when TextMate starts:<div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">Failed to load ‘editorconfig-textmate’ (~/Library/Application Support/TextMate/PlugIns/editorconfig-textmate.tmplugin): The bundle “editorconfig-textmate” couldn’t be loaded because it is damaged or missing necessary resources.</div></blockquote><div class=""><br class=""></div><div class="">I’m fairly certain the cause is that TextMate now uses the hardened runtime (<a href="https://github.com/textmate/textmate/commit/412e6798ca206b15cdc8f86a1387835a3f4f82e7" class="">https://github.com/textmate/textmate/commit/412e6798ca206b15cdc8f86a1387835a3f4f82e7</a>).<div class=""><br class=""></div><div class="">I saw Allan’s message about a similar issue with the Emmet plugin on July 13th: <a href="https://lists.macromates.com/textmate/2019-July/041039.html" class="">https://lists.macromates.com/textmate/2019-July/041039.html</a></div><div class="">…but enabling the hardened runtime when signing the bundle doesn’t solve the issue for me.</div><div class=""><br class=""></div><div class="">I think the actual problem in this case is that TextMate (not my plug-in) is missing the <font face="Courier" class=""><span style="font-style: normal;" class="">`com.apple.security.cs.disable-library-validation`</span></font> entitlement for hardening. Apple’s docs (<a href="https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_cs_disable-library-validation" class="">https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_cs_disable-library-validation</a>) say:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">Typically, the Hardened Runtime’s library validation prevents an app from loading frameworks, plug-ins, or libraries unless they’re either signed by Apple or signed with the same team ID as the app. The macOS dynamic linker (dyld) provides a detailed error message when this happens. Use the Disable Library Validation Entitlement to circumvent this restriction.</blockquote><br class=""></div><div class="">Obviously I can’t and shouldn’t sign the plug-in with TextMate’s team ID! So it sounds like this is probably required for third-party plug-ins. Are there other third-party plug-ins that are functioning with the latest version of TextMate? Something else I might be missing here?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Rob Brackett</div><div class=""><a href="mailto:rob@robbrackett.com" class="">rob@robbrackett.com</a></div><div class="">@Mr0grog</div><div class=""><br class=""></div></div></body></html>