使用vscode开发react-native应用,想用真机调试,所以按照vscode的说明使用"brew install ideviceinstaller"安装了ideviceinstaller,但是发生了如下报错:
[Error] "Could not debug. Error while executing command 'ideviceinstaller -i /Users/leon/Desktop/AwesomApp/ios/build/Build/Products/Debug-iphoneos/AwesomApp.app': Error while executing command 'ideviceinstaller -i /Users/leon/Desktop/AwesomApp/ios/build/Build/Products/Debug-iphoneos/AwesomApp.app'"
然后,我在控制台直接运行如下命令:
ideviceinstaller -i /Users/leon/Desktop/AwesomApp/ios/build/Build/Products/Debug-iphoneos/AwesomApp.app
得到如下报错:
Uploading AwesomApp.app package contents... DONE.
Installing '(null)'
- CreatingStagingDirectory (5%)
- ExtractingPackage (15%)
- InspectingPackage (20%)
- TakingInstallLock (20%)
- PreflightingApplication (30%)
- InstallingEmbeddedProfile (30%)
- VerifyingApplication (40%)
- CreatingContainer (50%)
- InstallingApplication (60%)
- PostflightingApplication (70%)
- SandboxingApplication (80%)
- GeneratingApplicationMap (90%)
Segmentation fault: 11
我google了下,网上也有遇到同样的问题,通过重新安装最新的homebrew 然后重新安装ideviceinstaller可以解决,但是我试了,没用,有没有大神指导怎么解决的。
Perhaps, the iOS OS has upgraded to 11, and idevice hasn't been able to keep it up. And your dev certificate is already compatible.
Maybe upgrade idevice or homebrew repository can help, but you still needs to wait.
Personal thought , just fyi.