![]() The AWS Mobile SDK for iOS is available through CocoaPods. You can always go back and modify which SPM packages are included in your project by opening the Swift Packages tab for your project: Click on the Project file in the Xcode navigator, then click on your project's icon, then select the Swift Packages tab. Select all that are appropriate, then click Finish. Note: AWSLex is not currently supported for the arm64 architecture through Swift Package Manager due to conflicts with a packaged binary dependency. Most SDKs rely only on AWSCore, but for a full dependency list, see the README-spm-support file. The remaining SDKs to install will vary based on which SDK you're trying to install. We recommend setting your Version rule to Up to Next Minor and evaluating minor version releases to ensure they are compatible with your app.Ĭhoose which of the libraries you want added to your project. NOTE: The AWS Mobile SDK for iOS does not use Semantic Versioning, and may introduce breaking API changes on minor version releases. Choose the first rule, Version, and select Up to Next Minor as it will use the latest compatible version of the dependency that can be detected from the main branch, then click Next. You'll see the repository rules for which version of the SDK you want Swift Package Manager to install. We maintain the Swift Package Manager manifest ( Package.swift) file for this library in a separate repo so that apps that use the SDK do not have to download the entire source repository in order to consume the binary targets. NOTE: This URL is not the main URL of the SDK. To start adding the AWS SDK to your iOS project, open your project in Xcode and select File > Swift Packages > Add Package Dependency.Įnter the URL for the AWS SDK for iOS Swift Package Manager GitHub repo ( ) into the search bar and click Next. Swift Package Manager is distributed with Xcode. To use the AWSMobileClient or AWSLocation SDKs, import them as: AWSMobileClient is named as AWSMobileClientXCF and AWSLocation is named as AWSLocationXCF. Note: If you are using XCFrameworks (i.e., either Swift Package Manager, Carthage, or Dynamic Frameworks), some modules are named with the XCF suffix to work around a Swift issue. Importing the SDK in multiple ways loads duplicate copies of the SDK into the project and causes compiler/linker errors. You should use ONE and only one of these ways to import the AWS Mobile SDK. There are several ways to integrate the AWS Mobile SDK for iOS into your own project: Please note that the code in these sample applications is not of production quality, and should be considered as exactly what we called them: samples. We have a couple samples applications which showcase how to use the AWS SDK for iOS. Include the SDK for iOS in an Existing Application To use the AWS SDK for iOS, you will need the following installed on your development machine: You can also run the samples to get a sense of how the SDK works. You can set up the SDK and start building a new project, or you integrate the SDK in an existing project. To get started with the AWS SDK for iOS, check out the Developer Guide for iOS. Visit our Web Site to learn more about Amplify Framework. Generated AWS Service Interfaces: Provides direct interaction with any AWS service.PubSub: Provides connectivity with cloud-based message-oriented middleware.Push Notifications: Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.Storage: Provides a simple mechanism for managing user content for your app in public, protected or private storage buckets.It provides an automatic, lightweight signing process which complies with AWS Signature Version 4. API: Provides a simple solution when making HTTP requests.Analytics data includes user sessions and other custom events that you want to track in your app. Analytics: Easily collect analytics data for your app.Authentication: APIs and building blocks for developers who want to create user authentication experiences.The AWS SDK for iOS provides a library and documentation for developers to build connected mobile applications using AWS.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |