一.安裝MonkeyDev
1、安裝theos
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
2廊谓、配置環(huán)境變量
export PATH=$PATH:$/opt/theos/bin
3崔泵、安裝MonkeyDev
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"
1)、報錯1
File /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
解決方案
//建立軟鏈接
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/Resources /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications
2)址晕、報錯2,安裝成功顿锰,但是退出xcode重新打開xcode閃退問題解決方案
刪除文件中
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec連續(xù)兩個<dict/><dict/>谨垃,
保存文件即可
3)启搂、報錯3,library not found for -libstdc++
網(wǎng)上搜索下載libstdc++文件刘陶,放入xcode路徑lib文件夾下
4)胳赌、報錯4,安裝報錯executable not found
解決方案:需要每次運行前匙隔,先clean
二. 使用
1.打開Xcode疑苫,新建工程