# Error deploying roboflow model to IOS app using swift SDK

**URL:** <https://discuss.roboflow.com/t/error-deploying-roboflow-model-to-ios-app-using-swift-sdk/5553>\
**Category:** 🤝  Community Help\
**Created:** [April 28, 2024, 8:41pm UTC](https://discuss.roboflow.com/t/error-deploying-roboflow-model-to-ios-app-using-swift-sdk/5553 "2024-04-28T20:41:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayden\_Francis](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jayden_francis/32/4435_2.png) [@Jayden\_Francis](https://discuss.roboflow.com/u/Jayden_Francis)\
**Post date:** [April 28, 2024, 8:41pm UTC](https://discuss.roboflow.com/t/error-deploying-roboflow-model-to-ios-app-using-swift-sdk/5553/1 "2024-04-28T20:41:03Z")

</div>

Hello, I am new to the roboflow community and I am trying to deploy a model (specifically this one: [Playing Cards Object Detection Dataset and Pre-Trained Model by Augmented Startups](https://universe.roboflow.com/augmented-startups/playing-cards-ow27d)) to my IOS device.

I followed the instructions in the Roboflow Swift SDK github README and was able to build my app and install it on my device using xCode, however, I get the following error when the app builds:

Error: Could not find data for key playing-cards-ow27d

Failed to parse the model specification. Error: Field number 7 has wireType 4, which is not supported.

I load the model in the following way in my swift code:

rf.load(model: “playing-cards-ow27d”, modelVersion: 4) { [self] model, error, modelName, modelType in  
mlModel = model  
if error != nil {  
print(error?.localizedDescription as Any)  
} else {  
model?.configure(threshold: 0.5, overlap: 0.8, maxObjects: 10)  
}  
}

I confirmed that the model ID and version number are both correct, I would really appreciate some help debugging this issue!

---

<div class="post-metadata">

**Author:** ![trevorhlynn](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/trevorhlynn/32/1690_2.png) [@trevorhlynn](https://discuss.roboflow.com/u/trevorhlynn)\
**Post date:** [April 29, 2024, 9:47pm UTC](https://discuss.roboflow.com/t/error-deploying-roboflow-model-to-ios-app-using-swift-sdk/5553/2 "2024-04-29T21:47:35Z")

</div>

Free users are only allowed 1 CoreML deploy. I’ve added an additional CoreML deploy to your account. Can you try again to see if this solves the issue?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [May 20, 2024, 9:48pm UTC](https://discuss.roboflow.com/t/error-deploying-roboflow-model-to-ios-app-using-swift-sdk/5553/3 "2024-05-20T21:48:24Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
