razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
122 stars 107 forks source link

[Xcode 13] 'Multiple commands produce' error when building with new Xcode build system #358

Open 0x1bitcrack3r opened 2 years ago

0x1bitcrack3r commented 2 years ago

Description

Xcode 13 failed to build due to following error

Multiple commands produce '/MyProject/ios/build/Debug-iphonesimulator/starscream.app/Frameworks/Razorpay.framework': 1) Target 'MyProject' has copy command from '/MyProject/node_modules/react-native-razorpay/ios/Razorpay.framework' to '/MyProject/ios/build/Debug-iphonesimulator/starscream.app/Frameworks/Razorpay.framework' 2) That command depends on command in Target 'MyProject': script phase “[CP] Embed Pods Frameworks”

Razorpay Package Version : 2.1.33

Xcode Version (iOS) : 13

Razorpay-pod version (iOS) : 1.1.4

What you did: I have tried building the project with New build system in Xcode 13 since Xcode 13 is not supporting the legacy build systems.

What happened: The build failed with the following error Multiple commands produce '/MyProject/ios/build/Debug-iphonesimulator/starscream.app/Frameworks/Razorpay.framework'

Code example, screenshot, or link to a repository:

Please provide a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

devanshsadhotra25 commented 2 years ago

facing the same , +1

masnoonmulla commented 2 years ago

same issue please reply if you find any solutions

Screenshot 2021-12-18 at 12 10 42 PM