khanhuitse05 / speech-and-text-unity-ios-android

Speed to text in Unity iOS use Native Speech Recognition
MIT License
286 stars 124 forks source link

XCode Build Failure #59

Closed ashwalcs closed 2 years ago

ashwalcs commented 2 years ago

Hi, The plugin works on Android. But while building for iOS, the build fails in xcode with

Undefined symbols for architecture arm64: "_OBJCCLASS$_SFSpeechAudioBufferRecognitionRequest", referenced from: objc-class-ref in SpeechRecorderViewController.o "_OBJCCLASS$_SFSpeechRecognizer", referenced from: objc-class-ref in SpeechRecorderViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can you help with the fix for this?

ashwalcs commented 2 years ago

Similar to the thread - https://github.com/j1mmyto9/Speech-And-Text-Unity-iOS-Android/issues/30

Issue resolved by adding Speech.framework to the UnityFramework target, not the Unity-iPhone target

Screenshot 2021-07-19 at 9 47 57 PM