- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
首先 - 我正在使用 Xcode 8 和 Swift 3。现在我想在我的应用程序中集成 Dropbox API (SwiftyDropbox)。因为我是 iOS 编程的新手,所以我不确定我是否正确完成了所有步骤。
我决定使用 CocoaPods。所以我安装了 Pods 工具并切换到我的项目目录。这是保存我的 .xcodeproj 文件的目录。我希望这是正确的?
我调用了“pod init”并添加了 SwiftyDropbox 框架。我的 Podfile 看起来像这样:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyProjectName' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Legantoo
pod 'SwiftyDropbox'
end
然后我执行了“pod install”。到目前为止,一切正常。
在 Xcode 中打开我的项目后,我在项目导航器中看到一个名为“Pods”的新组,因此我认为集成已成功完成。
现在我按照步骤在 AppDelegate.swift 中实现 Dropbox 授权过程。为此,我必须包含 Dropbox API
import SwiftyDropbox
这正是我的问题:如果我构建项目,那么我会得到错误
No such module 'SwiftyDropbox'
而错误行是带有 import 语句的那一行。我忽略了一步吗?我已经完全清理 (Cmd+c) 但错误仍然存在。
最佳答案
将任何 pod 安装到您的项目后,您必须通过 .xcworkspace 文件打开您的项目。您不能通过 .xcodeproject 或直接在 Xcode 中打开它。
关于swift - 没有这样的模块 'SwiftyDropbox',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40646380/
我正在使用此代码下载一个文件,它工作正常。 // Download a file let destination : (NSURL, NSHTTPURLResponse) -> NSURL = { t
我在我的 iOS 应用程序中使用 SwiftyDropbox SDK,我试图仅在我的应用程序中列出文件夹,然后用户可以选择一个文件夹(而不是一个文件)。 在 ViewController => vie
我正在iOS项目中试用SwiftyDropbox,当我使用本教程中的代码时... if let client = Dropbox.authorizedClient { // Get the cur
我创建了 ssh key 并将其添加到 github。但是当我启动 $ ssh -vT git@github.com 时,我得到了错误信息 Permission denied (publickey)。
首先 - 我正在使用 Xcode 8 和 Swift 3。现在我想在我的应用程序中集成 Dropbox API (SwiftyDropbox)。因为我是 iOS 编程的新手,所以我不确定我是否正确完成
我有一个带有 SwiftyDropbox 的应用程序,可以正常运行,但每次使用该应用程序时,我都需要插入 Dropbox 的电子邮件和密码。该应用程序仅供我使用,如果应用程序自动登录我的帐户,则不是安
Related question 在尝试使用 Dropbox SwiftyDropbox 为我的文件创建共享链接时,我总是收到错误消息: Bad Input: Error in call to API
我一直在使用 SwiftyDropbox,我遇到了一个奇怪的错误问题。具体来说,我不确定如何处理收到响应后提供的闭包回调中的错误,以便我可以获得它们的关联值。 例如,Dropbox.authorize
我开始在我的 iOS 客户端上使用 SwiftyDropbox,我的计划是在用户成功登录后获取访问 token ,然后将该访问 token 发送到我的服务器 - 这样它就可以使用用户 Dropbox。
我遇到了与 this question 相同的问题.他的问题和我的几乎一模一样。事实上,我们正在关注 the same tutorial .然而,the answer那解决了他的问题对我不起作用。我通
我刚刚开始 iOS 开发,我将 Dropbox API 与 SwiftyDropbox 结合使用。我正在尝试将文本文件上传到保管箱,但出现以下错误: 无法使用“(路径:字符串)”类型的参数列表调用“上
我正在尝试使用 SwiftyDropbox 下载文件,但路径有问题。我在 mi Dropbox“prueba.txt”中有一个文件: Dropbox file 这是我用来在我的应用程序中下载的代码。
我正在尝试使用 SwiftyDropbox 和 Swift 3.0 将 UIImageView 中的图像上传到 Dropbox。当我按下按钮时,在第一个打印语句之后没有任何反应。我究竟做错了什么。
我在“App Folder”的许可下合并了 Dropbox API V2。 使用curl调用成功: curl -X POST https://api.dropboxapi.com/2/files/li
我收到这个错误: dyld: Library not loaded: @rpath/libswiftWebKit.dylib Reason: image not found 当我运行使用 Cocoa
我是一名优秀的程序员,十分优秀!