Flutter 在IOS中的颤振端到端测试中允许权限对话框?

Flutter 在IOS中的颤振端到端测试中允许权限对话框?,flutter,testing,Flutter,Testing,我正在使用IOS进行颤振测试。出现“权限”对话框时,如何授予内部测试权限?在这里,我找到了另一个解决方案: 对于安德里奥德: adb shell pm grant <appId> android.permission.ACCESS_COARSE_LOCATION flutter drive \ --driver=integration_test/driver.dart \ --target=integration_test/location_test.dart \ -d

我正在使用IOS进行颤振测试。出现“权限”对话框时,如何授予内部测试权限?

在这里,我找到了另一个解决方案:

对于安德里奥德:

adb shell pm grant <appId> android.permission.ACCESS_COARSE_LOCATION

flutter drive \
  --driver=integration_test/driver.dart \
  --target=integration_test/location_test.dart \
  -d <deviceId>
adb shell pm授予android.permission.ACCESS\u位置
颤振驱动\
--驱动程序=集成测试/driver.dart\
--目标=集成测试/位置测试.dart\
-d
对于IOS:

brew tap wix/brew
brew install applesimutils
applesimutils --byId <deviceId> --bundle <appId> --setPermissions location=always

flutter drive \
 --driver=integration_test/driver.dart \
 --target=integration_test/location_test.dart \
 -d <deviceId>
brew点击wix/brew
brew安装AppleSmultils
AppleSmultils--byId--bundle--setPermissions location=always
颤振驱动\
--驱动程序=集成测试/driver.dart\
--目标=集成测试/位置测试.dart\
-d

我想你可以用
xcrunsimctl
来完成
xcrun simctl privacy grant all
将授予所有权限。然后就可以开始运行测试了。。要了解它授予的所有权限,请执行
xcrun simctl privacy