OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.56k stars 369 forks source link

[question]: Multiple commands produce [...] #1485

Open rum-n opened 1 year ago

rum-n commented 1 year ago

How can we help?

I've been getting the error:

Multiple commands produce '[path]/Build/Products/Debug-iphonesimulator/project.app/Frameworks/OneSignalOutcomes.framework'

and

Multiple commands produce '[path]/Build/Products/Debug-iphonesimulator/project.app/Frameworks/OneSignalCore.framework'

Does anyone know how to solve this?

Code of Conduct

NikitaNS commented 1 year ago

Have the same problem. RN: 0.71.1, React: 18.2.0, OneSignal: 4.5.0

PatrickBokhove commented 1 year ago

I was running in to the same issue, and here is how i solved it:

In the Build Phases tab of your main target is a section called Embed Frameworks. This section includes OneSignalCore.xcframework and OneSignalOutcomes.xcframework. However, these files probably also get embedded in the Embed Pods Frameworks section. After deleting the files from the Embed Frameworks section, my app built just fine again. In the General tab of your main target, there's a section called Frameworks, Libraries, and Embedded Content. After removing the frameworks from Embed Frameworks these should now be labeled as Do Not Embed.

Scherm­afbeelding 2023-02-15 om 13 26 02 Scherm­afbeelding 2023-02-15 om 15 49 44
BogdanRad commented 1 year ago

Hello, I have same error only for M1. On intel it's working perfectly... The solution from @PatrickBokhove it's working. Thank you!

hoseinfo commented 1 year ago

same issue here...

indapublic commented 1 year ago

Lock on 4.5.0 version works for me (after that you need to force reinstall package and pods)

"react-native-onesignal": "4.5.0"
TiagoAndreAlmeida commented 8 months ago

I still getting this erro... trying everything but no success....

HamzaBakaran commented 6 months ago

I faced the same issue today, tried all the steps, and it is not working. Has anyone found (another) solution?

phuocantd commented 4 months ago

same here

quachdev commented 3 days ago

Same here as well - running into this issue now when trying to install react native firebase. I assume it's something to do with the usage of use_frameworks!.

@PatrickBokhove comment doesn't look to be relevant for OneSignal v4.5.3. The embed frameworks section is empty now.