xcode 通过 VMWare 进行 iOS 设备测试

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9066784/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:09:23  来源:igfitidea点击:

iOS device testing via VMWare

iphoneiosxcodevmware

提问by Dany Joumaa

I am trying to upload my iPhone app to my iPhone. I'm running Xcode and OS X on a VMWare virtual machine. Even though iTunes recognizes the iPhone when it's plugged in (implying that the USB connection between the virtual machine and the iPhone is working fine), no matter what I do, Xcode does not recognize the device.

我正在尝试将我的 iPhone 应用程序上传到我的 iPhone。我在 VMWare 虚拟机上运行 Xcode 和 OS X。即使 iTunes 在插入时识别出 iPhone(这意味着虚拟机和 iPhone 之间的 USB 连接工作正常),但无论我做什么,Xcode 都无法识别该设备。

The error is:

错误是:

Xcode cannot run using the selected device.No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.

Xcode 无法使用所选设备运行。没有配备兼容 iOS 版本的已配置 iOS 设备可用。将 iOS 设备与最新版本的 iOS 连接以运行您的应用程序或选择 iOS 模拟器作为目标。

Ideas?

想法?

采纳答案by CodaFi

'No provisioned devices' implies that you did not add your device to the provisioning portal, or you dont have the proper provisions and certificates installed.

“没有配置的设备”意味着您没有将您的设备添加到配置门户,或者您没有安装正确的配置和证书。

Xcode and iOS are VERY strict about code signing, and so apps will not install on any device (besides the simulator) without the proper certificates and provisioning profiles. They're very easy to make, and only require an apple developer account available for $100.

Xcode 和 iOS 对代码签名非常严格,因此如果没有适当的证书和配置文件,应用程序将不会安装在任何设备上(模拟器除外)。它们非常容易制作,只需要一个 100 美元的苹果开发者帐户。

From the device side:

从设备端:

Plug In your device, enter the organizer, then select your device and click the plus button in the organizer. It will ask for login credentials, then if all goes well, will add your device to your developer portal and possibly generate a wildcard provision.

插入您的设备,进入管理器,然后选择您的设备并单击管理器中的加号按钮。它将要求登录凭据,然后如果一切顺利,会将您的设备添加到您的开发人员门户并可能生成通配符条款。

From the computer side:

从电脑端:

Enter the apple developer member center. Click 'iOS provisioning portal' and apply for and download the proper certifications. Then drag those certifications onto the xcode application icon and it will install them in your keychain and move them to the proper place within the organizer.

进入苹果开发者会员中心。单击“iOS 配置门户”并申请并下载适当的认证。然后将这些认证拖到 xcode 应用程序图标上,它会将它们安装在您的钥匙串中并将它们移动到管理器中的适当位置。