Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

How to compile manually for Catalyst #2072

Description

@ppamorim

In our project the SDK is included as a pre-compiled framework, we are not using the cocoapods setup due the compilation time and caching between targets. Instead we use submodules and use your script to build the framework.

So to compile the SDK we have the script below:

AWS_SCHEMES ="AWSCore AWSS3"

cd aws-sdk-ios

chmod +x CircleciScripts/package_sdk.sh

for SCHEME in ${AWS_SCHEMES}; do
  sh CircleciScripts/package_sdk.sh ${SCHEME}
done

cd ..
cp -R aws-sdk-ios/builtFramework/framework/* Frameworks

This is working fine for iOS and now we need to compile the SDKs for Catalyst, any idea of what can be done?

Realm-cocoa has a very nice setup for this (example): https://github.com/realm/realm-cocoa/blob/master/build.sh#L576
Is there anything similar for AWS SDK?

Which AWS Services are you utilizing?
AWSCore AWSS3

Provide code snippets (if applicable)

Environment(please complete the following information):

  • SDK Version: 2.12.2
  • Dependency Manager: None
  • Swift Version : 5.0

EDIT:

I am trying to compile it based on the base configuration script with some modifications:

xcodebuild ONLY_ACTIVE_ARCH=NO \
        -configuration Release \
        -project "${project_path}" \
        -target "${project_name}" \
        -destination "platform=macOS,arch=x86_64,variant=Mac Catalyst" \
        SYMROOT=$(PWD)/builtFramework \
        SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES SUPPORTS_MACCATALYST=YES

I am not sure if this will work anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions