简体   繁体   English

如何在一个 iOS 应用程序中使用 Facebook 和 Dropbox sdk

[英]How to use facebook and dropbox sdk in one iOS app

I am using facebook sdk for login and dropbox sdk in single app, but when I launch the app on the simulator, it is giving me the following error我在单个应用程序中使用 facebook sdk 进行登录和 dropbox sdk,但是当我在模拟器上启动该应用程序时,它给了我以下错误

clang: error: linker command failed with exit code 1 (use -v to see invocation). clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)。

I have initiated both sdks in same method.我已经以相同的方法启动了两个 sdk。

This is not enough information, Xcode will usually give you more "telling" errors elsewhere.这不是足够的信息,Xcode 通常会在其他地方给你更多的“告诉”错误。

Those other error messages probably hint at the cause of your linker error.那些其他错误消息可能暗示了链接器错误的原因。

eg: a) you included a module twice, "duplicate symbol".例如:a)您两次包含一个模块,“重复符号”。

b) you failed to declare or include a framework inside a source file. b) 您未能在源文件中声明或包含框架。

c) you are using an old version of the framework, which won't "bit-compile" with newer versions of Xcode (Xcode version >= 7.0) c) 您使用的是旧版本的框架,它不会使用较新版本的 Xcode(Xcode 版本 >= 7.0)“位编译”

d) you have a syntax error somewhere else, causing that module to fail linking as well. d) 您在其他地方有语法错误,导致该模块也无法链接。

e) one or more of the framework you added does not include all the architectures required by your project e) 您添加的一个或多个框架不包括您的项目所需的所有架构

g) the project comes from another user, and some hard path, referencing a directory which exists only on that user machine is contained in the project. g) 项目来自另一个用户,以及一些硬路径,引用仅存在于该用户机器上的目录包含在项目中。

These are the first few things which come to my mind.这些是我首先想到的几件事。

I strongly suggest you clarify your question.我强烈建议你澄清你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM