.dylib file is missing

前端 未结 6 1989
我寻月下人不归
我寻月下人不归 2021-01-04 02:37

I am trying to compile my project in iOS 9. I am using XCode7. Here is how it looks like: error:

/Applications/Xcode.app/Contents/Developer/Toolchains/Xcode         


        
相关标签:
6条回答
  • 2021-01-04 02:38

    Here's what worked for me.

    1. Go into your Targets, Build Phases, "Link Binary with libraries", and click on the + button.

    1. Click on the "Add other..." button

    1. Hit CMD+Shift+G to open the "Go to folder" dialog, and cut'n'paste the folder: /usr/lib

    1. In the top-right search box, type in a section of your "missing" file, which for me, was libsqlite3.dylib, then click on Open.

    This should link in the file which was previously missing.

    (Tested with Xcode 7.1)

    0 讨论(0)
  • 2021-01-04 02:42

    libz.dylib is now found under libz.tbd

    the .tbd files are new "text-based stub libraries", that provide a much more compact version of the stub libraries for use in the SDK

    see Swift 2 / iOS 9 - libz.dylib not found

    0 讨论(0)
  • 2021-01-04 02:45

    Remove it from "Link Binary with Libraries" fixed my error.

    0 讨论(0)
  • 2021-01-04 02:52

    At last i fixed it. https://forums.developer.apple.com/thread/4572. Add the dylib files into "Other Linker Flags".

    0 讨论(0)
  • 2021-01-04 02:57

    I resolved it by:

    Go to Your Target --> Build phases --> Link Binary With Libraries --> Add libiconv.dylib

    That's All!

    0 讨论(0)
  • 2021-01-04 03:05

    Try to add the libc++..tbd framework to your project. And compile again.

    Also try to add libiconv.dylib to your project frameworks.

    0 讨论(0)
提交回复
热议问题