Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@u5-03
u5-03 / changeBuildNumber.sh
Last active March 20, 2023 09:51
Change CFBundleVersion value of iOS app
CONFIG_PATH="{path/to/xcconfig file}"
# Ref: https://www.curict.com/item/89/89a578b.html
# Check if executed in CI
if [ -n "$CI" ] && "$CI" ; then
echo "Run in CI"
BRANCH_NAME=$SOURCE_BRANCH # Add the appropriate environment variables used in CI.
else
echo "Run Not in CI"
BRANCH_NAME=`git rev-parse --abbrev-ref HEAD`
fi
@u5-03
u5-03 / xcframework_build.sh
Created April 20, 2022 16:15
xcframework build script
FRAMEWORK_NAME="SCHEME_NAME"
FILE_PATH=$(cd $(dirname $0) && pwd)
# Ref: https://qiita.com/tfactory/items/34f9d88f014c47221617
# Output directory (project root directly)
OUTPUT_DIR=$FILE_PATH/path/to/project_root
# Output destination directory for intermediate files
DERIVED_DIR=${OUTPUT_DIR}/$FRAMEWORK_NAME-derived
@u5-03
u5-03 / shell_memo.sh
Last active July 26, 2023 16:31
shell memo
# Check if file exist
if [ ! -e ${FILE_PATH ]; then
echo "File not exist!"
else
echo "File exist!"
fi
if [ -f $FILE_PATH ]; then
echo 'File exists!'
fi
# Check if directory exist
@u5-03
u5-03 / gist:b223f5a6413d5be6eea473d948f5f3df
Created September 19, 2021 01:44
IDETextKeyBindingSet.plist
<?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">
<dict>
<key>Cancellation</key>
<dict>
<key>Cancel</key>
<string>cancelOperation:</string>
</dict>
<key>Case Changes</key>
//
// Created on 2020/05/16
// Copyright © 2020年, yugo.sugiyama. All rights reserved.
//
import Foundation
import RxSwift
import RxCocoa
import StoreKit
import SwiftyStoreKit