diff --git a/platforms/ios/build_framework.py b/platforms/ios/build_framework.py index 2a8dc7e30e..34500d7f14 100644 --- a/platforms/ios/build_framework.py +++ b/platforms/ios/build_framework.py @@ -126,7 +126,7 @@ class Builder: toolchain = self.getToolchain(arch, target) cmakecmd = self.getCMakeArgs(arch, target) + \ (["-DCMAKE_TOOLCHAIN_FILE=%s" % toolchain] if toolchain is not None else []) - if arch.startswith("armv"): + if arch.startswith("armv") or arch.startswith("arm64"): cmakecmd.append("-DENABLE_NEON=ON") cmakecmd.append(self.opencv) cmakecmd.extend(cmakeargs)