MacOS X Tips: Difference between revisions

Jump to navigation Jump to search
1,238 bytes added ,  23 April 2022
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
*コードサイニング系雑多なメモ
codesign する場合は、terminal 経由では駄目でMacでログインしてGUIが機能する必要がある。
自身のキーチェインアクセス.app のGUIが動く必要あり。
コードサインの削除
<syntaxhighlight lang="bash" enclose="div">
codesign --remove-signature my_a.out
</syntaxhighlight>
既存のコードサインの変更
<syntaxhighlight lang="bash" enclose="div">
codesign -s "Developer ID Application: YOUR NAME (YOUR_DEV_ID" -f --generate-entitlement-der --entitlements entitlements.xml my_a.out
</syntaxhighlight>
entitlements.xml
<syntaxhighlight lang="xml" enclose="div">
<?xml version="1.0" encoding="UTF-8"?>
<!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.virtualization</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
</plist>
</syntaxhighlight>
entitlements の確認
<syntaxhighlight lang="bash" enclose="div">
codesign -dvv  --entitlements - my_a.out
</syntaxhighlight>
*コアダンプ
*コアダンプ
Monterey とか門番強すぎ...
Monterey とか門番強すぎ...
Line 7: Line 45:
sudo chmod o+w  /cores
sudo chmod o+w  /cores
</syntaxhighlight>
</syntaxhighlight>


entitlements.xml
entitlements.xml
Line 22: Line 59:


codesign はいろいろ情況によるので割愛...
codesign はいろいろ情況によるので割愛...


*コードサイニング系メモ
*コードサイニング系メモ

Navigation menu