Open yutailang0119 opened 4 years ago
Specifications of macOS machines that can be used with GitHub Actions https://github.com/actions/virtual-environments/tree/master/images/macos
I can find Xcode metadata in version.plist from the Xcode path to use.
$ cat /Application/Xcode_11.5.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>IDEFrameworks</string>
<key>BuildVersion</key>
<string>62</string>
<key>CFBundleShortVersionString</key>
<string>11.5</string>
<key>CFBundleVersion</key>
<string>16139</string>
<key>ProductBuildVersion</key>
<string>11E608c</string>
<key>ProjectName</key>
<string>IDEFrameworks</string>
<key>SourceVersion</key>
<string>16139000000000000</string>
</dict>
</plist>
If I use ProductBuildVersion
from this, it seems that Xcode can be uniquely identified.
Executing scan takes time, so test want to cache
.xcresult
..xcresult
is unchanged unless Xcode uses the change.