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

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

Error Building for IOS in unity > 2019.1 #30

Closed tostegroo closed 2 years ago

tostegroo commented 4 years ago

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.

vitalikbobrik commented 4 years ago

Have same problem) HELP!

AudacityChild1 commented 4 years ago

Having the exact same issue! Even hired a $350 coder for him to get the same issue, PLEASE HELPPP!!!! PLEASE!!!

vitalikbobrik commented 4 years ago

Having the exact same issue! Even hired a $350 coder for him to get the same issue, PLEASE HELPPP!!!! PLEASE!!!

you can pay 350$ for me, and I'll build it)

AudacityChild1 commented 4 years ago

Haha I wish, I already paid a coder and I understand it and got it to work but I can’t get it to install I have a clean build and all that except for that damn SFSpeechrecognizer smh damn iOS problems left And right!

On Sun, Sep 27, 2020 at 9:05 AM vitalikbobrik notifications@github.com wrote:

Having the exact same issue! Even hired a $350 coder for him to get the same issue, PLEASE HELPPP!!!!

PLEASE!!!

you can pay 350$ for me, and I'll build it)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PingAK9/Speech-And-Text-Unity-iOS-Android/issues/30#issuecomment-699639737, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARE66E23FAVHA6N42VECLL3SH5BBTANCNFSM4RXGWL2Q .

vitalikbobrik commented 4 years ago

Haha I wish, I already paid a coder and I understand it and got it to work but I can’t get it to install I have a clean build and all that except for that damn SFSpeechrecognizer smh damn iOS problems left And right!

if you want to build and send it to appstore, you can use 2018.4.27 LTS version) it helps for me)

AudacityChild1 commented 4 years ago

Ok I’ll try that version of unity I’ve been running everything on the most recent version except for the newest Unity because they made the cardboard feature a hassle

On Sun, Sep 27, 2020 at 9:12 AM vitalikbobrik notifications@github.com wrote:

Haha I wish, I already paid a coder and I understand it and got it to work but I can’t get it to install I have a clean build and all that except for that damn SFSpeechrecognizer smh damn iOS problems left And right!

… <#m-6572679686994694638>

if you want to build and send it to appstore, you can use 2018.4.27 LTS version) it helps for me)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PingAK9/Speech-And-Text-Unity-iOS-Android/issues/30#issuecomment-699640508, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARE66EZMH5EXQCL2C7CS6YLSH5B3JANCNFSM4RXGWL2Q .

calvma commented 4 years ago

I'm having the same issue - did Unity change the way they build for iOS after 2019.1 or something? Does anybody know if there's a good way of finding something like this out?

calvma commented 4 years ago

@PingAK9 because that build error is coming from the Link UnityFramework (arm64) build stage, does that mean that Xcode is looking for speech.framework code within UnityFramwork.framework?

calvma commented 4 years ago

figured it out finally! make sure Speech.framework is linked to the UnityFramework target, not the Unity-iPhone target

image

AudacityChild1 commented 4 years ago

Awesome! So you added the speech framework to unity framework in the build phase and then built the game under the Unity-IPhone?

AudacityChild1 commented 4 years ago

And was that on 2019.1 or?

calvma commented 4 years ago

built with 2019.4.10

AudacityChild1 commented 4 years ago

Ahh copy I’ve been using 2019.4.11f1 let me try that out.

calvma commented 4 years ago

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

AudacityChild1 commented 3 years ago

065CF5C8-9756-4B31-8C8D-ACE84489738D Does anyone else have these autorotation issues where the camera spins u controllably in iOS? If so PLEASEE HELPPPP this is my last hoop to jump through to get my mobile vr game working!! B34AAF26-A0C8-4531-A526-EF3716CA11B0

AudacityChild1 commented 3 years ago

Uncontrollably

dmq-ar commented 3 years ago

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

Hi, I've added to BuildPostProcessor the following code lines:

string unityframeworkTargetGUID = project.GetUnityFrameworkTargetGuid();
AddFrameworks(project, unityframeworkTargetGUID);
sewonist commented 3 years ago

figured it out finally! make sure Speech.framework is linked to the UnityFramework target, not the Unity-iPhone target

image

It works perfect for me! Thanks guy~

jayaram9877 commented 2 years ago

figured it out finally! make sure Speech.framework is linked to the UnityFramework target, not the Unity-iPhone target

image

Thank you this worked perfectly.