Skip to content

Commit

Permalink
fix: fixes installation steps for iOS (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
brigonzalez authored Feb 15, 2023
1 parent 16da6c4 commit 3919890
Showing 1 changed file with 3 additions and 20 deletions.
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".

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](https://cocoapods.org/) by adding the following line to your `Podfile` under your `target`:

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

1 comment on commit 3919890

@vercel
Copy link

@vercel vercel bot commented on 3919890 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.