Xcode 10 (iOS 12) does not contain libstdc++6.0.9

后端 未结 14 1916
礼貌的吻别
礼貌的吻别 2020-11-28 21:28

I download the newest Xcode from Apple, but I found I cannot search the library named \"libstdc++6.0.9\".

14条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 21:32

    Xcode 10 cancels the libstdc++ library with built-in the lib so we should copy the file to the lib by hand.

    copy the file: (libstdc++.6.0.9.tbd) and (libstdc++.6.tbd) to :

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
    

    and

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib 
    

    (Please note the distinction "iPhoneOS" and "iPhoneSimulator")

    clean xcode and rebuild it.

    Here is the file.

提交回复
热议问题