Azure-Samples / Azure-Samples/communication-services-ui-library-react-native
Build Fail: Multiple commands produce '…/Assets.car' in iOS Builds
- Dominant language
- No language data
- Stars
- 12
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug; what happened?**
- We are facing an error on build, after adding `AzureCommunicationUICalling` to our pod target.
- Error on build
```
Prepare build
> Workspace XXXX | Scheme XXXX | Destination iPhone 16
> Multiple commands produce '/Users/USER_NAME/Library/Developer/code/DerivedData/XXXX-YYYY/Build/Products/Debug-iphonesimulator/XXXX.app/Assets.car'
Target 'XXXX' (project 'XXXX'): LinkAssetCatalog /PROJECT_ROOT_PATH/ios/XXXX/Images.xcassets /PROJECT_ROOT_PATH/ios/lmages.xcassets
That command depends on command in Target 'XXXX' (project 'XXXX'): script phase "[CP] Copy Pods Resources"
```
**What are the steps to reproduce the issue?**
- Adding at least one pod that includes resources (like images, .xib, .storyboard, etc.) to `Podfile`. Then, on `pod install` CocoaPods adds this build phase automatically to `project.pbxproj` which is visible in Project > Target > Build Phase > [CP] Copy Pods Resources, similar to the image below.
- This script is generated by CocoaPods and is required.
**What behavior did you expect?**
- Our build is failing with `AzureCommunicationUICalling`, so behavior expected is a scucessful app build.
**If applicable, provide screenshots:**
- This error only occur when we add `AzureCommunicationUICalling` to Podfile's target list.
**In what environment did you see the issue?**
- Pod Install output
```
Installing AzureCommunicationCalling (2.14.1)
Installing AzureCommunicationCommon (1.2.0)
Installing AzureCommunicationUICalling (1.13.0)
Installing AzureCore (1.0.0-beta.15)
.
.
.
Installing MicrosoftFluentUI (0.10.0)
```
- OS & Device: Apple M3 Pro, MacOS 15.3.1 on iPhone 16, iOS 18.2
- package.json
```
"react-native": "0.73.6"
"react": "18.2.0"
```
Contributor guide
Assessment
This issue has not been assessed yet.