Extraction of rights from opportunities of Xcode

I need to get the right file generated by Xcode automatically when creating the project.

Usually (even if you do not have certain explicit features), you can find it in $DERIVED_FILES_DIR/$PRODUCT_NAME.xcent , it contains general information about your team and access to the keychain.

Does anyone know a way to generate it bypassing the build phase. I want to find out a thread that is not related to whether an explicit permissions file was specified or when the capabilities panel was specified.

Perhaps I am missing something obvious, any information would be greatly appreciated.

+6
source share
1 answer

I really found a way (thanks to Apple engineers):

$ codesign -d --entitlements - /path/to/app/bundle.app :

 <?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.app-sandbox</key> <true/> <key>com.apple.security.files.user-selected.read-only</key> <true/> <key>com.apple.security.network.client</key> <true/> <key>com.apple.security.network.server</key> <true/> </dict> </plist> 

Hope this helps you too!

0
source

Source: https://habr.com/ru/post/971498/


All Articles