Bug 207394 - run-safari Doesn't work with the latest Xcode version and iOS
Summary: run-safari Doesn't work with the latest Xcode version and iOS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-07 10:33 PST by Jonathan Bedard
Modified: 2020-02-09 23:30 PST (History)
7 users (show)

See Also:


Attachments
Patch (2.33 KB, patch)
2020-02-07 10:57 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2020-02-07 10:33:40 PST
At the moment, run-safari doesn't work with the latest Xcode version and iOS.
Comment 1 Jonathan Bedard 2020-02-07 10:57:55 PST
Created attachment 390106 [details]
Patch
Comment 2 Jonathan Bedard 2020-02-07 10:59:48 PST
Not convinced this solution is the for fix Niklas's bug, but it is definitely one of the problems with the current code.

We really need to replace run-safari with a Python script that actually knows how to interact with the simulator.
Comment 3 Ryosuke Niwa 2020-02-07 12:23:40 PST
Yeah, this seems to be unrelated to his issue. I think his issue that it can’t find NSDictionary Perl package. Maybe some Apple internal package creeped into WebKit repo? Or maybe it got removed from public SDK but not from internal SDK.
Comment 4 Jonathan Bedard 2020-02-07 13:01:15 PST
(In reply to Ryosuke Niwa from comment #3)
> Yeah, this seems to be unrelated to his issue. I think his issue that it
> can’t find NSDictionary Perl package. Maybe some Apple internal package
> creeped into WebKit repo? Or maybe it got removed from public SDK but not
> from internal SDK.

I have a few customer installs and couldn't reproduce the issue, the only thing I can think of is fresh install vs update install.
Comment 5 WebKit Commit Bot 2020-02-07 14:00:08 PST
Comment on attachment 390106 [details]
Patch

Clearing flags on attachment: 390106

Committed r256059: <https://trac.webkit.org/changeset/256059>
Comment 6 WebKit Commit Bot 2020-02-07 14:00:10 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2020-02-07 14:01:13 PST
<rdar://problem/59272677>
Comment 8 Niklas Merz 2020-02-09 23:30:23 PST
Yes this did not solve my problem. I did an update and got the same error again: 

❯ Tools/Scripts/run-safari --ios-simulator --debug
Can't locate object method "dictionaryWithContentsOfFile_" via package "NSDictionary" (perhaps you forgot to load "NSDictionary"?) at /Users/niklasmerz/Documents/WebkitSVN/Tools/Scripts/webkitdirs.pm line 1527.

I have no experience with Perl, but I did one attempt with no success:

❯ cpanm Mac::Tie::PList
--> Working on Mac::Tie::PList
Fetching http://www.cpan.org/authors/id/G/GB/GBROCK/Mac-Tie-PList-0.03.tar.gz ... OK
Configuring Mac-Tie-PList-0.03 ... OK
==> Found dependencies: Foundation
! Finding Foundation on cpanmetadb failed.
! Finding Foundation (1) on metacpan failed.
! Finding Foundation (1) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Foundation (1)
! Installing the dependencies failed: Module 'Foundation' is not installed
! Bailing out the installation for Mac-Tie-PList-0.03.

I searched for the Perl module for NSDictionary and found this one https://metacpan.org/pod/Mac::Tie::PList but I cannot install it. 

Can I create more info? Should a create a new bug?