| Summary: | run-safari --ios-simulator fails with `Can't locate object method "dictionaryWithContentsOfFile_"` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | James Darpinian <jdarpinian> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ap, jbedard |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
James Darpinian
2020-02-28 11:49:09 PST
I'm guessing that you have a custom Perl installed via some package manager. What does "which perl" say in Terminal?
Does this work when just run with perl in command line?
sub f
{
eval "require Foundation";
print Foundation::perlRefFromObjectRef(NSDictionary->dictionaryWithContentsOfFile_("/Applications/Safari.app/Contents/Info.plist"));
}
f()
This code was removed in bug 211008, so this particular problem can't happen any more. Still, scripts are not guaranteed to work if you have a custom version of Perl or Python installed. |