Skip to content

Commit d1183da

Browse files
authored
update ios podspec (#82)
1 parent a26a7ce commit d1183da

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.10.3
2+
- Update iOS podspec to use xcconfig for shared objects
3+
14
## 3.10.2
25
- Update iOS podspec to avoid excluding the simulator SDK
36

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ EXTERNAL SOURCES:
2121
SPEC CHECKSUMS:
2222
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
2323
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
24-
openpgp: 937a8b18f330c97bf3612d6ab4ad5ccd89268e29
24+
openpgp: de9f45382feeb822e8417184db988e111406f51d
2525

26-
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
26+
PODFILE CHECKSUM: db4843b9a4ec570ab76e33e3a2d3f4ded0ab206b
2727

2828
COCOAPODS: 1.16.2

ios/openpgp.podspec

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ Pod::Spec.new do |s|
2121
s.platform = :ios, '12.0'
2222
s.vendored_frameworks = 'Openpgp.xcframework'
2323
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
24-
24+
s.xcconfig = {
25+
'OTHER_LDFLAGS[sdk=iphoneos*]' => "-force_load '#{framework_path}/ios-arm64/libopenpgp_bridge.a'",
26+
'OTHER_LDFLAGS[sdk=iphonesimulator*]' => "-force_load '#{framework_path}/ios-arm64_x86_64-simulator/libopenpgp_bridge.a'",
27+
'OTHER_LDFLAGS[sdk=maccatalyst*]' => "-force_load '#{framework_path}/ios-arm64_x86_64-maccatalyst/libopenpgp_bridge.a'"
28+
}
2529
s.pod_target_xcconfig = {
2630
'DEFINES_MODULE' => 'YES',
27-
'OTHER_LDFLAGS[sdk=iphoneos*]' => "-force_load #{framework_path}/ios-arm64/libopenpgp_bridge.a",
28-
'OTHER_LDFLAGS[sdk=iphonesimulator*]' => "-force_load #{framework_path}/ios-arm64_x86_64-simulator/libopenpgp_bridge.a",
29-
'OTHER_LDFLAGS[sdk=maccatalyst*]' => "-force_load #{framework_path}/ios-arm64_x86_64-maccatalyst/libopenpgp_bridge.a"
31+
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
3032
}
3133
s.swift_version = '5.0'
3234

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: openpgp
22
description: library for use OpenPGP with support for android and ios, macOS, linux, windows and web
3-
version: 3.10.2
3+
version: 3.10.3
44
homepage: https://github.com/jerson/flutter-openpgp
55

66
environment:

0 commit comments

Comments
 (0)