26

I create a framework (called ProjectOne) built and tested it. I want to allow this framework to be used in Carthage. I edited my scheme and made the default "ProjectOne" scheme shared in XCODE. I did a carthage build and verified that the framework was build in Carthage/Build/iOS.

I then push to github and and create a release.

In another project, I'm using this framework. But, carthage reports "Dependency ProjectOne has no shared framework schemes for any of the platforms: iOS".

I'm pretty sure I shared the scheme in ProjectOne - does anyone know why this is happening?

5 Answers 5

49

The folks at Carthage helped me discover the issue - Xcode was not adding the schemes to git. Make sure that .xcodeproj/xcshareddata/xcschemes is added and pushed to github.

6
  • 7
    My scheme is Shared and is pushed to git, but unfortunately I still get the same error...
    – jowie
    Mar 10, 2016 at 17:05
  • I'm not sure about your situation @jowie but when I hit this issue, I thought my Shared scheme was pushed to git but it wasn't. I would look at your repo and see what is in .xcodeproj.
    – tng
    Mar 13, 2016 at 0:15
  • 1
    Yeah @tng it turned out it wasn't synchronising git properly. Thanks!
    – jowie
    Mar 14, 2016 at 9:01
  • I used the following command and it worked: git add -A <ProjectName>.xcodeproj/
    – zirinisp
    Sep 27, 2016 at 12:05
  • 10
    For those not seeing the xcshareddata folder within the project folder, a bug in Xcode currently exists where it won't be created until you go to Edit Schemes and untick and tick "Shared" at the bottom centre. It seems to be a bug that despite it being ticked it needs a reminder to create the folder.
    – Carl
    Mar 11, 2019 at 16:08
6

In my case the issue was due the way I've included repo url in my cartfile. I changed it from:

github "https://...UICore.git" == 1.0.0

to

git "https://... UICore.git" "master"

1
  • This was also the case for me too, making sure the format is: git "githuburl.git" "branch" Mar 23, 2022 at 17:19
3

Click on Manage Schemes, and then un-flag and re-flag the “Shared” voice near "YourFramework". Go to terminal and now :

carthage build --no-skip-current
1
  • 1
    Too late to answer, but I have a hope, it would help others.
    – MohanRaj S
    Apr 9, 2021 at 9:23
2

For me this was missing. I played around with scheme and pushed to GitHub PiAnimation.xcodeproj/xcshareddata/xcschemes/PiAnimation.xcscheme

0

For me the problem was new version of Xcode. I've build project in newer Xcode version, but command line tool has been set to previous. To change it you should open Xcode -> Preferences -> Locations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.