tag:help.appveyor.com,2012-11-13:/discussions/questions/48525-appveyor-user-password-is-required-on-macos-imageAppVeyor: Discussion 2020-06-09T01:40:39Ztag:help.appveyor.com,2012-11-13:Comment/483698902020-05-29T17:01:58Z2020-05-29T17:01:58Zappveyor user password is required on macos image<div><p>Could you please try the following commands:</p>
<pre>
<code>- defaults write com.apple.Safari IncludeDevelopMenu YES
- defaults write com.apple.Safari AllowRemoteAutomation 1
- sudo safaridriver --enable
- safaridriver -p 0 &</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483698902020-05-30T01:17:28Z2020-05-30T01:17:28Zappveyor user password is required on macos image<div><p>Thank you for your quick response, I tried but I couldn't resolve the issue.</p>
<pre>
<code>- defaults write com.apple.Safari IncludeDevelopMenu YES
- defaults write com.apple.Safari AllowRemoteAutomation 1</code>
</pre>
<p>As far as I have confirmed on my local, Safari's preference is not stored to <code>~/Library/Preferences/com.apple.Safari.plist</code> anymore on Catalina. Now it's moved to <code>~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist</code>, which is not editable because guarded by SIP. The above commands update <code>~/Library/Preferences/com.apple.Safari.plist</code>, thus no impact on Safari.</p>
<pre>
<code>- sudo safaridriver --enable</code>
</pre>
<p>Strangely, on my local this command works well and actually update Safari settings.<br>
On AppVeyor the command itself succeeds but Safari settings are not updated.<br>
Do you have any idea? Is there any difference around the user settings?</p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-02T00:49:13Z2020-06-02T00:49:13Zappveyor user password is required on macos image<div><p>Looking at Safari Technology Preview release notes on <a href="https://developer.apple.com/safari/technology-preview/release-notes/">https://developer.apple.com/safari/technology-preview/release-notes/</a>, I've found this in Release 94.</p>
<blockquote>
<h2><a name="webdriver" class="anchor" href="#webdriver"></a>WebDriver</h2>
<p>Fixed an issue that prevented sudo safaridriver --enable from working correctly</p>
</blockquote>
<p>I'm not sure which version of Safari corresponds to which STP, but it's suspicious.<br>
BTW, I have two Mac machines.</p>
<ul>
<li>Machine 1:
<ul>
<li>macOS 10.15.4</li>
<li>Safari 13.1</li>
<li><code>sudo safaridriver --enable</code> works</li>
</ul>
</li>
<li>Machine 2:
<ul>
<li>macOS 10.15.2</li>
<li>Safari 13.0.4</li>
<li><code>sudo safaridriver --enable</code> <strong>doesn't work</strong></li>
</ul>
</li>
</ul>
<p>On AppVeyor it seems to have Safari 13.0.3.</p>
<pre>
<code>Build started
Running "init" scripts
cat /Applications/Safari.app/Contents/version.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildAliasOf</key>
<string>WebBrowser</string>
<key>BuildVersion</key>
<string>8</string>
<key>CFBundleShortVersionString</key>
<string>13.0.3</string>
<key>CFBundleVersion</key>
<string>15608.3.10.1.4</string>
<key>ProjectName</key>
<string>WebBrowser</string>
<key>SourceVersion</key>
<string>7608003010001004</string>
</dict>
</plist></code>
</pre>
<p>Image <code>macos-mojave</code> also failed. So we're going to try Safari Technology Preview instead of Safari for now.</p>
<p>We'd appreciate if we have macos image that has Safari beyond 13.1, but Safari is tied to macOS itself... Is it difficult?</p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-02T04:08:54Z2020-06-02T04:08:54Zappveyor user password is required on macos image<div><p>Thank you for additional details provided!</p>
<p>We are working on the next macOS images update which will have Safari updated.</p>
<p>Would you be able to provide us with a very simple test/repro in a public repository which we could run to make sure the image is good? Thank you!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483698902020-06-02T05:00:46Z2020-06-02T05:00:46Zappveyor user password is required on macos image<div><blockquote>
<p>We are working on the next macOS images update which will have Safari updated.</p>
</blockquote>
<p>I'm glad to hear that.</p>
<blockquote>
<p>Would you be able to provide us with a very simple test/repro in a public repository which we could run to make sure the image is good?</p>
</blockquote>
<p>OK, please give me some time.</p>
<p>FYI, I succeeded in Safari Technology Preview installation on Catalina image, but our test failed again. This time cannot be reproduced on my second machine. I will give up STP now... and am sorry if Safari version is not really related to the problem.</p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-03T04:05:40Z2020-06-03T04:05:40Zappveyor user password is required on macos image<div><p>I have prepared a public repository to check macos image. <a href="https://github.com/nkns165/safaridriver-smoke-test">https://github.com/nkns165/safaridriver-smoke-test</a><br>
Please note that I'm launching safaridriver inside the script, so there is no command like <code>safaridriver -p XX &</code></p>
<p>Latest result <a href="https://ci.appveyor.com/project/nkns165/safaridriver-smoke-test/builds/33281311">https://ci.appveyor.com/project/nkns165/safaridriver-smoke-test/bui...</a></p>
<p>I've got some information from my friends. The difference might be whether desktop GUI session exists, rather than OS/Safari version. If so, you don't have to resolve this problem when you version up the image (Of course we're very glad if resolved)<br>
I don't know how, but GitHub Actions people have added some fix for that. <a href="https://github.com/actions/virtual-environments/issues/91">https://github.com/actions/virtual-environments/issues/91</a></p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-03T18:42:43Z2020-06-03T18:42:43Zappveyor user password is required on macos image<div><p>Thanks for additional info provided!</p>
<p>I've created a new issue to try fixing that issue on the next images update (this week): <a href="https://github.com/appveyor/ci/issues/3462">https://github.com/appveyor/ci/issues/3462</a></p>
<p>Also, macOS Catalina will be updated to the latest 15.5.5: <a href="https://github.com/appveyor/ci/issues/3420">https://github.com/appveyor/ci/issues/3420</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483698902020-06-04T00:52:25Z2020-06-04T00:52:25Zappveyor user password is required on macos image<div><p>Many thanks!</p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-04T01:02:35Z2020-06-04T01:02:35Zappveyor user password is required on macos image<div><p>I'm testing it on the next image update (not yet public) and it works (I guess as I'm getting green build): <a href="https://ci.appveyor.com/project/appveyor-tests/safaridriver-smoke-test">https://ci.appveyor.com/project/appveyor-tests/safaridriver-smoke-test</a></p>
<p>I've commented <code>sudo safaridriver --enable</code> though as the driver is now enabled in the image.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483698902020-06-04T23:49:22Z2020-06-04T23:49:22Zappveyor user password is required on macos image<div><p>Great work. We're looking forward to the new image release, thank you.</p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-05T00:03:27Z2020-06-05T00:03:27Zappveyor user password is required on macos image<div><p>I feel a little bit worried that the green build didn't output any console log. It's assumed to output<br></p>
<pre>
<code>Safaridriver launched
Safari worked</code>
</pre>
<p>My failing build output the first line (because it failed after that)<br></p>
<pre>
<code>Safaridriver launched
Error: ....</code>
</pre>
<p>I hope it has no problem.</p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-05T00:16:41Z2020-06-05T00:16:41Zappveyor user password is required on macos image<div><p>I see. Looking at the logs again it "could be" the rest of command after <code>set -e</code> was ignored as comment.</p>
<p>Anyway, I'm going to give it another try today and let you know.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483698902020-06-05T04:13:14Z2020-06-05T04:13:14Zappveyor user password is required on macos image<div><p>Yep, it works: <a href="https://ci.appveyor.com/project/appveyor-tests/safaridriver-smoke-test/builds/33330820">https://ci.appveyor.com/project/appveyor-tests/safaridriver-smoke-t...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483698902020-06-06T10:31:51Z2020-06-06T10:31:51Zappveyor user password is required on macos image<div><p>Wow, thank you.</p></div>TAMAGAWA Hirokotag:help.appveyor.com,2012-11-13:Comment/483698902020-06-08T19:11:12Z2020-06-08T19:11:12Zappveyor user password is required on macos image<div><p>Hi Hiroko,</p>
<p>Updated macOS images have been deployed.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483698902020-06-09T01:40:21Z2020-06-09T01:40:39Zappveyor user password is required on macos image<div><p>We have also confirmed the fix on our private repository!<br>
Thank you very much for your quick response/fixes.</p></div>TAMAGAWA Hiroko