Skip to content

Instantly share code, notes, and snippets.

@yudinm
yudinm / project.yml
Created April 13, 2023 11:23 — forked from d-date/project.yml
XcodeGen Example
name: XXXX
attributes:
LastUpgradeCheck: 1140
ORGANIZATIONNAME: "kankak, Inc."
options:
bundleIdPrefix: com.xxxx.xxxxxxxx
deploymentTarget:
iOS: 13.1.3
configs:
Develop Debug: debug
@yudinm
yudinm / NSURLError
Created June 20, 2017 15:04
NSURLError codes
NSURLErrorUnknown = -1,
NSURLErrorCancelled = -999,
NSURLErrorBadURL = -1000,
NSURLErrorTimedOut = -1001,
NSURLErrorUnsupportedURL = -1002,
NSURLErrorCannotFindHost = -1003,
NSURLErrorCannotConnectToHost = -1004,
NSURLErrorNetworkConnectionLost = -1005,
NSURLErrorDNSLookupFailed = -1006,
NSURLErrorHTTPTooManyRedirects = -1007,
@yudinm
yudinm / XCode-Snippets.m
Last active December 27, 2016 14:45
XCode Snippets
// Doc
/** <#short description#>
* @param <#param#> <#parameter description#>
* @return <#return description#>
* @exception <#exception#> <#exception description#>
* @discussion <#discussion#>
*/
// Dispatch async
@yudinm
yudinm / .sh
Created September 14, 2016 09:12
XCode 7+ – Update build number with number of git commits
#Update build number with number of git commits #if in release mode
echo "BUILD CONFIGURATION: ${CONFIGURATION}"
#if [ ${CONFIGURATION} == "Release" ] || [ ${CONFIGURATION} == "Adhoc" ]; then
buildNumber=$(git rev-list HEAD | wc -l | tr -d ' ')
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
echo "BUILD VERSION: $buildNumber"
#fi;
@yudinm
yudinm / ioslocaleidentifiers.csv
Created June 8, 2016 10:24 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@yudinm
yudinm / XCode 7+ – viewHierarchy.txt
Last active August 12, 2016 08:40
Objective-C Snippets
po [[[UIWindow keyWindow] rootViewController] _printHierarchy]
@yudinm
yudinm / xcode bot integration trigger upload ubertesters.sh
Created February 26, 2016 10:07
XCode bot integration before and after trigger upload ubertesters
########################################
# Trigger before
########################################
export LC_ALL="en_US.UTF-8"
rm /tmp/gitlogF-${XCS_BOT_NAME}.log
git log -n 10 --pretty=format:'[%h] %s' --date-order >> /tmp/gitlogF-${XCS_BOT_NAME}.log
# rm -rf Pods
# /usr/local/bin/pod install