在我的 Podfile 中添加此行后:
pod 'PiwikTracker', :git => 'https://github.com/manuroe/matomo-sdk-ios.git', :branch => 'feature/CustomVariables'
发生以下错误:
[!] /bin/bash -c
set -e
echo `pwd`
sed -i '' 's/include <\(cmark.*\)>/include "\1"/' src/cmark.h
mkdir -p build; cd build && cmake -G Xcode ..
/Users/mac1/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-ec027
/bin/bash: line 4: cmake: command not found
有人可以帮我解决这个问题吗?
安装Brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
使用Brew安装
cmake
brew install cmake
要使用上述库,您可以尝试如下所述:
您想要将类似于以下内容的 pod 'PiwikTracker', '~> 4.4' 添加到您的 Podfile 中:
target 'MyApp' do
pod 'PiwikTracker', '~> 4.4'
end
然后在终端内或从 CocoaPods.app 运行 pod install。
或者要对其进行测试运行,请运行命令:
pod try PiwikTracker
有关更多详细信息,请尝试此链接:PiwikTracker
希望这会有所帮助!
不要忘记通过以下方式链接它
brew link cmake