Skip to content

Commit 5233767

Browse files
committed
docs: update README and Podfile with dynamic linkage configuration for Swift modules
1 parent 289c065 commit 5233767

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ Iterable's React Native SDK relies on:
4848
- Xcode 12+
4949
- [Deployment target 13.4+](https://help.apple.com/xcode/mac/current/#/deve69552ee5)
5050
- [Iterable's iOS SDK](https://github.com/Iterable/iterable-swift-sdk)
51+
- **Podfile Configuration**: The linkage must be set to dynamic in your Podfile to load Swift modules that the SDK depends on. Add the following to your Podfile:
52+
```ruby
53+
use_frameworks! :linkage => :dynamic
54+
```
5155

5256
- **Android**
5357
- [`minSdkVersion` 21+, `compileSdkVersion` 31+](https://medium.com/androiddevelopers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd)

example/ios/Podfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ prepare_react_native_project!
1313
linkage = ENV['USE_FRAMEWORKS']
1414
if linkage != nil
1515
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
16-
# IMPORTANT: New Architecture Issue solution
17-
# This is needed to use the Swift code from Iterable-iOS-SDK in the RNIterableAPI module
16+
# IMPORTANT: This is needed to use the Swift code from Iterable-iOS-SDK in the RNIterableAPI module
1817
use_frameworks! :linkage => :dynamic
1918
end
2019

0 commit comments

Comments
 (0)