第一:
ls
cd到项目路径下
ls
执行xcode-select install安装软件命令
这个时候报错
xcode-select: error: invalid argument 'install'
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --helpprint this help message and exit
-p, --print-pathprint the path of the active developer directory
-s , --switch set the path for the active developer directory
--installopen a dialog for installation of the command line developer tools
-v, --versionprint the xcode-select version
-r, --resetreset to the default command line tools path
错误原因可能是我是复制的命令而不是敲打的命令 有可能多复制了什么,少了两个小横线 - -;
退出桌面安装
执行
安装命令xcode-select —install安装命令
安装的一些步骤,最后提示安装成功。
测试是否安装成功, 在次命令xcode-select --install
提示:xcode-select: error: command line tools are already installed, use "Software Update" to install updates
说明安装成功了。
再次测试是否成功:
sudo xcodebuild -license
一直按空格
然后到最后遇到 “ey**” 这个单词 打一下这个单词 然后在回车 ,提示成功。
python官方.py 用到
opencv2.framework导入项目中,在导入如图想framework,8个;
注意
注意
添加私有设置的那个图片中的如下图
在添加的时候 有一个view controller-based******* N0; 这个是按照 openCV的数中 12 也的提示加的 ,为了以后不出问题 提前加上。
The status bar and fullscreen settings are stored in the app'sInfo.plistle. SelectCoolPig|CoolPig|Info.plistin the navigator pane. Now, in the editor area, note that theUIRequiresFullscreenandStatus bar is initially hiddenproperties both have theYESvalue. However, we still need to add another property to ensure that the status bar will not appear. Hover over the last item in the list, and click on the+button to insert a new property. EnterView controller-based status bar appearanceas the property's key and set its value toNO, as shown in the following screenshot:
只要简单的设置,现在videoCamera已经就绪了,只需要以下命令:
[self.videoCamera start];
[self.videoCamera stop];
进行控制
c++ 三个错误 需要更改objective-c++