LoginSignup
2
2

More than 5 years have passed since last update.

Vuforia 4.0 で、カメラ初期化に失敗する場合はCocoaPodsを外す

Posted at

Vuforia 4.0 で、カメラ初期化に失敗する場合はCocoaPodsを外す

2月にリリースになった、64bit対応の Vuforia4.0。
旧版からクラス変数に違いがあって、微妙に修正しないと古いコードでは動かないと思います。

新版のサンプルソースを見ながら修正を行いましたが、とあるところで大ハマり。

それは、カメラを初期化して起動する部分

QCAR::CameraDevice::getInstance().init

にて、なぜか以下のようなエラーでこけました。

'*** -[AVCaptureVideoDataOutput setVideoSettings:] - b32a (1647522401) is not a supported pixel format type.  See AVCaptureOutput.h for a list of supported formats.  Available pixel format types on this platform are (420v, 420f, BGRA).'

AVCaptureOutput.hで定義されているプロパティに、b32aというピクセルフォーマットはないよというものらしいです。

結論

試行錯誤した結果、CocoaPods を外すと解決しました。
このプロジェクトでは不要だったのでよかったですが。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2