简体   繁体   English

Swift Xcode工作区,项目无法找到单独的源代码文件(在“编译源代码”中)

[英]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.

相关问题 将目标代码从Xcode项目导出为单独的项目 - Export a target's source code from Xcode project as a separate project Xcode 12 代码审查编辑器无法打开,因为它无法在源代码管理中找到文件 - Xcode 12 code review editor fails to open because it's unable to find the file in source control 将项目源代码从Swift 2.2 XCode 7.3.1迁移到Swift 3 XCode 8的推荐方法? - Recommended way to migrate project source code from swift 2.2 XCode 7.3.1 to swift 3 XCode 8? 有没有办法将 Nativescript 项目编译成 Swift/XCode 项目? - Is there anyway to compile a Nativescript project into a Swift/XCode Project? 奇怪的Swift 2错误,源代码在单独的文件中时崩溃 - Strange Swift 2 Bug, Crash when source code is in separate file XCode 8无法编译适用于Xcode 9的Swift 3代码 - XCode 8 failing to compile Swift 3 code that works on Xcode 9 使用 Xcode 13 构建项目时出现“编译 swift 源文件 (arm64)”错误 - Error 'compile swift source files (arm64)' when building project with Xcode 13 为什么我的Xcode项目仅在工作空间中时才编译? - Why does my Xcode project compile only when it's in a workspace? XCode项目:我们应该将源代码放在单独的文件夹中以达到有意义的目的 - XCode Project: should we put source code in separate folders for meaningful purpose 使用Apportable进行编译时找不到Xcode项目文件 - Unable to find Xcode project file while Compiling with Apportable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM