File size: 1,133 Bytes
c279fde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Xcode Integration Script for QwenKnowledgeBase.mlpackage
# Run this script to automatically add the CoreML model to your Xcode project

echo "πŸš€ Setting up CoreML model for Xcode integration..."

# Check if we're in the right directory
if [ ! -f "QwenKnowledgeBase.mlpackage" ] && [ ! -d "QwenKnowledgeBase.mlpackage" ]; then
    echo "❌ Error: QwenKnowledgeBase.mlpackage not found in current directory"
    echo "   Make sure you're in the correct directory"
    exit 1
fi

echo "βœ… Found QwenKnowledgeBase.mlpackage"
echo ""
echo "πŸ“± Next Steps for Xcode Integration:"
echo "1. Open your Xcode project"
echo "2. Drag 'QwenKnowledgeBase.mlpackage' from this directory into your Xcode project"
echo "3. In the dialog that appears:"
echo "   - Check 'Add to targets' for your app"
echo "   - Choose 'Create groups' (not folder references)"
echo "4. Xcode will automatically compile the model to .mlmodelc format"
echo ""
echo "🎯 The model will be available in your app bundle as:"
echo "   Bundle.main.url(forResource: "QwenKnowledgeBase", withExtension: "mlmodelc")"
echo ""
echo "βœ… Integration complete!"