hebertgo/knowledgebase-intent-llm
236
1#!/bin/bash2# Xcode Integration Script for QwenKnowledgeBase.mlpackage3# Run this script to automatically add the CoreML model to your Xcode project4 5echo "๐ Setting up CoreML model for Xcode integration..."6 7# Check if we're in the right directory8if [ ! -f "QwenKnowledgeBase.mlpackage" ] && [ ! -d "QwenKnowledgeBase.mlpackage" ]; then9 echo "โ Error: QwenKnowledgeBase.mlpackage not found in current directory"10 echo " Make sure you're in the correct directory"11 exit 112fi13 14echo "โ
Found QwenKnowledgeBase.mlpackage"15echo ""16echo "๐ฑ Next Steps for Xcode Integration:"17echo "1. Open your Xcode project"18echo "2. Drag 'QwenKnowledgeBase.mlpackage' from this directory into your Xcode project"19echo "3. In the dialog that appears:"20echo " - Check 'Add to targets' for your app"21echo " - Choose 'Create groups' (not folder references)"22echo "4. Xcode will automatically compile the model to .mlmodelc format"23echo ""24echo "๐ฏ The model will be available in your app bundle as:"25echo " Bundle.main.url(forResource: "QwenKnowledgeBase", withExtension: "mlmodelc")"26echo ""27echo "โ
Integration complete!"28 