Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Exclude Tests in Package.swift #137

Merged
merged 1 commit into from
Nov 4, 2016

Conversation

michallaskowski
Copy link

Problem - With Xcode 8.1 and Swift 3.0.1 toolchain (afair 3.0.0 also) it is impossible to build the project as a dependency because of Tests folder.
Getting error message:

Cloning https://github.com/JohnSundell/Unbox.git
HEAD is now at a0f1fd8 Merge pull request #134 from JohnSundell/2.2.0
Resolved version: 2.2.0
error: the package has an unsupported layout, unexpected source file(s) found: /Users/laskowski/test-project/Packages/Unbox-2.2.0/Tests/UnboxTests.swift
fix: move the file(s) inside a module

Fix - added Tests folder to exclude

Please create a new tag if possible, so this change will be visible via SPM.

@JohnSundell
Copy link
Owner

Hey @michallaskowski - thanks for this! 👍 Seems a bit strange that we need to manually exclude the tests, as the Swift package manager should know that what's located in the /Tests folder are tests. But will merge this for now to unblock using Unbox with the SPM, will release a new version later tonight 🙂

@JohnSundell JohnSundell merged commit ac69e55 into JohnSundell:master Nov 4, 2016
@JohnSundell
Copy link
Owner

@michallaskowski
Copy link
Author

@JohnSundell Awesome 👍 thanks a lot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants