xcode 版本为: 先到官网下载:iOSOpenDev http://iosopendev.com/download/ 其它工具: 安装MacPorts软件 https://www.macports.org/install.php 安装DPKG文件 (可能要重启 shell 不然报没有 port 命令)
sudo port -f install dpkg
安装those工具
export THEOS=/opt/theos
git clone -b stableversion https://github.com/haorenqq/theos/ $THEOS
下载文件 https://www.ianisme.com/download/201605/iosopendev%E4%B8%93%E7%94%A8Specifications.zip 创建相应文件
/应用程序/Xcode/Content/Developer/Platforms/IphoneOS.platform/Developer/Library/Xcode/
里面应该有8个文件,
iPhoneOS开头的四个文件放到/应用程序/Xcode/Content/Developer/Platforms/IphoneOS.platform/Developer/Library/Xcode/Specifications文件夹下(如果没有,请自己创建一个),
iPhone Simulator 开头的另外四个文件放入/应用程序/Xcode/Content/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications文件夹下(如果没有,请同样创建一个)。
/应用程序/Xcode/Content/Developer/Platforms/iPhoneSimulator.platform/Developer/
另外在/应用程序/Xcode/Content/Developer/Platforms/iPhoneSimulator.platform/Developer/文件夹下创建usr文件夹,usr文件夹下再创建一个名为bin的文件夹 进入 opt 目录 输入命令
sudo ./iod-setup base
sudo ./iod-setup sdk -sdk iphoneos
如: 参考: https://www.ianisme.com/ios/2319.html