测试的时候,如果手工安装IPA文件到手机

前提条件:
安装 Xcode(App Store 下载)
安装 Homebrew(如果尚未安装)
安装 libimobiledevice 和 ideviceinstaller

1
2
3
安装依赖工具:
brew install libimobiledevice
brew install ideviceinstaller

信任设备:

1
2
3
用 USB 连接 iOS 设备。
在 Xcode → Window → Devices and Simulators 中查看设备是否识别。
如果提示“信任此电脑”,在 iOS 设备上点击“信任”。

安装 IPA:

1
ideviceinstaller -i your_app.ipa

如果提示权限错误,可能需要先启用开发者模式或重新配对:

1
idevicepair pair