Skip to content

Commit 2df7d62

Browse files
committed
fix demo
1 parent 32b0f3a commit 2df7d62

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

Example/Podfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,20 @@ end
1212
post_install do |installer|
1313
installer.pods_project.targets.each do |target|
1414
target.build_configurations.each do |config|
15-
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "11.0"
15+
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "15.0"
16+
17+
# Fix for CTweetNacl module error with Pusher on Xcode 26.0
18+
# Disable explicit module builds for Pusher and TweetNacl pods
19+
if ['PusherSwift', 'PusherSwiftWithEncryption', 'TweetNacl'].include?(target.name)
20+
config.build_settings['SWIFT_ENABLE_EXPLICIT_MODULES'] = 'NO'
21+
# Additional settings to resolve module dependencies
22+
config.build_settings['SWIFT_ENABLE_INCREMENTAL_COMPILATION'] = 'NO'
23+
config.build_settings['SWIFT_COMPILATION_MODE'] = 'wholemodule'
24+
end
1625
end
1726
end
27+
# Additional project-level settings for all targets
28+
installer.pods_project.build_configurations.each do |config|
29+
config.build_settings['SWIFT_ENABLE_EXPLICIT_MODULES'] = 'NO'
30+
end
1831
end

Example/Podfile.lock

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
PODS:
22
- BigInt (5.2.0)
3-
- TonSwift (1.0.3):
3+
- Sodium (0.9.1)
4+
- TonSwift (1.0.18):
45
- BigInt
6+
- Sodium
57
- TweetNacl
6-
- TonSwift/Tests (1.0.3):
8+
- TonSwift/Tests (1.0.18):
79
- BigInt
10+
- Sodium
811
- TweetNacl
912
- TweetNacl (1.0.2)
1013

@@ -15,6 +18,7 @@ DEPENDENCIES:
1518
SPEC REPOS:
1619
trunk:
1720
- BigInt
21+
- Sodium
1822
- TweetNacl
1923

2024
EXTERNAL SOURCES:
@@ -23,9 +27,10 @@ EXTERNAL SOURCES:
2327

2428
SPEC CHECKSUMS:
2529
BigInt: f668a80089607f521586bbe29513d708491ef2f7
26-
TonSwift: 8263886e6a34c81a721cde1674cc70229a1d0d44
30+
Sodium: 23d11554ecd556196d313cf6130d406dfe7ac6da
31+
TonSwift: 772c4cf09140c087ce6a82253ad0b9ab0f7444ed
2732
TweetNacl: 3abf4d1d2082b0114e7a67410e300892448951e6
2833

29-
PODFILE CHECKSUM: adb693e82e588cc090eb72c366a3aff89a95e709
34+
PODFILE CHECKSUM: 2346665ec6fa725b886bf775946ddbfd1a195f90
3035

31-
COCOAPODS: 1.15.2
36+
COCOAPODS: 1.16.2

TonSwift.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'TonSwift'
3-
s.version = '1.0.3'
3+
s.version = '1.0.18'
44
s.homepage = 'https://github.com/tonkeeper/ton-swift'
55
s.source = { :git => 'https://github.com/tonkeeper/ton-swift.git', :tag => s.version.to_s }
66
s.license = { :type => 'MIT', :file => 'LICENSE' }
@@ -15,6 +15,7 @@ Pod::Spec.new do |s|
1515

1616
s.dependency 'BigInt'
1717
s.dependency 'TweetNacl'
18+
s.dependency 'Sodium'
1819

1920
s.test_spec 'Tests' do |test_spec|
2021
test_spec.source_files = ["Tests/*.{swift,h}", "Tests/**/*.{swift,c,h}", "Tests/**/**/*.{swift,c,h}"]

0 commit comments

Comments
 (0)