Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Building for IOS in unity > 2019.1 #30

Closed
tostegroo opened this issue Sep 23, 2020 · 19 comments
Closed

Error Building for IOS in unity > 2019.1 #30

tostegroo opened this issue Sep 23, 2020 · 19 comments

Comments

@tostegroo
Copy link

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
Copy link

Have same problem) HELP!

@AudacityChild1
Copy link

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

@vitalikbobrik
Copy link

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
Copy link

AudacityChild1 commented Sep 27, 2020 via email

@vitalikbobrik
Copy link

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
Copy link

AudacityChild1 commented Sep 27, 2020 via email

@calvma
Copy link
Contributor

calvma commented Sep 30, 2020

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
Copy link
Contributor

calvma commented Sep 30, 2020

@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
Copy link
Contributor

calvma commented Oct 1, 2020

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

image

@AudacityChild1
Copy link

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

@AudacityChild1
Copy link

And was that on 2019.1 or?

@calvma
Copy link
Contributor

calvma commented Oct 1, 2020

built with 2019.4.10

@AudacityChild1
Copy link

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

@calvma
Copy link
Contributor

calvma commented Oct 2, 2020

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
Copy link

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
Copy link

Uncontrollably

@dmq-ar
Copy link

dmq-ar commented Feb 23, 2021

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
Copy link

sewonist commented Jul 4, 2021

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants