Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift: Update getting started example to build on Mac #6061

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

shepazon
Copy link
Contributor

@shepazon shepazon commented Feb 6, 2024

Fixed some minor issues preventing Mac builds of the ListBuckets-Simple S3
example. These changes will need to be replicated across all examples, but
this is being pushed first because it is a dependency of a documentation
update. This example is embedded in fragments inline in the Swift SDK
developer guide's "Get started" page.

Changes

  • Added the platforms block to the Package.swift file. This is needed to
    build for Apple platforms, and was removed from all examples by mistake
    during a cleanup pass many months ago.
  • Renamed the main.swift file to entry.swift. This works around a known
    bug in the Swift build chain when the main program uses asynchronous code.

This pull request...


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the Swift This issue relates to the AWS SDK for Swift label Feb 6, 2024
@shepazon shepazon self-assigned this Feb 6, 2024
@shepazon shepazon added On Call Review needed This work needs an on-call review Bug An update to fix incorrect code or typos. labels Feb 6, 2024
@shepazon shepazon requested review from a team and DavidSouther and removed request for a team February 6, 2024 21:23
@shepazon shepazon changed the title Update example for getting started to build on Mac Swift: Update getting started example to build on Mac Feb 6, 2024
@cpyle0819 cpyle0819 removed the On Call Review needed This work needs an on-call review label Feb 7, 2024
@shepazon shepazon added the On Call Review needed This work needs an on-call review label Feb 14, 2024
@scmacdon scmacdon added On Call Review complete On call review complete and removed On Call Review needed This work needs an on-call review labels Feb 16, 2024
Fixed some minor issues preventing Mac builds of the ListBuckets-Simple S3
example. These changes will need to be replicated across all examples, but
this is being pushed first because it is a dependency of a documentation
update. This example is embedded in fragments inline in the Swift SDK
developer guide's "Get started" page.

*Changes*

* Added the `platforms` block to the `Package.swift` file. This is needed to
  build for Apple platforms, and was removed from all examples by mistake
  during a cleanup pass many months ago.
* Renamed the `main.swift` file to `entry.swift`. This works around a known
  bug in the Swift build chain when the main program uses asynchronous code.
@scmacdon
Copy link
Contributor

This commit message looks fine.

@scmacdon scmacdon merged commit 155ffb9 into awsdocs:main Feb 16, 2024
8 checks passed
DavidSouther pushed a commit to DavidSouther/aws-doc-sdk-examples that referenced this pull request Feb 19, 2024
Update example for getting started to build on Mac

Fixed some minor issues preventing Mac builds of the ListBuckets-Simple S3
example. These changes will need to be replicated across all examples, but
this is being pushed first because it is a dependency of a documentation
update. This example is embedded in fragments inline in the Swift SDK
developer guide's "Get started" page.

*Changes*

* Added the `platforms` block to the `Package.swift` file. This is needed to
  build for Apple platforms, and was removed from all examples by mistake
  during a cleanup pass many months ago.
* Renamed the `main.swift` file to `entry.swift`. This works around a known
  bug in the Swift build chain when the main program uses asynchronous code.
cpyle0819 pushed a commit to DennisTraub/aws-doc-sdk-examples that referenced this pull request Feb 19, 2024
Update example for getting started to build on Mac

Fixed some minor issues preventing Mac builds of the ListBuckets-Simple S3
example. These changes will need to be replicated across all examples, but
this is being pushed first because it is a dependency of a documentation
update. This example is embedded in fragments inline in the Swift SDK
developer guide's "Get started" page.

*Changes*

* Added the `platforms` block to the `Package.swift` file. This is needed to
  build for Apple platforms, and was removed from all examples by mistake
  during a cleanup pass many months ago.
* Renamed the `main.swift` file to `entry.swift`. This works around a known
  bug in the Swift build chain when the main program uses asynchronous code.
max-webster pushed a commit to max-webster/aws-doc-sdk-examples that referenced this pull request Mar 15, 2024
Update example for getting started to build on Mac

Fixed some minor issues preventing Mac builds of the ListBuckets-Simple S3
example. These changes will need to be replicated across all examples, but
this is being pushed first because it is a dependency of a documentation
update. This example is embedded in fragments inline in the Swift SDK
developer guide's "Get started" page.

*Changes*

* Added the `platforms` block to the `Package.swift` file. This is needed to
  build for Apple platforms, and was removed from all examples by mistake
  during a cleanup pass many months ago.
* Renamed the `main.swift` file to `entry.swift`. This works around a known
  bug in the Swift build chain when the main program uses asynchronous code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An update to fix incorrect code or typos. On Call Review complete On call review complete Swift This issue relates to the AWS SDK for Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants