I'm trying to sign some PHP binaries so that they are happy to run PHP extensions compiled by other people.
I've tried creating a signing-entitlements.plist
such as:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
but when trying to run the following:
codesign --entitlements signing-entitlements.plist --force --options runtime --sign '$release_certificate' '$file'
...I get the following error: signing-entitlements.plist: cannot read entitlement data
Do I need to convert the XML to some other format perhaps?
Is it even the right entitlement to achieve what I am trying to do?
Thanks for any help!