Skip to content

Instantly share code, notes, and snippets.

@satoshin2071
satoshin2071 / new_gist_file.md
Created June 13, 2016 07:36
TestFlightへのアップロード手順

TestFlightへのアップロード手順

前提条件

  • iTunes Connectへサインイン可
  • テスト対象アプリとアカウントの紐付けが完了している
  • Distribution用の証明書がキーチェーンのログイン項目に登録されていること
  • Distribution用のプロビジョニングが追加されていること
@satoshin2071
satoshin2071 / gist:7cc2a8e2135d02f36649
Last active June 6, 2018 14:46
Gitチュートリアル 変更を戻す checkout編

Gitチュートリアル 変更を戻す checkout編

##概要

  • git checkout について

##git checkout

ファイル/コミット/ブランチのチェックアウトを行う、

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var config = {
APIKEY: 'key',
REGION: 'us-west-2',
TYPE: 'API_KEY',
ENDPOINT: 'endpoint',
};
exports.default = config;
@satoshin2071
satoshin2071 / SBCLogUtil.m
Last active August 30, 2017 01:57
[ObjcC] NSLogをコンソールとファイル両方に出力する
#import "SBCLogUtil.h"
#include <pthread.h>
@implementation SBCLogUtil
void SBCLog(NSString *format, ...)
{
// ファイル名用formatter
NSDateFormatter *fileNameFormatter = [[NSDateFormatter alloc]init];

良いまとめ

##概要

  • 現行は IPv4 と IPv6 の両方に対応しているが、今後 IPv6 のみのサポートになるらしい
  • そのための、サーバ/アプリ での対応内容
@satoshin2071
satoshin2071 / gist:41464a11c3ccec10d0499011944c6643
Created September 12, 2016 10:20
get iOS app version with comandline
$ cd path/to/ios_project
$ xcrun agvtool mvers -terse1
1.4.0
or
$ /usr/bin/agvtool mvers -terse1
1.4.0

Swift3


DispatchQueue.main.async {
}

DispatchQueue.global(attributes: [.qosBackground]).async {
}
@satoshin2071
satoshin2071 / ipa作成.md
Last active June 10, 2016 01:27
ipa作成.md

automatorで実行する

xcrun -sdk iphoneos PackageApplication "$1/Products/Applications/Storie.app" -o "$1.ipa"

以下の方法だと、サードパーティのフレームワークを入れると失敗する。

xcodebuild -exportArchive -archivePath (入力 xcarchive) -exportProvisioningProfile StorieDev_iOS_Development -exportPath (ipa 出力ファイルパス)

@satoshin2071
satoshin2071 / gist:a25ddced51f4fda462df4b4b79cdb0bc
Created June 9, 2016 01:43
2016 6/9 iOSのAppストアについて
http://www.itmedia.co.jp/pcuser/articles/1606/09/news057.html
・審査期間を短縮した。(プロセス自体を改善したらしい)
・Appストアの表示に関して広告をやる
・月額課金の長期ユーザの分はAppleの取り分を減らす