Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Fix IINA crashes with 'Code Signature Invalid', iina#3551
Browse files Browse the repository at this point in the history
This commit will replace the entitlement "com.apple.security.cs.allow-jit" with
"com.apple.security.cs.allow-unsigned-executable-memory" in the
IINA.entitlements file.

This is required because the OpenResty LuaJIT library is not following Apple's
best practices for JIT compilers that allow use of the more restrictive
entitlement. This has been reported in this LuaJIT issue:

Code Signature Invalid crash using com.apple.security.cs.allow-jit
openresty/luajit2#145
  • Loading branch information
low-batt committed Apr 23, 2022
1 parent f247f03 commit f40b5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iina/IINA.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
Expand Down

0 comments on commit f40b5d1

Please sign in to comment.