xworkmate-app/macos/Runner.xcodeproj/add_ffi_framework.sh
Haitao Pan a6699beff3 feat: integrate Codex CLI as built-in code agent
- Add CodexRuntime for process management and JSON-RPC communication
- Add CodexConfigBridge for AI Gateway configuration
- Add ModeSwitcher for OpenClaw Gateway mode switching (local/remote/offline)
- Add AgentRegistry for agent registration and discovery
- Add RuntimeCoordinator for unified coordination
- Add Rust FFI bindings for native integration
- Add comprehensive test coverage

Phase 1-4 features:
- Configuration bridging to AI Gateway
- Mode switching between local/remote/offline
- Agent registration protocol
- Cloud memory sync capability
- Offline fallback support

CI/CD:
- GitHub Actions workflow for Rust FFI build
- Build scripts for macOS universal binary
- Integration with Flutter build process

Co-authored-by: Codex CLI Integration <codex@openai.com>
2026-03-14 00:10:27 +08:00

26 lines
885 B
Bash
Executable File

#!/bin/bash
# Script to add FFI framework to Xcode project
# Run this once to configure the project to link libcodex_ffi.dylib
PROJECT_FILE="project.pbxproj"
# Check if already added
if grep -q "libcodex_ffi.dylib" "$PROJECT_FILE" 2>/dev/null; then
echo "FFI library already configured in project"
exit 0
fi
echo "Note: This script is for reference."
echo "To add the FFI library manually in Xcode:"
echo ""
echo "1. Open Runner.xcodeproj in Xcode"
echo "2. Select Runner target"
echo "3. Go to Build Phases > Link Binary With Libraries"
echo "4. Click '+' and add 'libcodex_ffi.dylib'"
echo "5. Set 'Framework Search Paths' to include '\$(PROJECT_DIR)/Frameworks'"
echo "6. Set 'Runpath Search Paths' to include '@executable_path/../Frameworks'"
echo ""
echo "Alternatively, use the Podfile to add a vendored framework:"
echo ""
echo " pod 'CodexFFI', :path => '../rust'"