themis icon indicating copy to clipboard operation
themis copied to clipboard

Getting Multiple commands produce error when building using XCode 14.3

Open NiharR27 opened this issue 2 years ago • 7 comments

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

  • iOS Simulator iPhone 14 (iOS 16.4)
  • Apple M1 Pro
  • Themis version: 0.14.11
  • React native version: 0.70.8
  • Installation way:
    • yarn add react-native-themis
    • cd ios
    • pod install
    • open xcode
    • clean build and press build
    • see the error

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

NiharR27 avatar Jun 20 '23 01:06 NiharR27

@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?

vixentael avatar Jun 20 '23 09:06 vixentael

@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

NiharR27 avatar Jun 20 '23 10:06 NiharR27

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

jonjamz avatar Aug 26 '23 12:08 jonjamz

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 avatar Aug 29 '23 14:08 jonjamz

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.

jonjamz avatar Aug 29 '23 15:08 jonjamz

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

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.