Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Getting bunch of errors while integrating unity as library into ios native project, in which both unity and native project contains Firebase libraries. #35

Open
vishnunairvp opened this issue Nov 22, 2021 · 0 comments

Comments

@vishnunairvp
Copy link

vishnunairvp commented Nov 22, 2021

I have an iOS native project and a Unity project.

What i am trying to achieve? - On a button click from the native ios app, i want to show unity in which both the native and ios project contains firebase dependencies.
What i am actually getting? - When i try to run the app in xcode, i am getting following errors (almost 4000 similar error but for different Targets):
"Multiple commands produce '/Users/M_742794/Library/Developer/Xcode/DerivedData/MarkersLab-gpaeablwazuyowbfwysavwxcotrv/Build/Products/Debug-iphoneos/BoringSSL-GRPC/openssl_grpc.framework/Headers/cipher.h':

Target 'BoringSSL-GRPC' (project 'Pods') has copy command from '/Users/M_742794/Developer/iOS/Development/iOS AR Build/Pods/BoringSSL-GRPC/src/include/openssl/cipher.h' to '/Users/M_742794/Library/Developer/Xcode/DerivedData/MarkersLab-gpaeablwazuyowbfwysavwxcotrv/Build/Products/Debug-iphoneos/BoringSSL-GRPC/openssl_grpc.framework/Headers/cipher.h'
Target 'BoringSSL-GRPC' (project 'Pods') has copy command from '/Users/M_742794/Developer/iOS/Development/unity-AR-Build/Pods/BoringSSL-GRPC/src/include/openssl/cipher.h' to '/Users/M_742794/Library/Developer/Xcode/DerivedData/MarkersLab-gpaeablwazuyowbfwysavwxcotrv/Build/Products/Debug-iphoneos/BoringSSL-GRPC/openssl_grpc.framework/Headers/cipher.h'"
Steps i followed for unity integration to my native project -

imported Firebase libraries like Auth, storage, firestore, core in unity and created an iOS build.
Podfile has been generated after the build and i installed the firebase pods.
I have added the Unity-iPhone.xcodeproj along with its Pods.xcodeproj to my native project workspace with the project structure as below(masked is my native xcodeproj): Screenshot 2021-11-22 at 2 10 07 PM

  1. followed the steps mentioned in this uaal link https://github.com/Unity-Technologies/uaal-example/blob/master/docs/ios.md properly like: 1. Added UnityFramework.framework to the native app general settings framework, libraries and embedded content and removed the same from Build phases Link binary with libraries section. 2. Added Unity-iPhone.xcodeproj's Data folder target membership to UnityFramework. 3. Added Unity-iPhone.xcodeproj's NativeCallProxy file target membership to UnityFramework with public access. 4. made code changes in native project to show unity on button click.
    I have firebase dependencies in my native xcode project as well as unity xcode project and the podfiles are as below:

Unity Xcode project Podfile: Screenshot 2021-11-22 at 2 22 36 PM

Native Xcode project Podfile: Screenshot 2021-11-22 at 2 23 02 PM

I have installed the pods for both the projects and started building in xcode.

The build is failing with number of "Multiple commands produce" errors: Error

The errors might be causing due to firebase dependency in both native and unity projects but could not find proper solution for this issue.
I am expecting solutions from this group for my problem, Thanks!

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

No branches or pull requests

1 participant