Skip to content

Commit 5da6211

Browse files
committed
fix: use user_target_xcconfig for -force_load linker flag
1 parent 9a7247c commit 5da6211

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ name = "encrypted_upload_test"
7474
path = "examples/encrypted_upload_test.rs"
7575

7676
[workspace.package]
77-
version = "0.2.21"
77+
version = "0.2.22"
7878
edition = "2021"
7979
license = "MIT OR Apache-2.0"
8080
repository = "https://github.com/functionland/fula-api"

packages/fula_client/ios/fula_client.podspec

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Pod::Spec.new do |s|
88
s.name = 'fula_client'
9-
s.version = '0.2.21'
9+
s.version = '0.2.22'
1010
s.summary = 'Flutter SDK for Fula decentralized storage'
1111
s.description = <<-DESC
1212
A Flutter plugin providing client-side encryption, metadata privacy,
@@ -22,11 +22,16 @@ Pod::Spec.new do |s|
2222
s.platform = :ios, '12.0'
2323

2424
# Flutter.framework does not contain a i386 slice
25-
# -force_load ensures all FFI symbols are included even if they appear "unused"
26-
# (they're called from Dart, not from Objective-C/Swift, so linker would strip them)
2725
s.pod_target_xcconfig = {
2826
'DEFINES_MODULE' => 'YES',
29-
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
27+
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
28+
}
29+
30+
# -force_load must be in user_target_xcconfig (not pod_target_xcconfig) because
31+
# it needs to apply to the main app target that does the final linking.
32+
# This ensures all FFI symbols are included even if they appear "unused"
33+
# (they're called from Dart, not from Objective-C/Swift, so linker would strip them)
34+
s.user_target_xcconfig = {
3035
'OTHER_LDFLAGS' => '$(inherited) -force_load "${PODS_XCFRAMEWORKS_BUILD_DIR}/fula_client/libfula_flutter.a"'
3136
}
3237
s.swift_version = '5.0'

packages/fula_client/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fula_client
22
description: Flutter SDK for Fula decentralized storage with client-side encryption, metadata privacy, and secure sharing.
3-
version: 0.2.21
3+
version: 0.2.22
44
homepage: https://fx.land
55
repository: https://github.com/functionland/fula-api
66
issue_tracker: https://github.com/functionland/fula-api/issues

0 commit comments

Comments
 (0)