Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit c5526a0

Browse files
committed
[shared_preferences_foundation] Add Swift runtime search paths for Objective-C apps
1 parent 86eda69 commit c5526a0

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/shared_preferences/shared_preferences_foundation/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.1
2+
3+
* Adds Swift runtime search paths in podspec to avoid crash in Objective-C apps.
4+
15
## 2.1.0
26

37
* Renames the package previously published as

packages/shared_preferences/shared_preferences_foundation/darwin/shared_preferences_foundation.podspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ Wraps NSUserDefaults, providing a persistent store for simple key-value pairs.
1818
s.ios.deployment_target = '9.0'
1919
s.osx.deployment_target = '10.11'
2020
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
21+
s.xcconfig = {
22+
'LIBRARY_SEARCH_PATHS' => '$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)/ $(SDKROOT)/usr/lib/swift',
23+
'LD_RUNPATH_SEARCH_PATHS' => '/usr/lib/swift',
24+
}
2125
s.swift_version = '5.0'
2226

2327
end

packages/shared_preferences/shared_preferences_foundation/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: shared_preferences_foundation
22
description: iOS and macOS implementation of the shared_preferences plugin.
33
repository: https://github.com/flutter/plugins/tree/main/packages/shared_preferences/shared_preferences_foundation
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+shared_preferences%22
5-
version: 2.1.0
5+
version: 2.1.1
66

77
environment:
88
sdk: ">=2.12.0 <3.0.0"

0 commit comments

Comments
 (0)