Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Carthage: no shared framework schemes for iOS platform (for my own framework)

Tags:

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?

like image 575
tng Avatar asked Jan 28 '16 07:01

tng


2 Answers

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.

like image 78
tng Avatar answered Nov 04 '22 09:11

tng


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"

like image 42
niks Avatar answered Nov 04 '22 07:11

niks