Closed msalmanST closed 7 years ago
If you declare your test target inside the main target, like this:
platform :ios, '8.0'
swift_version = "3.0"
target 'whatsbeef' do
pod 'Cache'
pod 'FieryCrucible'
pod 'Hex'
pod 'NanoFrame'
pod "PromiseKit", "~> 4.0"
pod 'R.swift'
pod 'SwiftyJSON'
target 'whatsbeefTests' do
# Test Dependencies
end
end
inhibit_all_warnings!
use_frameworks!
. . .then all should be well. Let us know.
@jasperblues Thanks for your reply, that didn't help me, let me simplify my problem, I believe that if I solve my below problem then unit test target will also starts working.
As my project is a mix of objc+swift so I am importing Typhoon.h in my bridging header file, not sure if that is creating some issues.
@jasperblues So I have finally solved the issue, after searching for the possible reason of this issue I cam across this post comment and it gives me some idea of what I could have been doing wrong.
So in my bridging header file I was importing the typhoon as below.
#import "Typhoon.h"
I have change above to
#import <Typhoon/Typhoon.h>
I am not sure if this can be fixed at your side but I have solved this issue on my end :)
Thanks again :)
I'd forgotten about that. Thanks a lot for sharing your experience - noted.
Hi,
I am facing a weird issue while using typhoon. If I delete the Derived Data folder and then try to compile the code then I get the some duplication error same as mentioned here and in below image ,
Now if I clean the project and compile again then errors went away, it is fine till I am using the Xcode to run the project but not with command line, this is causing real problem for me when trying to run the unit tests from the command line, first command fails because of above errors and if I run the same command with clean then it run successfully.
Not sure what the issue is, below is the structure of my pod file,
I am using below command to run the test,
And below is the error I received from command line
Please let me know if I am missing something. Thanks in advance.