MacBook用命令行安装ipa包

往iPhone上面安装Xcode打出来的ipa包的方法很多,下面介绍一种用命令行安装的方法。(更多idevice系列命令:https://www.cnblogs.com/mgzc-1508873480/p/12901198.html

 

1、首先,把手机用USB线连接到电脑上

2、接着,打开命令行工具,运行一下命令

ideviceinstaller -i [安装包文件路径]

3、然后,执行这条命令,正常情况下是这样的:

 

 

Question_1:

如果提示没有ideviceinstaller这个命令,那么就需要先安装这个命令了。

-bash: ideviceinstaller: command not found

执行以下命令来安装ideviceinstaller工具

brew install ideviceinstaller

 正常情况稍等一会就安装好了。

 

Question_2:

如果又提示brew命令找不到的话,那么就需要安装mac包管理工具(brew)

执行以下命令来安装brew(homebrew)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

稍等一会,正常就安装好了。提示:这里可能需要挂vpn。

如果想详细了解brew的话,请看这里
https://github.com/Homebrew/brew

 

Question_3:

安装好ideviceinstaller后,使用命令行安装ipa包时如果提示:

Could not connect to lockdownd. Exiting.

(通常第一次安装都会有这个提示)

这个可能是ideviceinstaller这个工具出现了问题,用以下方法可以解决:

brew uninstall ideviceinstaller

brew uninstall libimobiledevice

brew install --HEAD libimobiledevice

brew link --overwrite libimobiledevice

brew install ideviceinstaller

brew link --overwrite ideviceinstaller
posted @ 2020-05-16 15:34  #天羽Owl  阅读(1888)  评论(0编辑  收藏  举报