azesmway / react-native-unity

MIT License
283 stars 71 forks source link

Framework 'UnityFramework' not found #136

Open Asim313 opened 1 day ago

Asim313 commented 1 day ago
Screenshot 2024-11-21 at 4 33 11 PM

I have added the build under unity/builds/ios/ but got this issue while react native build

@azesmway Please help me with this. I have followed all the steps and instructions for iOS.

TruAmbition commented 1 day ago

Hey @Asim313, I would recommend rebuilding the UnityFramework and making sure you set follow each step to make sure the data folder is public and the plugin/ios/callproxy.h file is set to UnityFramework. Use the steps the readme as I'm just going off the top of my head right now.

All this to say, @azesmway did an amazing job outlining the steps. As someone that has ran this flow hundred of times I would encourage you to just start over and careful go through each steps. If so, should works flawless. Let me know what happens.

Asim313 commented 1 day ago

@TruAmbition I have followed every single step exactly as outlined in the following. https://medium.com/@selvaannies/integrating-unity-into-react-native-ios-using-azesmway-react-native-unity-b09837a54a69

I think the issue might be related to a missing UnityFramework in unityfamework.framework folder, but I'm not entirely sure of the exact problem.

TruAmbition commented 1 day ago

Can you please confirm the version of Unity, MacOS and Xcode you are using?

Asim313 commented 1 day ago

Can you please confirm the version of Unity, MacOS and Xcode you are using?

MacOS : 14.5 (23F79) XCode : 15.4 React Native : 0.75.2 Unity6: 6000.0.26f1

TruAmbition commented 1 day ago

We haven't officially confirmed support for Unity6 just yet. However, we have had someone confirm things are working with the latest changes we have staged to fix issues with Xcode 16.

You can find that information regarding their tech stack here. Please note, these changes will be applied and released on version 1.0.11, we are in final stages of checkout after and hope to have release as early as next week. Note, this fix is not intended to work with Unity6, however it appears developers have confirmed it working without any breaking changes. Please also note his remarks about cocoa pod version.

TruAmbition commented 1 day ago

@Asim313 the v1.0.11 release has been published. This contains the fixed for Xcode 16. This way you can do a checkout without having to manually adjust the code to work with Xcode 16.

If you would, please, confirm this all work for you and provide you stack such that we can have additional checkout done for this project working with Unity 6. I will await your response before closing the ticket, if no response, I will close the ticket here as resolved in the next week or so as to keep the fixable project issues to a minimum.

kind regards,

Asim313 commented 1 day ago

Okay i will give you feedback ASAP

Asim313 commented 1 day ago

@TruAmbition still got same issue. Can I share my build with you so you can test it on your end?

https://we.tl/t-EHFaPZoDVK

TruAmbition commented 1 day ago

@Asim313 Sure thing, give me a moment to test and get back to. However if the Unity framework already being zipped. Idk if I'll get a different result. If you want to frame out a project in Unity and send me the Unity project. I can see if I can get it to run in a fresh react project. If so, I can send that to you. Let me know. I'll do my best to replicate your build setup. I have both Intel and arm based Macs for checkout.

Asim313 commented 1 day ago

@TruAmbition I'm so happy and deeply grateful for your thoughtful response. Your dedication and effort truly stand out, and I sincerely appreciate the hard work you put into helping me.

I'm using MacBook 2019(Intel base)

Here is my orignal unity project. https://we.tl/t-uuGszyA83u

TruAmbition commented 1 day ago

@Asim313 you are more than welcome. I know exactly where you are and I've been helped by this community in such a way that I can't help but want to give back. I have the files downloaded, I'll be able to do testing and checkout later today and get you an update by tomorrow no matter what the results are.

Asim313 commented 23 hours ago

Okay no problem. Take your time 😊

TruAmbition commented 10 hours ago

Hey @Asim313, just wanted to let you know that I was able to reproduce your error after installing the necessary dependencies for the UnityView to work. I'm going to play with it more tomorrow. Been a long day so I'm pretty tired. I think I did notice in your Unity project you are missing the assets/plugins/iOS directory with all the scripts provided in the repository example directory.

I don't think that was the problem you were facing though. I just created a new Unity project with the same version and a fresh react project. I got the Unity framework imported and was able to build the react native app correctly. Things didn't turn until I started installing the rest of the dependencies. Just wanted to give you a quick update, I think it's fixable for sure, just need a good night sleep before checking again. I'll be in touch, Thank you kindly for your patience.

Asim313 commented 10 hours ago

@TruAmbition I have added the iOS plugin (including NativeCallProxy files) under the Assets/Plugins directory and generated a build for Xcode. Following that, I created the UnityFramework build as per the instructions but encountered an error.

Could you integrate the iOS plugin into the provided Unity project and complete the process for me?