{"payload":{"allShortcutsEnabled":false,"fileTree":{"sdk/template/AzureTemplate":{"items":[{"name":"AzureTemplate.xcodeproj","path":"sdk/template/AzureTemplate/AzureTemplate.xcodeproj","contentType":"directory"},{"name":"Source","path":"sdk/template/AzureTemplate/Source","contentType":"directory"},{"name":"AzureTemplate.podspec.json","path":"sdk/template/AzureTemplate/AzureTemplate.podspec.json","contentType":"file"},{"name":"CHANGELOG.md","path":"sdk/template/AzureTemplate/CHANGELOG.md","contentType":"file"},{"name":"Package.swift","path":"sdk/template/AzureTemplate/Package.swift","contentType":"file"},{"name":"README.md","path":"sdk/template/AzureTemplate/README.md","contentType":"file"}],"totalCount":6},"sdk/template":{"items":[{"name":"AzureTemplate","path":"sdk/template/AzureTemplate","contentType":"directory"},{"name":"ci.yml","path":"sdk/template/ci.yml","contentType":"file"}],"totalCount":2},"sdk":{"items":[{"name":"communication","path":"sdk/communication","contentType":"directory"},{"name":"core","path":"sdk/core","contentType":"directory"},{"name":"identity","path":"sdk/identity","contentType":"directory"},{"name":"template","path":"sdk/template","contentType":"directory"},{"name":"test","path":"sdk/test","contentType":"directory"}],"totalCount":5},"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"AzureSDK.xcworkspace","path":"AzureSDK.xcworkspace","contentType":"directory"},{"name":"eng","path":"eng","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"jazzy","path":"jazzy","contentType":"directory"},{"name":"sdk","path":"sdk","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".swiftformat","path":".swiftformat","contentType":"file"},{"name":".swiftlint.yml","path":".swiftlint.yml","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Podfile","path":"Podfile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"}],"totalCount":14}},"fileTreeProcessingTime":15.888592,"foldersToFetch":[],"repo":{"id":123228625,"defaultBranch":"main","name":"azure-sdk-for-ios","ownerLogin":"Azure","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2018-02-28T04:22:34.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/6844498?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1710974628.0","canEdit":false,"refType":"branch","currentOid":"6015c971c1593f3260ada5b15612515cf1e019a1"},"path":"sdk/template/AzureTemplate/README.md","currentUser":null,"blob":{"rawLines":null,"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/Azure/azure-sdk-for-ios/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"README.md","displayUrl":"https://github.com/Azure/azure-sdk-for-ios/blob/main/sdk/template/AzureTemplate/README.md?raw=true","headerInfo":{"blobSize":"5.16 KB","deleteTooltip":"您必须登录才能创建或提议更改","editTooltip":"您必须登录才能创建或提议更改","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"98c43a7","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-sdk-for-ios%2Fblob%2Fmain%2Fsdk%2Ftemplate%2FAzureTemplate%2FREADME.md","isCSV":false,"isRichtext":true,"toc":[{"level":1,"text":"iOS 的 Azure 模板客户端库","anchor":"azure-template-client-library-for-ios","htmlText":"iOS 的 Azure 模板客户端库"},{"level":2,"text":"入门","anchor":"getting-started","htmlText":"入门"},{"level":3,"text":"先决条件","anchor":"prerequisites","htmlText":"先决条件"},{"level":3,"text":"安装库","anchor":"install-the-library","htmlText":"安装库"},{"level":4,"text":"使用 Swift Package Manager 添加包依赖项","anchor":"add-a-package-dependency-with-swift-package-manager","htmlText":"使用 Swift Package Manager 添加包依赖项"},{"level":5,"text":"Xcode","anchor":"xcode","htmlText":"Xcode"},{"level":5,"text":"Swift CLI","anchor":"swift-cli","htmlText":"Swift CLI"},{"level":4,"text":"使用 CocoaPods 整合客户端库","anchor":"integrate-the-client-libraries-with-cocoapods","htmlText":"使用 CocoaPods 整合客户端库"},{"level":2,"text":"关键概念","anchor":"key-concepts","htmlText":"关键概念"},{"level":2,"text":"示例","anchor":"examples","htmlText":"示例"},{"level":2,"text":"故障排除","anchor":"troubleshooting","htmlText":"故障排除"},{"level":2,"text":"下一步动作","anchor":"next-steps","htmlText":"下一步动作"},{"level":2,"text":"贡献","anchor":"contributing","htmlText":"贡献"}],"lineInfo":{"truncatedLoc":"134","truncatedSloc":"94"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Markdown","languageID":222,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/Azure/azure-sdk-for-ios/blob/main/sdk/template/AzureTemplate/README.md","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/Azure/azure-sdk-for-ios/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/Azure/azure-sdk-for-ios/raw/main/sdk/template/AzureTemplate/README.md","renderImageOrRaw":false,"richText":"
此包没有功能,仅用于测试工程系统集成。
\n\n\n要安装针对 iOS 的 Azure 客户端库,我们建议您使用Swift 包管理器。\n作为替代方案,您还可以使用CocoaPods进行集成。
\n\nSwift 包管理器是一种用于管理 Swift 代码分发工具。\n它与 Swift 构建系统集成,以自动下载、编译和链接依赖项的过程。
\nXcode 带有内置的 Swift 包管理器和源代码控制账户支持,并简化了使用可用的 Swift 包的过程。使用 Xcode 管理包依赖项的版本,并确保您的项目拥有最新的代码更改。
\n\n要将库添加到您的应用程序中,请按照将包依赖添加到您的应用中的说明操作。
\n为了使用 Swift 包管理器独立版本化包,我们将 azure-sdk-for-ios 中的代码镜像到单独的存储库中。请确保您的基于 Swift 包管理器的应用程序针对这些存储库而不是 azure-sdk-for-ios 存储库。
\n在 Xcode 11 或更高版本的 Xcode 中打开您的项目后,选择 文件 > Swift Packages > 添加包依赖... 输入 Swift 包管理器镜像存储库的克隆 URL:https://github.com/Azure/SwiftPM-AzureTemplate.git\n然后单击 下一步。对于版本规则,指定您希望与应用程序一起使用的确切版本或版本范围,并单击 下一步。最后,勾选库,确保在 添加到目标 下拉列表中选择您的应用程序目标,然后单击 完成。
\n\n要将库添加到应用程序中,请参阅导入依赖项中的示例。
\n打开项目的 Package.swift
文件,并在项目的 dependencies
部分添加一个新的包依赖项,指定此存储库的克隆 URL 和您希望使用的版本指定符
// swift-tools-version:5.3\n dependencies: [\n …\n .package(name: \"AzureTemplate\", url: \"https://github.com/Azure/SwiftPM-AzureTemplate.git\", from: \"1.7.0-beta.1\")\n ],
接下来,对于需要使用库的每个目标,将其添加到目标的 dependencies
数组中
CocoaPods 是 Objective-C 和 Swift 项目的依赖关系管理器。您可以使用以下命令安装它
\n要使用 CocoaPods 将一个或多个客户端库集成到项目中,请在上面的 Podfile 中指定它们,提供所需的版本指定符。为了在同一个项目中使用多个客户端库时确保兼容性,请使用相同的版本指定符为项目中所有的 Azure SDK 客户端库指定版本。
\n然后,运行以下命令
\n不适用。
\n\n不适用。
\n\n不适用。
\n\n探索并安装\n可用的 Azure SDK 库。
\n\n此项目欢迎贡献和建议。所有代码贡献应在[Azure SDK for iOS](https://github.com/Azure/azure-sdk-for-ios)存储库中完成。
\n大多数贡献要求您同意贡献者许可协议(CLA),声明您有权,并且确实授予我们使用您贡献的权利。有关详细信息,请访问https://cla.microsoft.com。
\n当您提交一个拉取请求时,CLA机器人会自动判断您是否需要提供CLA并对PR进行适当的装饰(例如,标签,注释)。只需遵循机器人提供的说明。您只需要做一次,在我们的CLA使用的所有存储库中就完成了。
\n本项目采用了Microsoft Open Source Code of Conduct。有关更多信息,请参阅行为准则常见问题解答或联系[email protected]以提出任何额外的问题或评论。
\n\n