xcode Carthage:iOS 平台没有共享框架方案(针对我自己的框架)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35054788/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Carthage: no shared framework schemes for iOS platform (for my own framework)
提问by tng
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 buildand verified that the framework was build in Carthage/Build/iOS.
我创建了一个框架(称为 ProjectOne)并对其进行了测试。我想允许这个框架在Carthage
. 我编辑了我的方案并"ProjectOne"
在XCODE
. 我做了一个carthage 构建并验证了该框架是在Carthage/Build/iOS 中构建的。
I then push to githuband and create a release.
然后我推送到 github并创建一个版本。
In another project, I'm using this framework. But, carthage reports"Dependency ProjectOne has no shared framework schemes for any of the platforms: iOS".
在另一个项目中,我正在使用这个框架。但是,carthage 报告“Dependency ProjectOne 没有适用于任何平台的共享框架方案:iOS”。
I'm pretty sure I shared the scheme in ProjectOne - does anyone know why this is happening?
我很确定我在 ProjectOne 中分享了这个方案——有谁知道为什么会这样?
回答by tng
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.
Carthage 的人帮我发现了这个问题——Xcode 没有将这些方案添加到 git 中。确保.xcodeproj/xcshareddata/xcschemes
已添加并推送到 github。
回答by niks
In my case the issue was due the way I've included repo url in my cartfile. I changed it from:
在我的情况下,问题是由于我在购物车文件中包含 repo url 的方式造成的。我把它从:
github "https://...UICore.git" == 1.0.0
github " https://...UICore.git" == 1.0.0
to
到
git "https://... UICore.git" "master"
git "https://... UICore.git" "master"
回答by Arek
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.
对我来说,问题是新版本的 Xcode。我已经在较新的 Xcode 版本中构建项目,但命令行工具已设置为以前的。要更改它,您应该打开 Xcode -> Preferences -> Locations。
回答by Wasim
For me this was missing. I played around with scheme and pushed to GitHub PiAnimation.xcodeproj/xcshareddata/xcschemes/PiAnimation.xcscheme
对我来说,这是缺失的。我玩弄了计划并推送到 GitHubPiAnimation.xcodeproj/xcshareddata/xcschemes/PiAnimation.xcscheme