learntoflutter / flutter_embed_unity

19 stars 5 forks source link

Getting build error while trying to build for ios #18

Closed carnagexx closed 6 months ago

carnagexx commented 6 months ago

Is there an existing issue for this?

Unity version

Common issues

Flutter version

3.22.0

Description

Hi I was able to run the demo project on my iphone device. I am trying to embed unity 2022_3.2f1 project in flutter 3.22.0. My project has agora and unityWebRTC plugin. my app crashes with the error mentioned below. Please can you help me with it asap?

Minimum reproducible example (MRE)

If you add the agora plugin for ios in the unity project and make a build. You will get this error.

What platforms are you seeing the problem on?

iOS

Devices

iPhone 6s

Anything else?

image (2)
carnagexx commented 6 months ago

Although the plugin was already in the unity project. I had to add agora_rtc_engine: ^6.3.1 in the pubsec.yaml as dependencies and then built the pods again and it resolved the issue.

jamesncl commented 6 months ago

Thanks for the bug report, and for posting your solution - glad you resolved it!

carnagexx commented 6 months ago

You're welcome also I had to remove the unityWebRTC plugin.