List the identities on your system that can be used for code signing:
security find-identity -v -p codesigning
Getting information about the code signing status of an executable:
codesign -vv -d MyApp.app
| ## Creating The Text Macro File | |
| 1. Create a plist file named IDETemplateMacros.plist. | |
| 2. Add an entry in the plist file for the FILEHEADER macro with your format. | |
| 3. Move the plist file into the right location. | |
| ``` | |
| <?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"> |
| // | |
| // Setting a launch argument or environment variable can be done from Xcode in the Arguments tab in scheme edition. | |
| // | |
| // Launch arguments have only one input field and need a `-` at the start, e.g. `-aLaunchArgument`. | |
| // Environment variables have instead two fields, one for the name and one for the value. | |
| // | |
| // More information can be found on NSHipster: http://nshipster.com/launch-arguments-and-environment-variables/ | |
| // | |
| // Read an environment variable |