Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ReSwift-ThunkTests/ExpectThunk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import XCTest
import ReSwift
import ReSwiftThunk

public class ExpectThunk<State: StateType> {
public typealias DispatchAssertion = (Action) -> Void
Expand Down
29 changes: 0 additions & 29 deletions ReSwiftExpectThunk.podspec

This file was deleted.

14 changes: 13 additions & 1 deletion ReSwiftThunk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ Pod::Spec.new do |spec|
spec.source = {
:git => "https://github.com/ReSwift/ReSwift-Thunk.git",
:tag => spec.version.to_s }
spec.source_files = "ReSwift-Thunk"

spec.subspec "Core" do |sp|
sp.source_files = "ReSwift-Thunk"
end

spec.subspec "ExpectThunk" do |sp|
sp.dependency "ReSwiftThunk/Core"
Copy link
Member

@mjarvis mjarvis Apr 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you remove this dependency, perhaps the inherited podfile example will work? I think it might be double-importing Core when inherit is included in the test target pod specifications.

Edit: Though, really, cocoapods dependency stuff should really handle this automatically...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thought, however, I wasn't able to get it to build this way. I'm attempting with CocoaPods 1.6.1. It may be an open issue with CocoaPods 7195 having child targets with subspecs. I'll follow up there, it does seem splitting the targets is the workaround in the Podfile at the moment.

sp.pod_target_xcconfig = { "ENABLE_BITCODE" => "NO" }
sp.framework = "XCTest"
sp.source_files = "ReSwift-ThunkTests/ExpectThunk.swift"
end

spec.default_subspec = "Core"

spec.dependency "ReSwift", "~> 4.0"
end