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

Multiple commands produce #109

Open
MuratDemirel opened this issue Mar 26, 2024 · 5 comments
Open

Multiple commands produce #109

MuratDemirel opened this issue Mar 26, 2024 · 5 comments

Comments

@MuratDemirel
Copy link

I need to add a Unity project to my own project using @azesmway/react-native-unity. Source project using @azesmway/react-native-unity@0.3.0
To do this, I copied the Unity folder into my project, installed the @azesmway/react-native-unity package using yarn, and installed the pods. When I tried to run my project in Xcode, I encountered 56 errors. All of them are related to repeated copying in the headers section of the react-native-unity pod. Some of the files are as follows:

Allocator.h
Array.h
Assemply.h
AssemplyName.h
Assert.h
Atomic.h
COM.h
ConditionVariable.h
Debugger.h
Encoding.h
Enum.h
Environment.h
Error.h
Event.h
EventImpl.h
Exception.h
FastReaderReaderWriterLockImpl.h

Screen Shot 2024-03-26 at 23 23 09 PM
Screen Shot 2024-03-26 at 23 23 36 PM

@azesmway
Copy link
Owner

You need to completely remove everything that relates to Unity in XCode and only then install a new one according to the instructions

@MuratDemirel
Copy link
Author

I've created a brand new react native project and did everything in the instructions step by step. Multiple commands errors fixed but now have i another errors.

Screenshot 2024-03-28 at 03 22 02

@azesmway
Copy link
Owner

all errors on the screenshot refer only to Unity - the plugin does not use such errors

@jannisringwald
Copy link

@MuratDemirel how did you fixed it?

@markrickert
Copy link

Just wanted to chime in here after I ran across this exact same error. The solution is to delete and extra Headers folder that might be in your ./unity/builds/ios/ folder. In my case i had a Headers folder that contained the exact same files as my ./unity/builds/ios/Unityframework.framework/Headers/* folder.

Deleting the duplicated header files fixed this issue for me. The ONLY thing in the unity/builds/ios folder should be the UnityFramework.framework folder.

Opening the project and selecting the pods project and then the react-native-unity pod, selecting "Build Phases" and then Headers->Public showed the extra header entries:

Before After
Screenshot 2024-09-06 at 1 37 32 PM Screenshot 2024-09-06 at 1 55 48 PM

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

4 participants