Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't assign xcassets to the main target on Xcode 11 #143

Open
4taras4 opened this issue Sep 3, 2021 · 1 comment
Open

Can't assign xcassets to the main target on Xcode 11 #143

4taras4 opened this issue Sep 3, 2021 · 1 comment

Comments

@4taras4
Copy link

4taras4 commented Sep 3, 2021

Overview

error: Multiple commands produce '/Users/user/Library/Developer/Xcode/DerivedData/project-enjiypsgxtcdbnaripixgtnjlagx/Build/Products/Debug-iphonesimulator/project.app/Assets.car':

  1. Target 'project' (project 'project') has compile command with input '/Users/user/sandbox/project/Resources/buttons.xcassets'
  2. That command depends on command in Target 'project' (project 'project'): script phase “[CP] Copy Pods Resources”

Details

Have the Pod-author fix the Pod. Instead of resources s/he shall use resources_bundle as the Podspec documentation also strongly recommends. Using resources actually has other disadvantages (resource files are not optimized, name conflicts can arise between different Pods), whereas using a resource bundle is safe, regardless if Pods are embedded as static libraries or as dynamic frameworks. Note, though, that it is not enough to just alter the Podspec, all code that loads bundle resources must be adopted to load them from the correct bundle (the name will be known as when using resources_bundle in a Podspec file, you also must give the bundle(s) a name).

Please update your podspec to use resources_bundle instead of resources

Reproduce version

Xcode 12.4

@EgorVeremeychik
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants