Skip to content

Instantly share code, notes, and snippets.

"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 / 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 / new_gist_file.md
Created June 13, 2016 07:36
TestFlightへのアップロード手順

TestFlightへのアップロード手順

前提条件

  • iTunes Connectへサインイン可
  • テスト対象アプリとアカウントの紐付けが完了している
  • Distribution用の証明書がキーチェーンのログイン項目に登録されていること
  • Distribution用のプロビジョニングが追加されていること
@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の取り分を減らす
@satoshin2071
satoshin2071 / new_gist_file.md
Last active May 26, 2016 03:01
Charlesでレスポンスを書き換える(Breakpoints, Map Local)

Charlesでレスポンスを書き換える(Breakpoints, Map Local)

rewriteばかり使っていたが他の方法もあったのでメモ

Breakpoints

対象のURLを右クリック -> BreakPointsを設定

@satoshin2071
satoshin2071 / memo.md
Last active May 30, 2016 09:24
CommonCryptoをSwiftで利用する

素直にIDZSwiftCommonCryptoを使おう

## 必要なこと

1. Security.frameworkを追加 2. bridgin-Header.hに#import <CommonCrypto/CommonCryptor.h> 追加

## ProjectName-Bridging-Header.hの設定方法

ファイルの追加 名前は ProjectName-Bridging-Header.h

@satoshin2071
satoshin2071 / PatternMatchingPart4.swift
Created May 24, 2016 08:37
Swift Pattern Matching, Part 4: if case, guard case, for case. Shakyo practice.
/*
From http://alisoftware.github.io/swift/pattern-matching/2016/05/16/pattern-matching-4/
Shakyo practice
Pattern Matching, Part 4: if case, guard case, for case
*/
import XCPlayground