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

This issue has been created since 2021-11-22.

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':

  1. 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'
  2. 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 -

  1. imported Firebase libraries like Auth, storage, firestore, core in unity and created an iOS build.
  2. Podfile has been generated after the build and i installed the firebase pods.
  3. 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

4. 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.
  1. 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

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

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

  4. 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!

vishnunairvp wrote this answer on 2021-11-23

Try deleting your derived data!

https://programmingwithswift.com/delete-derived-data-xcode/

I tried deleting derived data but it didnt solved the problem.

vishnunairvp wrote this answer on 2021-12-01

To people who face the same issue, keep only a single podfile with multiple targets (native xcode project and unity xcode project). Refer the link for example https://stackoverflow.com/a/42480097/11061458 .

More Details About Repo
Owner Name Unity-Technologies
Repo Name uaal-example
Full Name Unity-Technologies/uaal-example
Language Objective-C++
Created Date 2019-10-22
Updated Date 2022-08-04
Star Count 458
Watcher Count 482
Fork Count 152
Issue Count 39

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
GraphQL query list of orders by order id (# of order ids are variable / dynamic) 0 2022-04-20 2022-08-05
Duplicates in NFT.trades for bundled trades 0 2022-05-20 2022-05-28
[Bug] Inline code autoformats code between underscores 8 2021-11-09 2022-07-30
Event Espresso 4.12 coffee Icon and Item displayed on Dashboard menu after a page refresh. 2 2022-04-28 2022-08-02
Improvement 6.streaming_pipelines example 2 2022-01-04 2022-05-26
User experience when scroll down 2 2022-04-01 2022-07-28
docker run error: zeroconf.NoneUniqueNameException 2 2021-04-16 2022-08-11
Avro schema evolution not working with Union type and null default 1 2022-03-28 2022-07-26
purge unused i18n string_keys 0 2022-05-17 2022-07-22
Transformer plugin doesnt automap array types 6 2022-07-01 2022-08-01
Works incorrectly when a line is too long and is split into multiple lines 2 2022-02-24 2022-08-02
build errors with GHC-7.4 2 2021-10-30 2022-07-14
Project Status - Is this abandoned? 0 2022-07-22 2022-07-31
Block explorer shows a failed contract handle tx as valid 0 2021-08-04 2022-07-20
Add progress bar icon set 0 2022-07-01 2022-07-31
New argument to complement _ignore_errors to continue op commands on error 4 2022-05-17 2022-07-28
Feature Request: Custom HTTP client 3 2020-08-15 2022-07-31
Remote Extension Install Pulls Wrong Architechture 0 2021-09-28 2022-07-31
FileField url in admin panel is not correct 0 2021-12-27 2022-08-04
Allow import of generated `_pb2.py` 4 2021-08-18 2022-07-17
How to assign Tab key as shortcut? 1 2021-03-16 2022-07-08
Using the LALR file cache on Python 2.7 fails with "unbound method exists() must be called with FS instance as first argument (got str instance instead)" 8 2021-08-29 2022-07-04
God of war ascension weird white lines on edges of wet surfaces 3 2022-04-04 2022-08-11
Consider suggesting a theme other than Plata 0 2021-06-14 2022-07-01
Avoid early stopping while fitting 1 2021-07-23 2022-08-08
Display list of features on homepage ('Why use AntennaPod') 2 2021-10-03 2022-07-05
Error: "pcre2_set_depth_limit" redefined 5 2022-06-23 2022-07-25
Missing fdivrp instruction with inline assembly 7 2021-11-07 2022-07-30
StatsPlots is looking for a new maintainer 9 2021-07-05 2022-07-30
unexpected result of windowFunnel function with strict_deduplication option 2 2022-05-13 2022-08-04
Add a pre-build testing phase 0 2021-09-20 2022-07-23
DEBUG The error could be: `Undefined control sequence.` tex_file_writing.py:94 2 2021-11-17 2022-07-20
Please update Bouncy Castle 1 2020-12-31 2022-07-24
sagemaker role errors 3 2020-03-27 2022-08-10
Issue with sending to M365 groups, Distribution groups or Security groups feature 8 2022-02-22 2022-07-31
www.erotikfilmsitesi1.com 0 2022-04-07 2022-08-11
Upgrade react-native create-react-native-library 3 2022-03-11 2022-08-02
Hyper-parameter in pretraining 2 2021-09-04 2022-08-01
Existing sqlite is not working 1 2022-05-03 2022-07-27
Invalid option "jsx" due to old esbuild version. 2 2021-08-01 2022-08-05
Script missing after phase 1 2 2022-06-03 2022-08-01
TagBot trigger issue 22 2020-11-29 2022-08-10
ESP-IDF v4.4.2 release not available, VSCode extension can't install ESP-IDF, Online installer fails (IDFGH-7999) 5 2022-08-06 2022-08-05
Error while training [Message type "caffe.SolverParameter" has no field named "eval_type"] 0 2021-08-11 2022-08-10
Uncaught exception: 'java.project.listSourcePaths' already exists 2 2022-02-23 2022-07-20
[MNT]: Idea to accelerate docs contributions with `Build changes only docs`. 1 2022-05-02 2022-08-03
datastore: Previous value is returned for overwritten key when dst not zero-valued 0 2022-03-15 2022-08-10
[CoE Starter Kit - BUG] Struggling to use Theming Solution 2 2022-07-18 2022-07-27
android linting keeps failing on Bluetooth permission 7 2019-12-12 2022-07-24
[4.0.0] - LDAP - broadcast channel does not have any members after the upgrade to 4.0.0 6 2021-10-04 2022-07-10