SwiftyTeeth icon indicating copy to clipboard operation
SwiftyTeeth copied to clipboard

Multiple commands produce

Open albetoetecnia opened this issue 3 years ago • 6 comments

Hi! I'm trying to install SwiftyTeeth with cocoapods, but I'm getting this error

Multiple commands produce '/Users/alberto/Library/Developer/Xcode/DerivedData/pojectgeqszbdarvc/Build/Products/Debug-iphoneos/SwiftyTeeth/SwiftyTeeth.framework/Info.plist':

  1. Target 'SwiftyTeeth' (project 'Pods') has copy command from '/Users/alberto/iOSProjects/poject/Pods/SwiftyTeeth/Sources/SwiftyTeeth/Info.plist' to '/Users/alberto/Library/Developer/Xcode/DerivedData/poject-etfmijecltbkztdcfmuqszbdarvc/Build/Products/Debug-iphoneos/SwiftyTeeth/SwiftyTeeth.framework/Info.plist'
  2. Target 'SwiftyTeeth' (project 'Pods') has copy command from '/Users/alberto/iOSProjects/poject/Pods/SwiftyTeeth/Sources/SwiftyTooth/Info.plist' to '/Users/alberto/Library/Developer/Xcode/DerivedData/poject-etfmijecltbkztdcfmuqszbdarvc/Build/Products/Debug-iphoneos/SwiftyTeeth/SwiftyTeeth.framework/Info.plist'
  3. Target 'SwiftyTeeth' (project 'Pods') has process command with output '/Users/alberto/Library/Developer/Xcode/DerivedData/poject-etfmijecltbkztdcfmuqszbdarvc/Build/Products/Debug-iphoneos/SwiftyTeeth/SwiftyTeeth.framework/Info.plist'

Xcode version: Version 12.5 (12E262) Any idea or solution?

Thanks!

albetoetecnia avatar Jun 04 '21 07:06 albetoetecnia

Hi @albetoetecnia

Actually pods haven't been supported for a long time - I've been using SPM and (previously) Carthage only.

In fact, I thought I had removed pods entirely, but it looks like I hadn't.

I'll take a quick look this weekend and see if I can make a stable Pod version to lock in at. My guess is that multiple Info.plists are being pulled in from a previous refactoring.

sureshjoshi avatar Jun 04 '21 14:06 sureshjoshi

Thank you for your quick response

I finally tried to drag the SwiftyTeetch.framework into my project. But at compile time I got an error as well. It said xcode couldn't find the SwiftyTeeth.framework file in the directory.

After trying this, I simply dragged the necessary files (the Common, Extensions and SwiftyTeeth folders) from the master project into my project. It seems to work this way and I can access the SwiftyTeeth functionality.

If you check cocoapods would be great, I'm looking forward to it. In the SwiftyTeeth documentation it says the following:

Download
CocoaPods
Currently, you can use the master or develop branches and git directly until the API has stabilized.

platform :ios, '9.0'.
use_frameworks!

pod 'SwiftyTeeth', :git => 'https://github.com/RobotPajamas/SwiftyTeeth.git', :branch => 'master'.
Carthage
Instructions coming soon.

That's why I used Cocoapods.

Best regards

albetoetecnia avatar Jun 04 '21 16:06 albetoetecnia

Unfortunately, the Readme is wayyyyyyyyyyy out of date. I use this library in many projects, but unfortunately, I'm not great at keeping documentation up to date.

sureshjoshi avatar Jun 04 '21 16:06 sureshjoshi

Ok!

don't worry! the lib is great, thank you very very much !!

albetoetecnia avatar Jun 04 '21 16:06 albetoetecnia

@albetoetecnia It's literally been years since I used CocoaPods, since I moved to Carthage, then to SPM - but can you try out: https://github.com/RobotPajamas/SwiftyTeeth/tree/feature/53-podfile

It passes the spec lint now - but there may be a signing issue.

Just a heads up that if this works for you, I'll probably pick a version and freeze support for Pods (and maybe even Carthage). But that'll probably be a 1.0.0 thing.

sureshjoshi avatar Jun 06 '21 15:06 sureshjoshi

(and 1.0.0 won't come out until I have full automation tests, including testing pods and carthage pulls)

sureshjoshi avatar Jun 06 '21 15:06 sureshjoshi