Skip to content

Commit ac8275b

Browse files
committed
Added carthage preprocessor macro explanation
1 parent 4944d2a commit ac8275b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,24 @@ Adjust integration for analytics-ios.
99

1010
## Installation
1111

12+
### Cocoapods
1213
To install the Segment-Adjust integration, simply add this line to your [CocoaPods](http://cocoapods.org) `Podfile`:
1314

1415
```ruby
1516
pod "Segment-Adjust"
1617
```
1718

19+
### Carthage
1820
Or add this to your [Carthage](https://github.com/Carthage/Carthage) `Cartfile`:
1921

2022
```ruby
2123
github "segment-integrations/analytics-ios-integration-adjust"
2224
```
2325

26+
In the Xcode project, add a preprocessor macro `CARTHAGE_BUILD=1` to all targets and configurations.
27+
This is necessary because Adjust uses different import statements depending on if it has been added
28+
via Carthage or Cocoapods.
29+
2430
## Usage
2531

2632
After adding the dependency, you must register the integration with our SDK. To do this, import the Adjust integration in your `AppDelegate`:

0 commit comments

Comments
 (0)