Skip to content

Issue installing using coccapods #13

@amjadz

Description

@amjadz

This is the error I am getting when I install with Coccapods

`[!] /bin/bash -c
set -e
git submodule init
git submodule update
/usr/bin/python opencv/platforms/ios/build_framework.py ios --dynamic
cp -a ./ios/opencv2.framework ./opencv2.framework

Submodule path 'opencv': checked out '1522722fab8016638b2039257f1665e402285768'
Submodule 'opencv' (https://github.com/opencv/opencv.git) registered for path 'opencv'
Cloning into '/Users/zubairamjad/Library/Caches/CocoaPods/Pods/Release/OpenCV-Dynamic/4.0.0-1d0bc/opencv'...
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

ERROR: Command '['xcodebuild', '-version']' returned non-zero exit status 1

Traceback (most recent call last):
File "opencv/platforms/ios/build_framework.py", line 113, in build
self._build(outdir)
File "opencv/platforms/ios/build_framework.py", line 81, in _build
xcode_ver = getXCodeMajor()
File "opencv/platforms/ios/build_framework.py", line 41, in getXCodeMajor
ret = check_output(["xcodebuild", "-version"])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['xcodebuild', '-version']' returned non-zero exit status 1`

Like i have no idea what is going on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions