cossacklabs / themis

Easy to use cryptographic framework for data protection: secure messaging with forward secrecy and secure data storage. Has unified APIs across 14 platforms.
https://www.cossacklabs.com/themis
Apache License 2.0
1.85k stars 143 forks source link

Getting Multiple commands produce error when building using XCode 14.3 #1009

Open NiharR27 opened 1 year ago

NiharR27 commented 1 year ago

Describe the bug trying to implement Themis on my react native app with below environment is causing the build to fail immediately as soon as I press Build on XCode

To Reproduce Steps to reproduce the behavior:

  1. Use 'react-native-themis: 0.14.11' with the environment specified below (and the xcode version)
  2. Click Build
  3. See the following error:
    error:
    Multiple commands produce '/Users/nihar/Library/Developer/Xcode/DerivedData/ConpagoResponsive-bteuwcmkzpfhhjfkpiwawcanldzt/Build/Products/Debug-iphonesimulator/react-native-themis/react_native_themis.framework/Headers/scell.h'

Expected behavior It fails straight away with the above error (rather than building successfully)

Environment (please complete the following information):

Additional context Add any other relevant context for the problem here. Share an example project, if you can.

Screenshot 2023-06-20 at 11 14 50 am

vixentael commented 1 year ago

@NiharR27 could you please share an empty test project that reproduces this error?

Because we have a react native example that was working fine: https://github.com/cossacklabs/themis/tree/master/docs/examples/react-native

Another option would be to try our react native example to see if it's working?

NiharR27 commented 1 year ago

@NiharR27 could you please share an empty test project that reproduces this error?

Because we have a react native example that was working fine:

https://github.com/cossacklabs/themis/tree/master/docs/examples/react-native

Another option would be to try our react native example to see if it's working?

Thanks will do once I get to work tomorrow

jonjamz commented 1 year ago

I'm experiencing the same issue, using Expo SDK 49 with the managed workflow.

jonjamz commented 1 year ago

I'm still not able to build my app with react-native-themis. I tried creating a build plugin to remove duplicate files, but it didn't fully solve the problem. I ended up following the documentation closely and building a similar API manually using react-native-quick-crypto, with the intention of swapping out the insides when I can one day use this package.

I wanted to contribute to the solution here by providing a repro, but it seemed that I did not have the problem with a fresh Expo project with react-native-themis installed. My actual app is quite large, so to start from scratch and progress through until I track down the problem is not an option at this time.

This is the only package I've experienced this kind of error with, so I hope you can identify the issue and fix it soon. I would love to use this.

jonjamz commented 1 year ago

I'm experiencing the same issue, using Expo SDK 49 with the managed workflow.

Just to note that although I'm using the managed workflow, I'm using custom development clients.

johnny-mcfadden-dailypay commented 11 months ago

Also getting this issue on a managed expo project when changing useFrameworks to static.

johnny-mcfadden-dailypay commented 8 months ago

For anyone else, for me this was in a managed expo app and was the result of adding static frameworks for firebase packages. To resolve this, instead of globally using static frameworks for all ios pods, I created an expo plugin to only use static frameworks for any firebase packages.