Skip to content

Instantly share code, notes, and snippets.

View tokorom's full-sized avatar

tokorom tokorom

View GitHub Profile
@tokorom
tokorom / hatena_format.jax
Created May 29, 2011 14:22 — forked from hail2u/hatena_format.jax
はてな記法のVimヘルプ
*hatena_format.jax* はてな記法
==============================================================================
入力支援記法 *hatena_format_input_support*
------------------------------------------------------------------------------
見出し記法 *hatena_format_heading*
>
@tokorom
tokorom / AppDelegate.h
Created November 28, 2011 00:39
ChameleonUIKitDemo
#import <Cocoa/Cocoa.h>
@class ChameleonAppDelegate;
@interface AppDelegate : NSObject <NSApplicationDelegate>
@property (retain) IBOutlet UIKitView* chameleonView;
@property (retain) ChameleonAppDelegate* chameleonApp;
@end

実行環境

  • Mac OSX Ver 10.8.2
  • Vim version 7.6.633
  • macvim-kaoriya
  • Terminal.app + tmux

.vim 以下の構成

  • .gitignore
@tokorom
tokorom / Run Script
Created April 16, 2013 05:16
AdHocビルドのときだけバージョン文字列に最終コミットの時間を追記するスクリプト。 DebugビルドやDistributionビルドのときは発動しない。 Configuration名のはじめに `ADHOC` があるかどうかで発動が決まるので、`AdHoc`といったConfiguration名にしておく必要がある。
configuration=`echo ${CONFIGURATION} | tr a-z A-Z`
if expr ${configuration} : "^ADHOC" > /dev/null; then
# AdHoc
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${PROJECT_DIR}/${PROJECT_NAME}/App-Info.plist")
date=`git log -1 --format='%ci'`
buildNumber="${buildNumber} (${date})"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${PROJECT_NAME}/App-Info.plist"
@tokorom
tokorom / .gitignore
Created April 22, 2013 08:16
Debugビルドのときもファイル経由でアプリにコミット日付を取り込めるようにしたスクリプト。
last_commit_date.txt
@tokorom
tokorom / gist:5683559
Created May 31, 2013 08:11
CUIでXcodeのテスト(SenTestingKit)を実行する
xcodebuild -target Tests -configuration Debug -sdk iphonesimulator TEST_AFTER_BUILD=YES TEST_HOST=
@tokorom
tokorom / gist:5795529
Created June 17, 2013 08:48
xctool and lcov
xctool test GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
lcov -c -d ~/Library/Developer/Xcode/DerivedData/sample-app-xxxxxxx/Build/Intermediates/pantry-ios-client.build/Debug-iphonesimulator/Tests.build -o ~/Desktop/report.info
/usr/local/Cellar/lcov/1.10/bin/genhtml -o ~/Desktop/report report.info
@tokorom
tokorom / .gitignore
Last active May 2, 2020 13:43
!*.xcodeproj/xcshareddata を入れないとSchemeがShareされない
# hidden/temp files
.DS_Store
*.swp
*~.nib
*.bk
temp.plist
# Build dir
build/
@tokorom
tokorom / gist:5945524
Created July 8, 2013 00:42
Makefile for iOS
PROJECT = XXX.xcodeproj
TEST_TARGET = Tests
clean:
xcodebuild \
-project $(PROJECT) \
clean
test:
xcodebuild \
@tokorom
tokorom / gist:6725071
Created September 27, 2013 07:05
AppStore相当のバイナリ確認手順
1. In the Xcode Organizer, instead of Submit to the iOS App Store, do Save for Enterprise or Ad-Hoc Deployment. That will create a local copy of the .ipa file that would be submitted to the App Store.
2. When asked to choose an identity to sign with, select the same distribution identity you use when submitting to the App Store.
3. When asked to save the package, uncheck Save for Enterprise Distribution, then save the .ipa file.
4. Find the .ipa file and change its extension to .zip.
5. Expand the .zip file. That will produce a Payload folder containing your app bundle.