The Pragmatic Ball boy

iOSを中心にやってる万年球拾いの老害エンジニアメモ

2015-02-01から1ヶ月間の記事一覧

AndroidStudioでプロジェクトを開こうとするとCause: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling

AndroidStudioでbuild.gradleを指定してプロジェクトを開こうとすると Cause: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling というダイアログが表示されてプロジェクトが開かない・・・ という状態になりました。 gradle-wrapper.properties…

Android NDKでerror: 'to_string' is not a member of 'std'

androidでC++のstd::to_stringを使うと以下のようなビルドエラーがでました。(環境:Android NDK r10d) error: 'to_string' is not a member of 'std' もちろんC++11の設定自体はできていて、他のstd::functionなどは問題なく使えます。 LOCAL_CFLAGS := -…

Swiftで引数リスト(CVaListPointer)の渡し方

SwiftからObjective-Cのメソッドを呼ぶ際に、引数が引数リスト(va_list)の場合、Swiftでは型が以下のようなCVaListPointerになります。 class func raise(_ name: String, format format: String, arguments argList: CVaListPointer) 結論からいきますと…

xcodebuildでdevice向けのビルドするときのdestinationの指定方法

以前xcodebuildのパラメータの指定方法についてこちらに書きました。 Travis CIでObjective-C/Swiftのテストを実行する - Pragmatic ball boy テストするときはシミュレータを指定するのでこれで問題ないのですが、 実機向けのstaticライブラリを用意したり…