本文介绍了更新更新Xcode 7后,sdk不是dylib错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 当我尝试像下面的代码一样构建项目时,我更新了Xcode 7后,在facebook sdk上收到一些错误。 ld:警告:自动链接提供的/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKShareKit.framework/FBSDKShareKit',框架链接器选项在/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKShareKit.framework/ FBSDKShareKit不是dylib 
ld:警告:自动链接提供的/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit',框架链接器选项在/ Users / manjarb / Desktop / hubbalabs /lib/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit不是一个dylib
ld:warning:自动链接提供的'/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit',框架链接器选项在/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit不是一个dylib


如何解决这个问题?
谢谢!

解决方案

当您以Facebook的方式安装Facebook SDK iOS框架时,您需要做两件事情: / p>



    • 在XCode中创建一个Frameworks组,如果不存在

    • 将使用的框架拖入框架组
      (这个在构建阶段中自动创建一个条目 - >通过库链接二进制文件)


  1. 将框架搜索路径设置为... / FacebookSDKs-iOS /


当你成功的时候你得到这个不是dylib的警告,但是没有正确的。



在我的情况下,我得到了这个警告, code> Bolts.framework ,我没有直接使用,但由 FBSDKCoreKit.framework 使用。



Bolts.framework 拖动到 FBSDKCoreKit.framework 旁边的XCode中,固定警告。


I got some errors with facebook sdk after update Xcode 7 when i tried to build the project like the code below.

ld: warning: Auto-Linking supplied '/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKShareKit.framework/FBSDKShareKit', framework linker option at /Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKShareKit.framework/FBSDKShareKit is not a dylib
ld: warning: Auto-Linking supplied '/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit', framework linker option at /Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit is not a dylib
ld: warning: Auto-Linking supplied '/Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit', framework linker option at /Users/manjarb/Desktop/hubbalabs/lib/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit is not a dylib

How to fix this?Thanks!

解决方案

When you install Facebook SDK iOS frameworks the way Facebook advices it, you do two things:

    • create a "Frameworks" group in XCode if it doesn't exist
    • drag used frameworks into the "Frameworks" group(this automagically creates an entry in Build Phases -> Link Binary With Libraries)
  1. Set the Framework search Paths to .../FacebookSDKs-iOS/

You get this "not a dylib" warning when you succeeded with 2. but did not do 1. correctly.

In my case I got this warning for the Bolts.framework, which I didn't use directly but is used by FBSDKCoreKit.framework.

Dragging Bolts.framework into XCode next to FBSDKCoreKit.framework fixed the warning.

这篇关于更新更新Xcode 7后,sdk不是dylib错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 16:17