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

no shared framework schemes #98

Closed
reinhardjung opened this issue Oct 25, 2018 · 13 comments
Closed

no shared framework schemes #98

reinhardjung opened this issue Oct 25, 2018 · 13 comments
Assignees
Labels

Comments

@reinhardjung
Copy link

Hi

I'm new to this and i got an Error, which i think a had somewhen before.
Could you please help me and fix this?
ERROR:
*** Skipped building TPPDF due to the error:
Dependency "TPPDF" has no shared framework schemes for any of the platforms: iOS
If you believe this to be an error, please file an issue with the maintainers at https://github.com/Techprimate/TPPDF/issues/new

THANX A LOT!!!!!
Reinhard

@marbetschar
Copy link

When the following Carthage command is executed...

$ carthage bootstrap --platform iOS

... within a project containing the following line in the Cartfile ...

github "Techprimate/TPPDF" ~> 1.1

... the following error is thrown:

*** Skipped building TPPDF due to the error:
Dependency "TPPDF" has no shared framework schemes for any of the platforms: iOS

If you believe this to be an error, please file an issue with the maintainers at https://github.com/Techprimate/TPPDF/issues/new

Any suggestions how to fix?

@marbetschar
Copy link

marbetschar commented Nov 11, 2018

FWIW: When I execute carthage update TPPDF the following error is thrown:

*** Skipped building TPPDF due to the error:
Dependency "TPPDF" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/Techprimate/TPPDF/issues/new

Please advise.

@philprime
Copy link
Member

philprime commented Nov 12, 2018

Looks like #59

EDIT: i think you have to change the scheme to be shared in the example project, which is still weird for me as what if there is no example project? Anyway, please try changing the schemes in the Example/TPPDF.xcworkspace to be shared and try again.

@marbetschar
Copy link

marbetschar commented Nov 12, 2018

@techprimate-phil don't know if we are on the same page here. To resolve the issue the suggested change should be done in the official TPPDF project and a new release should be created.

Is that what you are going to do and your suggestion is just a temporary workaround?

@philprime
Copy link
Member

Yes, there is going to be an official release, tough I am not able to inspect this issue right now, therefore I just wanted to provide a possible solution.

Would be great if you could take a look if this is a valid solution and even better create a Pull Request

@reinhardjung
Copy link
Author

Tried Work-A-Around
Shemes were already shared:
bildschirmfoto 2018-11-12 um 20 19 03
bildschirmfoto 2018-11-12 um 20 15 33

Still encountering same error. Any other Suggestions?

@marbetschar
Copy link

Same here. Schemes are all checked as "Shared", but Carthage is still complaining it can't find a shared framework scheme. Don't know what the root cause of this issue is.

I'd love to provide a pull request, but unfortunately I don't have any idea where to start. Thoughts?

FWIW: I'm using Xcode v10.1 on macOS Mojave v10.14.1. It works on my old MacBook, but refuses to work on a brand new MacBook environment where I try to setup the exact same existing project.

@marbetschar
Copy link

Tried to digg into this a bit deeper .... and failed. Created an issue @Carthage issue tracker. Hoping they can give further insights.

@philprime
Copy link
Member

I found something I need you to confirm: Please open Example/Pods/Pods.xcodeproj directly, unselect Shared for TPPDF in Schemes, and select it again. Then try carthage build --no-skip-current

A Xcode scheme is saved in the folder inside of the .xcodeproj/xcshareddata/xcschemes folder and git tells me Use -f if you really want to add them. because they are in the .gitignore file.

If this fixes the issue, I can add the folder content to git and it should be fine.

→ Please confirm!

@marbetschar
Copy link

Did as suggested ..... and party is on! 🎉🎉🎉

$ carthage build --no-skip-current
*** xcodebuild output can be found in /var/folders/w8/zwmgcwcn713d13s21t9wjwxm0000gp/T/carthage-xcodebuild.v6lwyY.log
*** Building scheme "TPPDF" in TPPDF.xcworkspace
$ 

no error is thrown; seems like this fixes the issue.

@philprime
Copy link
Member

Further investigation shows:

  • Pods.xcodeproj does not contain xcshareddata/xcschemes/TPPDF.xcscheme at checkout.
  • XCode shows a invalid checkmark at Shared even if no scheme is shared.
  • git includes the Pod.xcodeproj folder but excluded the *.xcscheme

→ Going to create a hotfix, adding the scheme

@philprime
Copy link
Member

Can anybody please try out 1.3.1 and let me know if the issue is resolved?

@marbetschar
Copy link

Works perfectly. Thank you so much!

´´´
$ carthage update TPPDF
*** Checking out TPPDF at "1.3.1"
*** xcodebuild output can be found in /var/folders/w8/zwmgcwcn713d13s21t9wjwxm0000gp/T/carthage-xcodebuild.QXBTO2.log
*** Building scheme "TPPDF" in TPPDF.xcworkspace
´´´

Going to close the issue over @Carthage.

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

No branches or pull requests

3 participants