Add ios memory limit

This commit is contained in:
世界
2023-03-02 13:13:12 +08:00
parent e8802357e1
commit 8151bcfd6b
3 changed files with 12 additions and 4 deletions

View File

@@ -86,10 +86,10 @@ func buildiOS() {
if !debugEnabled {
args = append(
args, "-trimpath", "-ldflags=-s -w -buildid=",
"-tags", "with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api",
"-tags", "with_gvisor,with_utls,with_clash_api",
)
} else {
args = append(args, "-tags", "with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api,debug")
args = append(args, "-tags", "with_gvisor,with_utls,with_clash_api,debug")
}
args = append(args, "./experimental/libbox")
@@ -102,7 +102,7 @@ func buildiOS() {
log.Fatal(err)
}
copyPath := filepath.Join("..", "sfi")
copyPath := filepath.Join("..", "sing-box-for-ios")
if rw.FileExists(copyPath) {
targetDir := filepath.Join(copyPath, "Libbox.xcframework")
targetDir, _ = filepath.Abs(targetDir)