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

Unable to build with Carthage #105

Open
gverdouw opened this issue Apr 23, 2019 · 9 comments · May be fixed by #157
Open

Unable to build with Carthage #105

gverdouw opened this issue Apr 23, 2019 · 9 comments · May be fixed by #157

Comments

@gverdouw
Copy link

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
Copy link
Author

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
Copy link
Author

gverdouw commented May 1, 2019

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

@gmarm
Copy link
Owner

gmarm commented Jun 13, 2019

Is this still an issue?

@inket
Copy link

inket commented Jun 21, 2019

Yes, it's still an issue.

@r-plus
Copy link

r-plus commented Aug 28, 2019

v1.2.1 still an issue.

@az-oolloow
Copy link

az-oolloow commented Sep 26, 2019

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 added a commit to oolloow/BetterSegmentedControl that referenced this issue Sep 26, 2019
@gmarm
Copy link
Owner

gmarm commented Oct 21, 2020

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

@gmarm gmarm closed this as completed Oct 21, 2020
@az-oolloow
Copy link

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

@gmarm
Copy link
Owner

gmarm commented Oct 21, 2020

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 gmarm reopened this Oct 21, 2020
@Daedren Daedren linked a pull request Apr 15, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

5 participants