# How Can I Fix this Error Message In Swift Code?

**URL:** <https://forums.kodeco.com/t/how-can-i-fix-this-error-message-in-swift-code/80261>\
**Category:** iOS\
**Created:** [August 28, 2019, 2:52pm UTC](https://forums.kodeco.com/t/how-can-i-fix-this-error-message-in-swift-code/80261 "2019-08-28T14:52:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![slushypuffin](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/slushypuffin/32/81494_2.png) [@slushypuffin](https://forums.kodeco.com/u/slushypuffin)\
**Post date:** [August 28, 2019, 2:52pm UTC](https://forums.kodeco.com/t/how-can-i-fix-this-error-message-in-swift-code/80261/1 "2019-08-28T14:52:40Z")

</div>

Ive been trying to follow the tutorial for Tesseract OCR for IOS, Written By: Lyndsey Scott.  
Heres the site link: [https://www.raywenderlich.com/2010498-tesseract-ocr-tutorial-for-ios](https://www.raywenderlich.com/2010498-tesseract-ocr-tutorial-for-ios)  
Because I’m trying to learn the code for my own application, I am trying to use the pod for Tesseract but I’m having some trouble… I think I properly imported the pod from my pc terminal, but when I check my code in Xcode it comes up with an error message. Im using Xcode and Swift here is a picture of the error message if anyone can tell me what i’m doing wrong it would be much appreciated!

![HHtYM](https://files.chunter.kodeco.com/original/3X/b/7/b77fd52a7fbca1aa5a07aba20cfc1aaf6ac82c50.png)

---

<div class="post-metadata">

**Author:** ![gdelarosa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gdelarosa/32/109063_2.png) [@gdelarosa](https://forums.kodeco.com/u/gdelarosa)\
**Post date:** [August 29, 2019, 12:37am UTC](https://forums.kodeco.com/t/how-can-i-fix-this-error-message-in-swift-code/80261/2 "2019-08-29T00:37:05Z")

</div>

Hi @slushypuffin, welcome to the forum community! Have you tried cleaning your Xcode project (Command + Shift + Option + K) then running the project again? Sometimes that helps Xcode identify the pod.

---

<div class="post-metadata">

**Author:** ![slushypuffin](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/slushypuffin/32/81494_2.png) [@slushypuffin](https://forums.kodeco.com/u/slushypuffin)\
**Post date:** [August 29, 2019, 5:15pm UTC](https://forums.kodeco.com/t/how-can-i-fix-this-error-message-in-swift-code/80261/3 "2019-08-29T17:15:45Z")

</div>

Hi @gdelarosa  
I ended up fixing it and finishing the project thanks for your help! But I’m now trying to train TesseractOCRiOS to understand handwriting within the same Xcode project! Can you offer any direction on how I should go about this?

---

<div class="post-metadata">

**Author:** ![gdelarosa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gdelarosa/32/109063_2.png) [@gdelarosa](https://forums.kodeco.com/u/gdelarosa)\
**Post date:** [August 30, 2019, 4:17pm UTC](https://forums.kodeco.com/t/how-can-i-fix-this-error-message-in-swift-code/80261/4 "2019-08-30T16:17:14Z")

</div>

Hi @slushypuffin, I did see that you posted your issue on another post. If I can provide help I will answer there.

Thanks!  
Gina

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [February 11, 2020, 6:52am UTC](https://forums.kodeco.com/t/how-can-i-fix-this-error-message-in-swift-code/80261/5 "2020-02-11T06:52:40Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
