BetterSegmentedControl icon indicating copy to clipboard operation
BetterSegmentedControl copied to clipboard

Unable to build with Carthage

Open gverdouw opened this issue 5 years ago • 9 comments

Hi,

With the latest version (1.1) I am running in to issues building the project with Carthage.

"error: Build input file cannot be found: '/path/to/xcodeprojectdir/Carthage/Checkouts/BetterSegmentedControl/Example/Pods/Target Support Files/BetterSegmentedControl/BetterSegmentedControl-Info.plist'"

The only .plist file in that directory is "Info.plist" so I guess that needs to be updated somewhere. (Perhaps this is the Xcode migration tool breaking something?)

Thanks, Geoff

gverdouw avatar Apr 23 '19 00:04 gverdouw

I edited the references to Target Support Files/BetterSegmentedControl/BetterSegmentedControl-Info.plist in /Example/Pods/Pods.xcodeproj/project.pbxproj to be Info.plist and that seems to fix it

gverdouw avatar Apr 23 '19 00:04 gverdouw

So I think what has happened is that the Info.plist has changed, but because Pods/* is gitignored the new one BetterSegmentedControl-Info.plist isn't being added (whereas the Info.plist perhaps outlives the gitignore rule and so is still included?) so when Carthage tries to build it isn't there

gverdouw avatar May 01 '19 03:05 gverdouw

Is this still an issue?

gmarm avatar Jun 13 '19 11:06 gmarm

Yes, it's still an issue.

inket avatar Jun 21 '19 00:06 inket

v1.2.1 still an issue.

r-plus avatar Aug 28 '19 15:08 r-plus

This is still an issue even now :(

I made a fork and implemented @gverdouw's solution and that allowed Carthage to build the scheme.

az-oolloow avatar Sep 26 '19 02:09 az-oolloow

Support for Carthage has been removed for now due to issues with Xcode 12.

gmarm avatar Oct 21 '20 11:10 gmarm

@gmarm FWIW our fork from Sep 2019 builds just fine with Carthage on Xcode 12 targeting iOS 14

az-oolloow avatar Oct 21 '20 11:10 az-oolloow

Could you please open a PR for this? I was struggling yesterday and although the scheme was shared and commited to git, carthage build --no-skip-current was failing with Dependency has no shared framework schemes.

gmarm avatar Oct 21 '20 11:10 gmarm