question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS permissions capability not working with native Xcode

See original GitHub issue

The problem

capability.permissions={“blah”:{“location-always”: “yes”}} was working through Xcode in appium 1.17.0 and 1.17.1. Now with 1.18.0 I get the old error message about applesimutils

[debug] [W3C] Encountered internal error running command: Error: applesimutils binary has not been found in your PATH. Please install it ('brew tap wix/brew && brew install wix/brew/applesimutils') to be able to change application permissions
[debug] [W3C]     at execWix (/usr/local/lib/node_modules/appium/node_modules/appium-ios-simulator/lib/permissions.js:41:11)

Environment

  • Appium version (or git revision) that exhibits the issue: 1.18.0
  • Last Appium version that did not exhibit the issue (if applicable): 1.17.1
  • Desktop OS/version used to run Appium: Mac OSX 10.15.5
  • Node.js version (unless using Appium.app|exe): v12.14.0
  • Npm or Yarn package manager: Npm v6.13.4
  • Mobile platform/version under test: iOS 13.5
  • Real device or emulator/simulator: simulator
  • Appium CLI or Appium.app|exe: CLI

Code To Reproduce Issue [ Good To Have ]

Start any session with anything like

capability.permissions={"blah":{"location-always": "yes"}}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Jul 22, 2020

The error is expected. We’ve recently switched this logic to use native simctl commands, but it turned out these have bugs, so we had to revert back and use WIX, which is stable: https://github.com/appium/appium/issues/14355

1reaction
mykola-mokhnachcommented, Jul 21, 2020

could you also attach the log from the previous version where it worked?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding capabilities to your app - Apple Developer
To use some app services, you must provision your app, adding a capability with Xcode's project editor that configures the app service correctly...
Read more >
iOS 15 ATT permission not showing up · Issue #648 - GitHub
Bug summary ATT permission prompt not showing on iOS 15 Before it was working fine for iOS 14.5 and I didn't change anything....
Read more >
Xcode iOS app not prompting for network access in release ...
I am building a react-native iOS app ...
Read more >
iOS Permissions and Discovery | Cast - Google Developers
Apps built with versions of the Cast SDK using v4.4.8 or earlier will continue to work as long as they are built with...
Read more >
Troubleshooting iOS - OneSignal Documentation
1. Toggle WiFi on iOS Device · 2. Xcode Capabilities · 3. Other Push Dependencies · 4. Cocoapods · 5. Logs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found