Assuming that your build directory is on the same level that opencv source,From the build directory run ../opencv/ios/configure-device_xcode.shor ../opencv/ios/configure-simulator_xcode.shThen from the same folder invokexcodebuild -sdk iphoneos -configuration Release -target ALL_BUILDxcodebuild -sdk iphoneos -configuration Release -target install installorxcodebuild -sdk iphonesimulator -configuration Release -target ALL_BUILDxcodebuild -sdk iphonesimulator -configuration Release -target install install