July 26, 2017 at 7:13 pm #1031989
Hi I am trying to get a test case of OpenEars to debug and issue with Rejecto. So I made a single view application and am walking through the Swift tutorial. I have an OE swift app where OE is working fine that I made about two months ago. But now when I follow the tutorial I get an error on the line:
OEPocketsphinxController.sharedInstance().startListeningWithLanguageModel(atPath: lmPath, dictionaryAtPath: dicPath, acousticModelAtPath: OEAcousticModel.path(toModel: “AcousticModelEnglish”), languageModelIsJSGF: false)
The error is: “Use of unresolved identifier ‘lmPath’ and “Use of unresolved identifier ‘dicPath’
Linker, framework paths, and Objective-C Bridging Header fields in Build Settings are all correct based on the tutorial.
I have also tried creating a new project 4 times to make sure that I dragging the framework in and creating the bridging header file correctly. Nothing seems to work though.
Was there an Xcode update or something that is causing this issue?July 26, 2017 at 7:54 pm #1031990
This is the first I’ve heard of it – you’d need to tell me a little bit about which Xcode you’re using, on which OS version, etc, and I can look into it. This is good information to share for any question that is about build issues.July 26, 2017 at 9:20 pm #1031992
Hi, here is my version information. The OpenEars sample app works but I can’t seem to make one from scratch. Can you make a single view app by following the tutorial run successfully?
iOs deployment target: 10.3July 27, 2017 at 3:12 pm #1031995
It will take a little bit of time for me to check into this, thanks for your patience. The sample app is made via the same approach as the tutorial, so to attempt some self-guided troubleshooting in the meantime you could compare the two projects and see what the difference is.July 27, 2017 at 3:39 pm #1031998
Thanks, yeah I have been back and forth between the sample app and my scratch apps and can’t find anything. I also compared the scratch app to my existing build, which is also working fine (except that I can’t add Rejecto to it).
Thanks, for looking into it and let me know if you find anything. I will give it another shot today. Maybe the cosmos will be kinder today.August 10, 2017 at 6:29 am #1032017
Hi, I have a similar problem running Xcode 8.3.3 on OS X 10.12.6 iOS target 10.3
After completing the steps in the tutorial I get ‘Use of undeclared type’ errors on all OE references, specifically OEEventsObserverDelegate and OEEventsObserver.
The OpenEars sample app works fine. But I could not integrate into my project, and I too tried starting a very simple single view app from scratch and followed the tutorial with no success.
OpenEars.framework and Slt.framework do show up in the Linked Frameworks and Libraries…August 10, 2017 at 10:02 am #1032018
Can you both share the contents of your app target (not project) build settings entries “Framework Search Paths” and “Objective-C Bridging Header”, after checking that they seem possible/correct for your project? You can see examples of what they should look like in the sample app.August 10, 2017 at 3:19 pm #1032019
Sorry, the Objective-C Bridging Header path in Build Settings was my issue. Don’t know how I missed that in the tutorial. I think I was looking for in under Type in Utilities inspector in the header file, though the tutorial is fairly explicit in retrospect. Newbie mistake.
Thank you!August 10, 2017 at 3:57 pm #1032020
You’re welcome – I’m glad to hear that it was something like that and that it’s fixed for you now.
- You must be logged in to reply to this topic.