3.1.0からiOSに対応しているが実機ではビルドできない

OpenCV3.1.0からopencv2.frameworkを配布している。

しかし、arm64でNEONが有効化されていないためiOSの実機 (arm64) 向けにビルドすると、下記のエラーでビルドできない。

Undefined symbols for architecture arm64:
  "_png_init_filter_functions_neon", referenced from:
      _png_read_filter_row in opencv2(pngrutil.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

3.2.0で修正されている

上記エラーは Enable NEON for the arm64 architecture too で修正されており、3.2.0以降ではiOSの実機 (arm64) 向けにビルドできる。

-if arch.startswith("armv"):
+if arch.startswith("armv") or arch.startswith("arm64"):
     cmakecmd.append("-DENABLE_NEON=ON")