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 authored and CarterLi committed Jan 19, 2022
1 parent 71ade5b commit dc3bece
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 dc3bece

Please sign in to comment.