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/