运行cordova run ios时出现“服务无效”
Posted
技术标签:
【中文标题】运行cordova run ios时出现“服务无效”【英文标题】:Getting "The service is invalid" when running cordova run ios 【发布时间】:2020-02-11 14:31:02 【问题描述】:我在使用 cordova run ios
的 iphone 6 上运行 cordova 应用程序时遇到问题。
我收到了这个错误
[ 49%] Copying /Users/matias/sunpower/energylink-components-library/apps/energylink-connect2/platforms/ios/build/device/EnergylinkConnect2.app/AppIcon76x76~ipad.png to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
[ 75%] CreatingContainer
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[ 95%] GeneratingApplicationMap
[100%] Installed package /Users/matias/sunpower/energylink-components-library/apps/energylink-connect2/platforms/ios/build/device/EnergylinkConnect2.app
------ Debug phase ------
Starting debug of 17ad5aa2e5c26f2f36e3a8ac1532bf0c1e40048e (N71AP, iPhone 6s, iphoneos, arm64) a.k.a. 'iPhone de Matias' connected through USB...
[ 0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted
2020-02-11 11:21:15.310 ios-deploy[51274:22344371] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
ios-deploy: Command failed with exit code 253
操作系统:MacOS Mojave
设备:iPhone 6s
iOS:13.3.1
xcode: 11.0 (11A420a)
【问题讨论】:
【参考方案1】:在将 Xcode 升级到最新版本 (11.3.1) 并从 xcode 构建应用程序后,似乎可以正常工作。
之后我什至可以从命令行运行它
【讨论】:
以上是关于运行cordova run ios时出现“服务无效”的主要内容,如果未能解决你的问题,请参考以下文章
在 iOS Cordova 应用程序中渲染纹理时出现安全错误
在 Xcode 上运行 Cordova 2.6.0 项目时出现白屏
`node cordova/lib/copy-www-build-step.js`在构建阶段时出现cordova构建错误