What is causing this Crashlytics compile warning? (Auto-Linking supplied '…' framework linker option at '…' is not a dylib)

前端 未结 6 1291
你的背包
你的背包 2020-12-03 04:05

Compiling my main target (not a test target like here) yields this error:

ld: warning: Auto-Linking supplied 
   \'~/Documents/my_app/MyApp/Crashlytics.frame         


        
6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 05:02

    The Missing Link:

    This error is almost always produced by not having the binary linked to the library (In this case it would be the Crashlytics.framework):

    Link Fail

    Trying to build the target MyApp (which includes headers with #import will produce the error:

    ld: warning: Auto-Linking supplied '../../Crashlytics.framework/Crashlytics', framework linker option at ../../Crashlytics.framework/Crashlytics is not a dylib

    Link the Framework:

    Link Success Fortunately, it should be easy to fix the problem simply by dragging the Crashlytics.framework from the Frameworks folder in the project navigator into the list of Link Binary With Libraries or by using the +.

    • Make sure you have your App selected/highlighted under Targets while doing this process.

    enter image description here

提交回复
热议问题