libsystem_symptoms.dylib missing in Xcode 8

后端 未结 7 2343
情话喂你
情话喂你 2021-02-19 02:54

I just updated to Xcode 8, and I can no longer build xml2-based applications. If I build a simple file and try to build it as follows:

c++ myapp.cc `xml2-config         


        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-19 03:15

    This is an XCode 8 bug.

    While waiting for a proper fix from Apple, the following command removes the reference to the missing library from the tbd files.

    sudo /usr/bin/sed -i.backup 's@/usr/lib/system/libsystem_symptoms.dylib\(, \)\?@@' \
      $(grep -ril /usr/lib/system/libsystem_symptoms.dylib \
        /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib)
    

    I don't know if it will works for every kind of build, but it fixed everything was not working for me.

提交回复
热议问题