测试自动化工作流程的SDK(无 子模块)。
- 在Xcode中,选择文件 > 添加包…,并将存储库URL输入为
https://github.com/konfig-dev/automation-test-submodule-swift
。 - 从我们的标签页中选择最新版本号。
- 将AutomationTestWithSubmodules产品添加到您的应用程序的目标中。
- 将此行添加到您的
Cartfile
github "konfig-dev/automation-test-submodule-swift"
- 按照Carthage安装说明进行操作。
- 将来,要更新到SDK的最新版本,请运行以下命令:
carthage update automation-test-submodule-swift
- 将
source 'https://github.com/CocoaPods/Specs.git'
添加到您的Podfile
。 - 将
pod 'AutomationTestWithSubmodules', '~> 1.0.1'
添加到您的Podfile
。
您的Podfile
应如下所示
# Podfile
source 'https://github.com/CocoaPods/Specs.git'
target 'Example' do
pod 'AutomationTestWithSubmodules', '~> 1.0.1'
end
- 运行
pod install
❯ pod install
Analyzing dependencies
Downloading dependencies
Installing AutomationTestWithSubmodules 1.0.1
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 2 total pods installed.
- 将来,要更新到SDK的最新版本,运行:
pod update AutomationTestWithSubmodules
import AutomationTestWithSubmodules
let automationtestwithsubmodules = AutomationTestWithSubmodulesClient(
// Defining the base path is optional and defaults to http://google.com
// basePath: "http://google.com"
)
let helloResponse = try await automationtestwithsubmodules.greetings.hello()
获取简单的问候!!!
let helloResponse = try await automationtestwithsubmodules.greetings.hello()
/hello
GET
此TypeScript包由Konfig自动生成