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

fix: fixes installation steps for iOS #73

Merged
merged 4 commits into from
Feb 15, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions docs/sdks/mobile/ios/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,11 @@ To create one, login into our [Portal](https://portal.basistheory.com) and creat

## Installation

Add the Basis Theory iOS package using [Swift Package Manager](https://www.swift.org/package-manager/) via [XCode](https://developer.apple.com/xcode/). To do this, follow these steps.
To add the Basis Theory iOS package using [Swift Package Manager](https://www.swift.org/package-manager/) via [XCode](https://developer.apple.com/xcode/), open [XCode](https://developer.apple.com/xcode/) and click on File -> Add Packages, search for "https://github.com/Basis-Theory/basistheory-ios" and click on "Copy Dependency".
brigonzalez marked this conversation as resolved.
Show resolved Hide resolved

1. Via File -> Add Packages, search for "https://github.com/Basis-Theory/basistheory-ios" and click on "Copy Dependency".
We also support installing our package via CocoaPods by adding the following line to your `Podfile` under your `target`:
brigonzalez marked this conversation as resolved.
Show resolved Hide resolved

2. Add the following line under `dependencies` to `Package.swift`.

```swift showLineNumbers
.package(url: "https://github.com/Basis-Theory/basistheory-ios", from: "X.X.X")
```

3. Then, add `BasisTheoryElements` as a dependency to your target.

```swift showLineNumbers
dependencies: [
.product(name: "BasisTheoryElements", package: "basistheory-ios"),
...
]
```

4. Add the following line to your Podfile under your target.

```ruby showLineNumbers
```ruby
pod 'BasisTheoryElements'
```

Expand Down