I removed the bundle identifier from the options argument like below.
options = Mac2Options()
options.system_port = 10101
options.no_reset = True
driver = appium_webdriver.Remote(f"http://{APPIUM_HOST}:{APPIUM_PORT}", options=options)
#1.10.1 throws error here and does not launch app
driver.execute_script("macos: launchApp", {"bundleId": BUNDLE_ID, "path": '/path/to/first/app'})
However, I realised the latest version(1.10.1) will throw an error shown below when I call launchApp
, 1.10.0 works fine without the bundle id in options:
[WebDriverAgentMac] [xcodebuild] XCTExpectFailure: matcher accepted Assertion Failure: Failed to launch com.company.companyApp:
You do not have permission to run the application “companyApp”. You don’t have permission.
To view or change permissions, select the item in the Finder and choose File > Get Info. (Underlying Error: The operation couldn’t be completed. Operation not permitted)
[WebDriverAgentMac] [xcodebuild] 2024-01-16 13:18:06.661133+0800 WebDriverAgentRunner-Runner[20975:202037] Issue type: 0
[WebDriverAgentMac] 2024-01-16 13:18:06.661190+0800 WebDriverAgentRunner-Runner[20975:202037]
Enqueue Failure: Failed to launch com.company.companyApp: You do not have permission to run the application “companyApp”. You don’t have permission.
To view or change permissions, select the item in the Finder and choose File > Get Info.
(Underlying Error: The operation couldn’t be completed. Operation not permitted) ((null)) (null) 0 0