What is libswiftRemoteMirror.dylib and why is it being included in my app bundle?

前端 未结 6 907
陌清茗
陌清茗 2021-02-01 16:11

I\'ve got an iOS app which I\'ve recently switched to Xcode 8. As part of that we switched from swift 2.2 to 2.3 (swift 3 will come later).

I\'ve got an automated build

6条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 16:51

    Recently started using Swift for our project and got same error.

    To find a root cause, I just did 'grep -Ril "libswiftRemoteMirror" .' in XCode.app (I have 10.1 currently) and found ./Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/XCLanguageSupport.xcplugin/Contents/Resources/swift-stdlib-tool.xcspec file. It says:

         // SWIFT_RESOURCE_DESTINATION and SWIFT_RESOURCE_LIBRARY allow us to copy
        // libswiftRemoteMirror.dylib into place so that memory debugging tools have access to it
        // on device.
        // We disable these options in "DEPLOYMENT" modes, so that the libswiftRemoteMirror.dylib
        // does not make its way into archives submitted to the App Store.
    


    So solution is simple - in XCode target settings set Deployment Postprocessing to Yes for your Release configuration (or whatever you use for build)

提交回复
热议问题