Skip to content

Commit 9a7247c

Browse files
committed
fix: add -force_load to preserve FFI symbols in iOS linking
1 parent 7216dcc commit 9a7247c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
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.20"
77+
version = "0.2.21"
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: 5 additions & 2 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.20'
9+
s.version = '0.2.21'
1010
s.summary = 'Flutter SDK for Fula decentralized storage'
1111
s.description = <<-DESC
1212
A Flutter plugin providing client-side encryption, metadata privacy,
@@ -22,9 +22,12 @@ 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)
2527
s.pod_target_xcconfig = {
2628
'DEFINES_MODULE' => 'YES',
27-
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
29+
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386',
30+
'OTHER_LDFLAGS' => '$(inherited) -force_load "${PODS_XCFRAMEWORKS_BUILD_DIR}/fula_client/libfula_flutter.a"'
2831
}
2932
s.swift_version = '5.0'
3033

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.20
3+
version: 0.2.21
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)