speech-and-text-unity-ios-android: Error Building for IOS in unity > 2019.1
Hi, thanks for this great plugin.
I got it to work in unity 2019.1, but if i try to build for IOS in a version higher than 2019.1
it happens in 2019.3.13F1 and 2020.1.6f1.
I always getting the same error:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_SFSpeechAudioBufferRecognitionRequest", referenced from: objc-class-ref in SpeechRecorderViewController.o "_OBJC_CLASS_$_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)
Am I doing something wrong? In my Frameworks, Libraries and Embedded content I have:
AVFoundation.framework Speech.framework UnityFramework.framework
and in my Build phases, link binaries with Libraries:
AVFoundation.framework Speech.framework
Any help will be appreciated,
Thanks.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (5 by maintainers)
figured it out finally! make sure Speech.framework is linked to the UnityFramework target, not the Unity-iPhone target
It works perfect for me! Thanks guy~
Hi, I’ve added to BuildPostProcessor the following code lines:
It would be nice to figure out in unity how to link speech.framework to unityframework.framework in the build so we dont have to manually link it every time in xcode. Perhaps unity’s xcode API is the way to go for this, Im not sure
Awesome! So you added the speech framework to unity framework in the build phase and then built the game under the Unity-IPhone?