'publish iOS xcframework file via azure pipeline
I have built an iOS SDK for which I wish to create .framework file via azure pipeline XCode Build task and publish it in the Build Artifacts.
Solution 1:[1]
You can use PipelineClient, PipelineRequest, and PipelineResponse to create .framework file via the Azure pipeline XCode Build task and publish it in the Build Artifacts.
Refer to example from iOS Azure SDK Design Guidelines:
import AzureCore
import Foundation
public final class ConfigurationClient: PipelineClient, PageableClient {
// Properties are defined as immutable, and are set in initializers
public let options: ConfigurationClientOptions
// A common private initializer to assign immutable properties and call
// `super.init()`
private init(
endpoint: URL,
authPolicy: Authenticating,
withOptions options: ConfigurationClientOptions
) throws {
self.options = options
super.init(...)
}
// One or more public convenience initializers make it easy for consumers to
// create client instances
public convenience init(
endpoint: URL,
credential: TokenCredential,
withOptions options: ConfigurationClientOptions? = nil
) throws {
let authPolicy = BearerTokenCredentialPolicy(credential: credential)
try self.init(
endpoint: endpoint,
authPolicy: authPolicy,
withOptions: options ?? ConfigurationClientOptions()
)
}
You can refer to Build IOS App with Fastlane on Azure Pipelines, Xamarin.iOS support for xcframeworks on Windows and XCframework support
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
