I hereby claim:
- I am jutoart on github.
- I am jutoart (https://keybase.io/jutoart) on keybase.
- I have a public key ASB0dFiNfa9WzeCjkgcBtS0Eswz95xTd5pcdKuD5E2SRGQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Add upstream and set upstream | |
git remote add upstream git@github.com:xxx/xxx.git | |
git fetch upstream | |
git branch -u upstream/master |
let dateFormatter = DateFormatter() | |
dateFormatter.dateFormat = "yyyMMdd" | |
dateFormatter.locale = Locale(identifier: "zh_Hant_TW") | |
dateFormatter.timeZone = TimeZone(identifier: "Asia/Taipei") | |
dateFormatter.calendar = Calendar(identifier: .republicOfChina) |
xcrun simctl erase all |
rm ~/Library/Caches/com.apple.dt.Xcode/Downloads/* |
find ~/Library/Logs/CoreSimulator/ -depth 1 -type d -mtime +12w -exec rm -rf {} \; |
#!/bin/bash | |
# This script checks the binary and all nested frameworks for duplicated classes (both ObjectiveC and Swift). | |
# The script fails if it finds any duplicated classes. | |
function print_classes() { | |
otool -ov "$1" | | |
sed -n '/Contents of (__DATA,__objc_classlist)/,/Contents of/p' | # all lines for (__DATA,__objc_classlist) section | |
egrep '^[0-9]' | # take just a class header | |
cut -d ' ' -f 3 | # take just a symbol name |
find ~/Library/Developer/Xcode/UserData/IB\ Support/Simulator\ Devices/*/data/tmp -iname "*.uicatalog" -type f -atime +1 -delete |