runtime: error when build mono release/6.0 branch on MacCatalyst os

build mono use --os MacCatalyst

I want build mono+libs on macCatayst platform using: ./build.sh mono+libs --os MacCatalyst but error occured:

ld: building for Mac Catalyst, but linking in .tbd built for iOS

image

build mono use --os iOS: ./build.sh mono+libs --os iOS.

hit the error:

error: ‘system’ is unavailable: not available on iOS

/Users/game-netease/dotnet/runtime/src/mono/mono/mini/graph.c:231:7: error: ‘system’ is unavailable: not available on iOS _i = system (com); ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/stdlib.h:184:6: note: ‘system’ has been explicitly marked unavailable here int system(const char *) __DARWIN_ALIAS_C(system); ^ 1 warning and 1 error generated.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (22 by maintainers)

Most upvoted comments

it is caused by the setting the sdkroot env. thank you @akoeplinger help figure out the problem.