2024-03-20 17:09:10 -06:00
|
|
|
// Copyright 2024 The Go Authors. All rights reserved.
|
2015-03-01 11:47:54 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2024-03-20 17:09:10 -06:00
|
|
|
// This program can be used as go_ios_$GOARCH_exec by the Go tool. It executes
|
|
|
|
// binaries on the iOS Simulator using the XCode toolchain.
|
2015-03-01 11:47:54 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"go/build"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
"os/exec"
|
|
|
|
"path/filepath"
|
|
|
|
"runtime"
|
|
|
|
"strings"
|
2016-03-24 09:03:07 -06:00
|
|
|
"syscall"
|
2015-03-01 11:47:54 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
const debug = false
|
|
|
|
|
2015-03-30 06:36:37 -06:00
|
|
|
var tmpdir string
|
|
|
|
|
2015-04-13 12:31:41 -06:00
|
|
|
var (
|
2017-02-01 01:37:47 -07:00
|
|
|
devID string
|
|
|
|
appID string
|
|
|
|
teamID string
|
|
|
|
bundleID string
|
2017-08-20 10:57:18 -06:00
|
|
|
deviceID string
|
2015-04-13 12:31:41 -06:00
|
|
|
)
|
|
|
|
|
2016-03-25 08:40:44 -06:00
|
|
|
// lock is a file lock to serialize iOS runs. It is global to avoid the
|
|
|
|
// garbage collector finalizing it, closing the file and releasing the
|
|
|
|
// lock prematurely.
|
|
|
|
var lock *os.File
|
|
|
|
|
2015-03-01 11:47:54 -07:00
|
|
|
func main() {
|
|
|
|
log.SetFlags(0)
|
2020-10-05 09:51:54 -06:00
|
|
|
log.SetPrefix("go_ios_exec: ")
|
2015-03-01 11:47:54 -07:00
|
|
|
if debug {
|
|
|
|
log.Println(strings.Join(os.Args, " "))
|
|
|
|
}
|
|
|
|
if len(os.Args) < 2 {
|
2020-10-05 09:51:54 -06:00
|
|
|
log.Fatal("usage: go_ios_exec a.out")
|
2015-03-01 11:47:54 -07:00
|
|
|
}
|
|
|
|
|
2017-02-01 01:37:47 -07:00
|
|
|
// For compatibility with the old builders, use a fallback bundle ID
|
|
|
|
bundleID = "golang.gotest"
|
|
|
|
|
2018-05-02 11:48:04 -06:00
|
|
|
exitCode, err := runMain()
|
|
|
|
if err != nil {
|
|
|
|
log.Fatalf("%v\n", err)
|
|
|
|
}
|
|
|
|
os.Exit(exitCode)
|
2018-04-15 10:39:14 -06:00
|
|
|
}
|
|
|
|
|
2018-05-02 11:48:04 -06:00
|
|
|
func runMain() (int, error) {
|
2015-03-30 06:36:37 -06:00
|
|
|
var err error
|
2021-04-03 02:10:47 -06:00
|
|
|
tmpdir, err = os.MkdirTemp("", "go_ios_exec_")
|
2015-03-30 06:36:37 -06:00
|
|
|
if err != nil {
|
2018-05-02 11:48:04 -06:00
|
|
|
return 1, err
|
2015-03-01 11:47:54 -07:00
|
|
|
}
|
2018-04-15 10:39:14 -06:00
|
|
|
if !debug {
|
|
|
|
defer os.RemoveAll(tmpdir)
|
|
|
|
}
|
2015-03-01 11:47:54 -07:00
|
|
|
|
2018-04-12 12:33:47 -06:00
|
|
|
appdir := filepath.Join(tmpdir, "gotest.app")
|
|
|
|
os.RemoveAll(appdir)
|
|
|
|
|
|
|
|
if err := assembleApp(appdir, os.Args[1]); err != nil {
|
2018-05-02 11:48:04 -06:00
|
|
|
return 1, err
|
2018-04-12 12:33:47 -06:00
|
|
|
}
|
|
|
|
|
2016-03-24 09:03:07 -06:00
|
|
|
// This wrapper uses complicated machinery to run iOS binaries. It
|
|
|
|
// works, but only when running one binary at a time.
|
|
|
|
// Use a file lock to make sure only one wrapper is running at a time.
|
|
|
|
//
|
|
|
|
// The lock file is never deleted, to avoid concurrent locks on distinct
|
|
|
|
// files with the same path.
|
2020-10-05 09:51:54 -06:00
|
|
|
lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
|
2016-03-25 08:40:44 -06:00
|
|
|
lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
|
2016-03-24 09:03:07 -06:00
|
|
|
if err != nil {
|
2018-05-02 11:48:04 -06:00
|
|
|
return 1, err
|
2016-03-24 09:03:07 -06:00
|
|
|
}
|
|
|
|
if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
|
2018-05-02 11:48:04 -06:00
|
|
|
return 1, err
|
2016-03-24 09:03:07 -06:00
|
|
|
}
|
2018-04-12 12:33:47 -06:00
|
|
|
|
2024-03-20 17:09:10 -06:00
|
|
|
err = runOnSimulator(appdir)
|
2020-09-16 07:23:58 -06:00
|
|
|
if err != nil {
|
2018-05-07 05:05:27 -06:00
|
|
|
return 1, err
|
|
|
|
}
|
2020-09-16 07:23:58 -06:00
|
|
|
return 0, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func runOnSimulator(appdir string) error {
|
|
|
|
if err := installSimulator(appdir); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2018-05-07 05:05:27 -06:00
|
|
|
|
2020-09-16 07:23:58 -06:00
|
|
|
return runSimulator(appdir, bundleID, os.Args[2:])
|
|
|
|
}
|
|
|
|
|
2018-04-12 12:33:47 -06:00
|
|
|
func assembleApp(appdir, bin string) error {
|
2015-03-01 11:47:54 -07:00
|
|
|
if err := os.MkdirAll(appdir, 0755); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
if err := cp(filepath.Join(appdir, "gotest"), bin); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
misc/ios,cmd/go, runtime/cgo: fix iOS test harness (again)
The iOS test harness was recently changed in response to lldb bugs
to replace breakpoints with the SIGUSR2 signal (CL 34926), and to
pass the current directory in the test binary arguments (CL 35152).
Both the signal sending and working directory setup is done from
the go test driver.
However, the new method doesn't work with tests where a C program is
the test driver instead of go test: the current working directory
will not be changed and SIGUSR2 is not raised.
Instead of copying that logic into any C test program, rework the
test harness (again) to move the setup logic to the early runtime
cgo setup code. That way, the harness will run even in the library
build modes.
Then, use the app Info.plist file to pass the working
directory, removing the need to alter the arguments after running.
Finally, use the SIGINT signal instead of SIGUSR2 to avoid
manipulating the signal masks or handlers.
Fixes the testcarchive tests on iOS.
With this CL, both darwin/arm and darwin/arm64 passes all.bash.
This CL replaces CL 34926, CL 35152 as well as the fixup CL
35123 and CL 35255. They are reverted in CLs earlier in the
relation chain.
Change-Id: I8485c7db1404fbd8daa261efd1ea89e905121a3e
Reviewed-on: https://go-review.googlesource.com/36090
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-02-01 08:04:07 -07:00
|
|
|
pkgpath, err := copyLocalData(appdir)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2015-03-01 11:47:54 -07:00
|
|
|
entitlementsPath := filepath.Join(tmpdir, "Entitlements.plist")
|
2021-04-03 02:10:47 -06:00
|
|
|
if err := os.WriteFile(entitlementsPath, []byte(entitlementsPlist()), 0744); err != nil {
|
2015-03-01 11:47:54 -07:00
|
|
|
return err
|
|
|
|
}
|
2021-04-03 02:10:47 -06:00
|
|
|
if err := os.WriteFile(filepath.Join(appdir, "Info.plist"), []byte(infoPlist(pkgpath)), 0744); err != nil {
|
2015-03-01 11:47:54 -07:00
|
|
|
return err
|
|
|
|
}
|
2021-04-03 02:10:47 -06:00
|
|
|
if err := os.WriteFile(filepath.Join(appdir, "ResourceRules.plist"), []byte(resourceRules), 0744); err != nil {
|
2015-03-01 11:47:54 -07:00
|
|
|
return err
|
|
|
|
}
|
2020-09-16 07:23:58 -06:00
|
|
|
return nil
|
|
|
|
}
|
2015-03-01 11:47:54 -07:00
|
|
|
|
2020-09-16 07:23:58 -06:00
|
|
|
func installSimulator(appdir string) error {
|
|
|
|
cmd := exec.Command(
|
|
|
|
"xcrun", "simctl", "install",
|
|
|
|
"booted", // Install to the booted simulator.
|
|
|
|
appdir,
|
|
|
|
)
|
|
|
|
if out, err := cmd.CombinedOutput(); err != nil {
|
|
|
|
os.Stderr.Write(out)
|
|
|
|
return fmt.Errorf("xcrun simctl install booted %q: %v", appdir, err)
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func runSimulator(appdir, bundleID string, args []string) error {
|
2024-03-20 17:09:10 -06:00
|
|
|
xcrunArgs := []string{"simctl", "spawn",
|
2020-09-16 07:23:58 -06:00
|
|
|
"booted",
|
2024-03-20 17:09:10 -06:00
|
|
|
appdir + "/gotest",
|
|
|
|
}
|
|
|
|
xcrunArgs = append(xcrunArgs, args...)
|
|
|
|
cmd := exec.Command("xcrun", xcrunArgs...)
|
|
|
|
cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
|
|
|
|
err := cmd.Run()
|
2020-09-16 07:23:58 -06:00
|
|
|
if err != nil {
|
|
|
|
return fmt.Errorf("xcrun simctl launch booted %q: %v", bundleID, err)
|
|
|
|
}
|
2015-03-01 11:47:54 -07:00
|
|
|
|
2024-03-20 17:09:10 -06:00
|
|
|
return nil
|
2020-09-16 07:23:58 -06:00
|
|
|
}
|
|
|
|
|
2015-03-01 11:47:54 -07:00
|
|
|
func copyLocalDir(dst, src string) error {
|
|
|
|
if err := os.Mkdir(dst, 0755); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
d, err := os.Open(src)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
defer d.Close()
|
|
|
|
fi, err := d.Readdir(-1)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, f := range fi {
|
|
|
|
if f.IsDir() {
|
|
|
|
if f.Name() == "testdata" {
|
|
|
|
if err := cp(dst, filepath.Join(src, f.Name())); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if err := cp(dst, filepath.Join(src, f.Name())); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func cp(dst, src string) error {
|
|
|
|
out, err := exec.Command("cp", "-a", src, dst).CombinedOutput()
|
|
|
|
if err != nil {
|
|
|
|
os.Stderr.Write(out)
|
|
|
|
}
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
func copyLocalData(dstbase string) (pkgpath string, err error) {
|
|
|
|
cwd, err := os.Getwd()
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
|
|
|
|
finalPkgpath, underGoRoot, err := subdir()
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
cwd = strings.TrimSuffix(cwd, finalPkgpath)
|
|
|
|
|
|
|
|
// Copy all immediate files and testdata directories between
|
|
|
|
// the package being tested and the source root.
|
|
|
|
pkgpath = ""
|
|
|
|
for _, element := range strings.Split(finalPkgpath, string(filepath.Separator)) {
|
|
|
|
if debug {
|
|
|
|
log.Printf("copying %s", pkgpath)
|
|
|
|
}
|
|
|
|
pkgpath = filepath.Join(pkgpath, element)
|
|
|
|
dst := filepath.Join(dstbase, pkgpath)
|
|
|
|
src := filepath.Join(cwd, pkgpath)
|
|
|
|
if err := copyLocalDir(dst, src); err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if underGoRoot {
|
2017-04-17 13:09:56 -06:00
|
|
|
// Copy timezone file.
|
|
|
|
//
|
|
|
|
// Typical apps have the zoneinfo.zip in the root of their app bundle,
|
|
|
|
// read by the time package as the working directory at initialization.
|
|
|
|
// As we move the working directory to the GOROOT pkg directory, we
|
|
|
|
// install the zoneinfo.zip file in the pkgpath.
|
2015-03-02 14:05:11 -07:00
|
|
|
err := cp(
|
2017-02-01 11:54:03 -07:00
|
|
|
filepath.Join(dstbase, pkgpath),
|
2015-03-02 14:05:11 -07:00
|
|
|
filepath.Join(cwd, "lib", "time", "zoneinfo.zip"),
|
|
|
|
)
|
|
|
|
if err != nil {
|
2015-03-01 11:47:54 -07:00
|
|
|
return "", err
|
|
|
|
}
|
2017-04-17 13:09:56 -06:00
|
|
|
// Copy src/runtime/textflag.h for (at least) Test386EndToEnd in
|
|
|
|
// cmd/asm/internal/asm.
|
|
|
|
runtimePath := filepath.Join(dstbase, "src", "runtime")
|
|
|
|
if err := os.MkdirAll(runtimePath, 0755); err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
err = cp(
|
|
|
|
filepath.Join(runtimePath, "textflag.h"),
|
|
|
|
filepath.Join(cwd, "src", "runtime", "textflag.h"),
|
|
|
|
)
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
2015-03-01 11:47:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
return finalPkgpath, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// subdir determines the package based on the current working directory,
|
|
|
|
// and returns the path to the package source relative to $GOROOT (or $GOPATH).
|
|
|
|
func subdir() (pkgpath string, underGoRoot bool, err error) {
|
|
|
|
cwd, err := os.Getwd()
|
|
|
|
if err != nil {
|
|
|
|
return "", false, err
|
|
|
|
}
|
2019-03-01 00:25:35 -07:00
|
|
|
cwd, err = filepath.EvalSymlinks(cwd)
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
2019-02-28 17:15:24 -07:00
|
|
|
goroot, err := filepath.EvalSymlinks(runtime.GOROOT())
|
|
|
|
if err != nil {
|
|
|
|
return "", false, err
|
|
|
|
}
|
|
|
|
if strings.HasPrefix(cwd, goroot) {
|
|
|
|
subdir, err := filepath.Rel(goroot, cwd)
|
2015-03-01 11:47:54 -07:00
|
|
|
if err != nil {
|
|
|
|
return "", false, err
|
|
|
|
}
|
|
|
|
return subdir, true, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, p := range filepath.SplitList(build.Default.GOPATH) {
|
2019-02-28 17:15:24 -07:00
|
|
|
pabs, err := filepath.EvalSymlinks(p)
|
|
|
|
if err != nil {
|
|
|
|
return "", false, err
|
|
|
|
}
|
|
|
|
if !strings.HasPrefix(cwd, pabs) {
|
2015-03-01 11:47:54 -07:00
|
|
|
continue
|
|
|
|
}
|
2019-02-28 17:15:24 -07:00
|
|
|
subdir, err := filepath.Rel(pabs, cwd)
|
2015-03-01 11:47:54 -07:00
|
|
|
if err == nil {
|
|
|
|
return subdir, false, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "", false, fmt.Errorf(
|
|
|
|
"working directory %q is not in either GOROOT(%q) or GOPATH(%q)",
|
|
|
|
cwd,
|
|
|
|
runtime.GOROOT(),
|
|
|
|
build.Default.GOPATH,
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
misc/ios,cmd/go, runtime/cgo: fix iOS test harness (again)
The iOS test harness was recently changed in response to lldb bugs
to replace breakpoints with the SIGUSR2 signal (CL 34926), and to
pass the current directory in the test binary arguments (CL 35152).
Both the signal sending and working directory setup is done from
the go test driver.
However, the new method doesn't work with tests where a C program is
the test driver instead of go test: the current working directory
will not be changed and SIGUSR2 is not raised.
Instead of copying that logic into any C test program, rework the
test harness (again) to move the setup logic to the early runtime
cgo setup code. That way, the harness will run even in the library
build modes.
Then, use the app Info.plist file to pass the working
directory, removing the need to alter the arguments after running.
Finally, use the SIGINT signal instead of SIGUSR2 to avoid
manipulating the signal masks or handlers.
Fixes the testcarchive tests on iOS.
With this CL, both darwin/arm and darwin/arm64 passes all.bash.
This CL replaces CL 34926, CL 35152 as well as the fixup CL
35123 and CL 35255. They are reverted in CLs earlier in the
relation chain.
Change-Id: I8485c7db1404fbd8daa261efd1ea89e905121a3e
Reviewed-on: https://go-review.googlesource.com/36090
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-02-01 08:04:07 -07:00
|
|
|
func infoPlist(pkgpath string) string {
|
2017-02-01 01:37:47 -07:00
|
|
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
2015-03-01 11:47:54 -07:00
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
|
|
|
<key>CFBundleName</key><string>golang.gotest</string>
|
|
|
|
<key>CFBundleSupportedPlatforms</key><array><string>iPhoneOS</string></array>
|
|
|
|
<key>CFBundleExecutable</key><string>gotest</string>
|
|
|
|
<key>CFBundleVersion</key><string>1.0</string>
|
2020-09-16 07:23:58 -06:00
|
|
|
<key>CFBundleShortVersionString</key><string>1.0</string>
|
2017-02-01 01:37:47 -07:00
|
|
|
<key>CFBundleIdentifier</key><string>` + bundleID + `</string>
|
2015-03-01 11:47:54 -07:00
|
|
|
<key>CFBundleResourceSpecification</key><string>ResourceRules.plist</string>
|
|
|
|
<key>LSRequiresIPhoneOS</key><true/>
|
|
|
|
<key>CFBundleDisplayName</key><string>gotest</string>
|
misc/ios,cmd/go, runtime/cgo: fix iOS test harness (again)
The iOS test harness was recently changed in response to lldb bugs
to replace breakpoints with the SIGUSR2 signal (CL 34926), and to
pass the current directory in the test binary arguments (CL 35152).
Both the signal sending and working directory setup is done from
the go test driver.
However, the new method doesn't work with tests where a C program is
the test driver instead of go test: the current working directory
will not be changed and SIGUSR2 is not raised.
Instead of copying that logic into any C test program, rework the
test harness (again) to move the setup logic to the early runtime
cgo setup code. That way, the harness will run even in the library
build modes.
Then, use the app Info.plist file to pass the working
directory, removing the need to alter the arguments after running.
Finally, use the SIGINT signal instead of SIGUSR2 to avoid
manipulating the signal masks or handlers.
Fixes the testcarchive tests on iOS.
With this CL, both darwin/arm and darwin/arm64 passes all.bash.
This CL replaces CL 34926, CL 35152 as well as the fixup CL
35123 and CL 35255. They are reverted in CLs earlier in the
relation chain.
Change-Id: I8485c7db1404fbd8daa261efd1ea89e905121a3e
Reviewed-on: https://go-review.googlesource.com/36090
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-02-01 08:04:07 -07:00
|
|
|
<key>GoExecWrapperWorkingDirectory</key><string>` + pkgpath + `</string>
|
2015-03-01 11:47:54 -07:00
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
`
|
2017-02-01 01:37:47 -07:00
|
|
|
}
|
2015-03-01 11:47:54 -07:00
|
|
|
|
2015-04-13 12:31:41 -06:00
|
|
|
func entitlementsPlist() string {
|
|
|
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
2015-03-01 11:47:54 -07:00
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
|
|
|
<key>keychain-access-groups</key>
|
2017-02-01 01:37:47 -07:00
|
|
|
<array><string>` + appID + `</string></array>
|
2015-03-01 11:47:54 -07:00
|
|
|
<key>get-task-allow</key>
|
|
|
|
<true/>
|
|
|
|
<key>application-identifier</key>
|
2017-02-01 01:37:47 -07:00
|
|
|
<string>` + appID + `</string>
|
2015-03-01 11:47:54 -07:00
|
|
|
<key>com.apple.developer.team-identifier</key>
|
2015-04-13 12:31:41 -06:00
|
|
|
<string>` + teamID + `</string>
|
2015-03-01 11:47:54 -07:00
|
|
|
</dict>
|
2015-05-03 01:13:46 -06:00
|
|
|
</plist>
|
|
|
|
`
|
2015-04-13 12:31:41 -06:00
|
|
|
}
|
2015-03-01 11:47:54 -07:00
|
|
|
|
|
|
|
const resourceRules = `<?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>
|
2015-05-03 01:13:46 -06:00
|
|
|
<key>rules</key>
|
|
|
|
<dict>
|
|
|
|
<key>.*</key>
|
|
|
|
<true/>
|
|
|
|
<key>Info.plist</key>
|
2015-03-01 11:47:54 -07:00
|
|
|
<dict>
|
2015-05-03 01:13:46 -06:00
|
|
|
<key>omit</key>
|
|
|
|
<true/>
|
|
|
|
<key>weight</key>
|
|
|
|
<integer>10</integer>
|
2015-03-01 11:47:54 -07:00
|
|
|
</dict>
|
|
|
|
<key>ResourceRules.plist</key>
|
|
|
|
<dict>
|
2015-05-03 01:13:46 -06:00
|
|
|
<key>omit</key>
|
|
|
|
<true/>
|
|
|
|
<key>weight</key>
|
|
|
|
<integer>100</integer>
|
2015-03-01 11:47:54 -07:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
`
|