Skip to content

Instantly share code, notes, and snippets.

@marfurt
marfurt / code-signing.md
Created July 18, 2024 07:50
Tips and commands related to iOS code signing and Fastlane

Code Signing Commands

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

@marfurt
marfurt / git-tips.md
Last active August 8, 2019 06:33
A collection of Git tips

Git Tips

Mass Rename Git Tags

Rename all tags starting with "release" to "releases":

git tag -l | grep '^release/' | while read t; do n=$(echo "$t" | sed 's/release/releases/g'); git tag $n $t; git push --tags; git tag -d $t; git push origin :refs/tags/$t ; done

Statistics

## 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