Contents

List Available Xcode Versions for a macOS Version

List all Xcode versions available for a specific macOS version in Xcode Cloud.

URL

GET https://api.appstoreconnect.apple.com/v1/ciMacOsVersions/{id}/xcodeVersions

Path Parameters

NameTypeDescription
id Requiredstring

The opaque resource ID that uniquely identifies the macOS Versions resource.

Query Parameters

NameTypeDescription
fields[ciMacOsVersions] Optional[string]

Additional fields to include for each Xcode Versions resource returned by the response.

fields[ciXcodeVersions] Optional[string]

Additional fields to include for each Xcode Versions resource returned by the response.

include Optional[string]

The relationship data to include in the response.

limit Optionalinteger

The number of Xcode Versions resources to return.

limit[macOsVersions] Optionalinteger

The number of included Xcode Versions resources to return if the macOS versions relationship is included.

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
CiXcodeVersionsResponse

The request completed successfully.

400Bad Request
Content-Type: application/json
ErrorResponse

An error occurred with your request.

401Unauthorized
Content-Type: application/json
ErrorResponse

403Forbidden
Content-Type: application/json
ErrorResponse

Request not authorized.

404Not Found
Content-Type: application/json
ErrorResponse

Resource not found.

429
Content-Type: application/json
ErrorResponse

Discussion

The example request below lists Xcode versions available in Xcode Cloud for a specific macOS version. Use the data provided in the response to display available Xcode versions and test destinations on a dashboard.

Example Request and Response

See Also

Getting macOS Version Information