Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ dependencies:
mobile_rag_engine: ^0.20.0
```

> **iOS Setup:** Open your `ios/Podfile` and change `use_frameworks!` to `use_frameworks! :linkage => :static`. This is required because the underlying ONNX Runtime uses statically linked binaries.

### 2. Download Model Files

```bash
Expand Down
16 changes: 16 additions & 0 deletions docs/guides/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,22 @@ dyld: Library not loaded: @rpath/libonnxruntime.dylib

## Build Issues

### iOS: Transitive dependencies include statically linked binaries

**Symptom:**
```
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (onnxruntime-objc and onnxruntime-c)
```

**Cause:** `mobile_rag_engine` (since 0.19.0) uses `flutter_onnxruntime` which relies on statically linked ONNX Runtime binaries. Flutter's default iOS project uses dynamic frameworks (`use_frameworks!`).

**Solution:** Update your `ios/Podfile` to use static linkage for frameworks:
1. Open `ios/Podfile`
2. Change `use_frameworks!` to `use_frameworks! :linkage => :static`
3. Run `pod install` again.

---

### iOS: Pod Install Failed

```bash
Expand Down
Loading