Skip to content

Instantly share code, notes, and snippets.

View Francescu's full-sized avatar

Francescu Santoni Francescu

View GitHub Profile
@moveitonover
moveitonover / UIKitLocalizedString.swift
Last active October 27, 2020 13:51
Localized strings accessible from com.apple.UIKit bundle
//
// UIKitLocalizedString.swift
//
// Helper class for accessing the localized strings shipped with Apple UIKit
//
class UIKitLocalizedString {
static let bundle = Bundle(identifier: "com.apple.UIKit")
@tylermilner
tylermilner / copy_appropriate_google-service-info-plist.sh
Last active April 29, 2024 14:50
A shell script to selectively copy your GoogleService-Info.plist into your app bundle based on the current build configuration.
# Name of the resource we're selectively copying
GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist
# Get references to dev and prod versions of the GoogleService-Info.plist
# NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually)
GOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Dev/${GOOGLESERVICE_INFO_PLIST}
GOOGLESERVICE_INFO_PROD=${PROJECT_DIR}/${TARGET_NAME}/Firebase/Prod/${GOOGLESERVICE_INFO_PLIST}
# Make sure the dev version of GoogleService-Info.plist exists
echo "Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_DEV}"
@Tokuriku
Tokuriku / Count lines of code in Xcode project
Last active June 30, 2024 21:09 — forked from ccabanero/Count lines of code in Xcode project
Count lines of code in SWIFT Xcode project
1. Open Terminal
2. cd to your Xcode project
3. Execute the following when inside your target project:
find . -name "*.swift" -print0 | xargs -0 wc -l