8 Replies
      Latest reply on Jan 2, 2020 11:01 AM by prsolucoes
      prsolucoes Level 1 Level 1 (0 points)

        Hi,

         

        Clang not emit LC_VERSION_MIN when target is Mac Catalyst.

         

        Example:

         

        1. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang hello.c -o myapp -mmacosx-version-min=10.15 -target x86_64-apple-ios13.0-macabi
        2. otool -l myapp | grep LC_VERSION
        3. OUTPUT: EMPTY

         

        But if i compile without target and min sdk 10.9 this information is emitted tto binary, example:

         

        1. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang test_package/hello.c -o teste -mmacosx-version-min=10.9
        2. otool -l myapp | grep LC_VERSION
        3. OUTPUT: cmd LC_VERSION_MIN_MACOSX

         

        Can anyone help me?

         

        Thanks.