所以我有一个免费的开发者帐户,我不确定这是否有什么区别。但现在,每次我在 iPhone 上的设备管理设置中为 WebDriverAgentRunner-Runner 执行 Appium 时,我都必须相信自己是一名开发人员。有没有办法解决?也许这就是免费和付费开发者会员资格之间的区别?
谢谢你。
您能分享一下您每次收到的弹窗截图吗? 一旦你从 XCode 选择你的设备,使用有效的证书对其进行签名并在你的 iPhone 上构建应该会帮助你。请按照以下步骤操作
如果这没有解决您的问题,请安装具有您正在使用的相同证书的其他应用程序。在测试目标应用程序之前,请勿将其从手机中删除。即使您结束会话,它也会将您的证书保留在手机中
如果您使用免费的开发者帐户,请尝试遵循下面给出的完整手动配置步骤。
将您的 Apple ID 添加到 XCode 并下载证书
找到WebDriverAgent项目, 这里我给出了 Appium CLI 和 Appium Desktop 的路径,您可以使用任一路径来配置 wda。 在终端中,执行命令:
$ where appium or which Appium
/path/where/installed/bin/appium
Eg: WebDriverAgent project path for
Appium CLI:
/path/where/installed/lib/node_modules/appium/node_modules/appium-webdriveragent
Appium Desktop:
/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent
导航到终端中的 WebDriverAgent 项目路径并运行以下命令来设置项目
mkdir -p Resources/WebDriverAgent.bundle
./Scripts/bootstrap.sh -d
在 Xcode 中打开 WebDriverAgent.xcodeproj。对于 WebDriverAgentLib 和 WebDriverAgentRunner 目标,请在“常规”选项卡中选择“自动管理签名”,然后选择您的开发团队。这也应该自动选择签名证书。
进入“Build Settings”选项卡,将“Product Bundle Identifier”从 com.facebook.WebDriverAgentRunner 更改为 Xcode 会接受的东西(非常独特的东西!)
构建项目的命令:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<udid>' test
以上命令应在设备的给定 UDID 上安装 WDA。现在手动去设置并信任WDA
现在尝试使用allowProvisioningUpdates标志再次构建项目:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<udid>' test -allowProvisioningUpdates
使用指向 CLI 服务器的 Appium Inspector 与应用程序创建会话