dyld: library not loaded: @rpath/libswiftavfoundation.dylib 解決法

環境:Xcode8.3.3 + Swift3 内容:dyld: library not loaded: @rpath/libswiftavfoundation.dylib 〜 で実機テストが出来ない。 対処:Product -> Clean をしてみる。 参考:stackoverflow.com

Swift2 stillImageStabilizationSupported(手ぶれ補正対応)の確認の仕方

カメラアプリを作る時、手ぶれ補正対応をする為にstillImageStabilizationSupportedがTrueになる事を確認する必要があるのですが、対応機種(iPhone6sPlus)でもTrueにならなかったので調べた事をメモします。 NGパターン // 手ぶれ補正 if myImageOutput.stil…

Swift2 Exif Declaration Keys を調べてみた

カメラアプリを作成する時にmetadataを設定しただけでは、標準カメラと比べるとExif情報が足りない。そこで撮影後に取得出来るExifの初期設定項目を調べてみた。撮影はフラッシュなし。 CGImageProperties Reference Constants - EXIF Dictionary Keys より …

Swift2.1 Camera Application Demo

Swift2.1でAVFoundationを使って最高画質で撮影できるサンプルを作ってみました。 ググれば沢山出てくるのですがSwiftのバージョンが古いものばかりで苦労したのでメモ替わりに記事にしておきます。 import UIKit import AVFoundation class ViewController:…

Scala + Play2.4 anormの設定

Play2.3まではbuild.sbtでAnormを設定するには下記のように記述してましたが libraryDependencies ++= Seq( jdbc, anorm ) Play2.4からは下記のように記述するようになった。 libraryDependencies ++= Seq( jdbc, "com.typesafe.play" %% "anorm" % "2.4.0" )

Could not find a suitable constructor in 〜 エラーの対処方法

環境:ScalaIDE(eclipse4.2) + Scala + Play2.4 下記エラーが出た時の対処方法 1) Could not find a suitable constructor in controllers.UserController. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argu…

OSX EI Capitan + Node.js

Scala + Play2.4 の勉強しているのですがターミナルに下記の警告が出てしまう。 Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be o…