This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let resourceKeys: [URLResourceKey] = [.creationDateKey, .nameKey, .fileSizeKey] | |
let desctopEnumerator = fs.enumerator(at: desctop, includingPropertiesForKeys: resourceKeys)! | |
for case let fileURL as URL in desctopEnumerator { | |
guard let resourceProps = try? fileURL.resourceValues(forKeys: Set(resourceKeys)), | |
let size = resourceProps.fileSize, | |
let date = resourceProps.creationDate, | |
let name = resourceProps.name else { continue } | |
let sizeMB = size / 1_048_576 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo $0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ codesign -d --verbose App.app/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ codesign -v --verbose=5 /path/to/App.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ codesign -s "iPhone Developer: Team name (TEAM_ID)" /path/to/App.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~/Library/MobileDevice/Provisioning\ Profiles/ | |
$ security cms -D -i xxxxxxxx_your_pp_id.mobileprovision |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to check the entitlements of the .ipa: | |
# 1. Find the .ipa file and change its the extension to .zip. | |
# 2. Expand the file .zip. This will produce a Payload folder containing your .app bundle. | |
# Use the `codesign` tool to check the entitlements on the .app bundle | |
$ codesign -d --entitlements :- "Payload/YourApp.app" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ codesign -d --entitlements :- PATH_TO_APP.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl pkcs12 -info -in mycert.p12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl x509 -in #XXXXX#.cer -inform DER -out mycert.pem -outform PEM | |
$ openssl pkcs12 -export -inkey my.key -in mycert.pem -out mycert.p12 |