[英]Swift Xcode workspace, project unable to find a separate source code file (in Compile Sources)
I'm using Xcode 6.0.1. 我正在使用Xcode 6.0.1。
The repo can be found at https://github.com/ippoippo/thornbird You will need to create your own SpikeKeysForTesting
.swift file, using the SpikeKeysForTesting
.swift_example as a template. 可以在https://github.com/ippoippo/thornbird上找到该存储库。您将需要使用SpikeKeysForTesting
.swift_example作为模板来创建自己的SpikeKeysForTesting
.swift文件。
Anyway, the main problem I am having is that I have source file located in a directory which I was intending to use as a common source directory. 无论如何,我遇到的主要问题是我的源文件位于我打算用作公用源目录的目录中。 It's a similar technique used by Moya ( https://github.com/AshFurrow/Moya ) and also documented here : http://www.swift-studies.com/blog/2014/6/30/creating-a-pure-swift-framework-for-both-ios-and-mac 这是Moya( https://github.com/AshFurrow/Moya )所使用的类似技术,也记录在这里: http : //www.swift-studies.com/blog/2014/6/30/creating-a-pure iOS和Mac的Swift框架
However, when I try to build my ThornbirdFramework project inside the Workspace, the ThornbirdFrameworkTests class is unable to resolve the Thornbird class (as defined in ./thornbird/Thornbird.swift). 但是,当我尝试在工作区中构建ThornbirdFramework项目时,ThornbirdFrameworkTests类无法解析Thornbird类(如./thornbird/Thornbird.swift中所定义)。
Any ideas? 有任何想法吗?
重建一切,现在看来还可以。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.