diff --git a/src/runtime/os_darwin.go b/src/runtime/os_darwin.go index c4f3bb6a81858..d9a5678977c42 100644 --- a/src/runtime/os_darwin.go +++ b/src/runtime/os_darwin.go @@ -137,7 +137,9 @@ func osinit() { ncpu = getncpu() physPageSize = getPageSize() - osinit_hack() + if GOOS != "ios" { + osinit_hack() + } } func sysctlbynameInt32(name []byte) (int32, int32) {