ios - 在 azure-storage-ios SDK 中初始化 AZSCloudStorageAccount 时出现未指定错误

标签 ios swift azure azure-storage azure-blob-storage

Xcode 8.2.1

运行示例应用程序时(以及之前,通过 Cocoapods 运行我自己的应用程序时),我在初始化 AZSCloudStorageAccount 时收到此错误: 错误域=com.Microsoft.AzureStorage.ErrorDomain代码=1“(空)”

行开始尝试! storageAccount = AZSCloudStorageAccount(fromConnectionString: connectionString) 在 BlobListTableViewController.swift

任何关于如何调试以进一步确定错误的建议都会很棒!

最佳答案

根据README.md的内容ios 的 azure storage 的 BlobSample 文件,该问题可能是由于与您当前的 Xcode 版本 8.2.1 不兼容引起的,请参见下文。

README - READ THIS BEFORE ATTEMPTING TO RUN THE SAMPLE APP

This sample is written in SWIFT, targeting iOS 9.0 and using XCode 7. If you have a different setup, the sample may not run properly. More samples (for Objective-C, and tested against older versions of iOS are coming soon.)

所以为了解决这个问题,我建议你需要降级Xcode版本,或者使用Azure Storage REST APIs使用 swift 而不是 SDK。

希望有帮助。

关于ios - 在 azure-storage-ios SDK 中初始化 AZSCloudStorageAccount 时出现未指定错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41553816/

相关文章:

ios - 禁用表格 View 中的弹跳使得在尝试过度滚动后点击单元格两次

ios - 如何从 Touch ID 警报 View 中删除输入密码和取消按钮

ios - Swift 中高斯图像金字塔的下采样和上采样

ios - 如何以编程方式在 UITableViewCell 中添加自定义 View ?

azure - 如何从单个 JSON (IOT HUB) 将流分析输出分成多行

ios - 2 个方法 performFetchWitchCompletionHandler 和 didReceiveRemoteNotification 的 completionHandler 是否相互干扰?

ios - 无法使用带有 : (Any), 选项的类型参数列表调用 jsonObject:[任何]

快速移动文本字段问题

asp.net - 将 Office 365 集成到 Window Azure 应用程序?

azure - 允许 Azure 服务进行 Web 应用程序吗?