Skip to content

Commit

Permalink
Update entitlements to support installation of extensions providing u…
Browse files Browse the repository at this point in the history
…nsigned libraries

This commit sets "com.apple.security.cs.disable-library-validation" to true
and is intended to prevent error like the following reported
after installing extension like SlicerHeart or after (re-)installing
python package providing unsigned compiled python module (e.g numpy).

  /path/to/Slicer-5.0.2.app/Contents/Extensions-30822/SlicerHeart/lib/Slicer-5.0/qt-loadable-modules/libqSlicerKretzFileReaderModule.dylib:
    code signature in (/path/to/Slicer-5.0.2.app/Contents/Extensions-30822/SlicerHeart/lib/Slicer-5.0/qt-loadable-modules/libqSlicerKretzFileReaderModule.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.)

See Slicer/Slicer#6065 (comment)
  • Loading branch information
jcfr committed Aug 17, 2022
1 parent 70d0292 commit a60a3d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entitlements.plist
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<!--See https://github.com/Slicer/Slicer/issues/6065#issuecomment-1132504575 -->
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>

0 comments on commit a60a3d8

Please sign in to comment.