Run Unit Test at the command line - Swift Project with cocoaPods

I am trying to run Unit Test from my project using the following command:

xcodebuild test -scheme 'WaveIt' -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4'

But I will return this:

ld: library not found for -lSocketRocket clang: error: linker command failed with exit code 1 (use -v to see the call)

Testing failed: Linker command exited with exit code 1 (use -v to see the invocation) ** TEST FAULT **

The following build commands could not be executed: Ld DerivedData / WaveIt / assemblies / Products / Debug-iphonesimulator / WaveIt.app / WaveIt normal x86_64 (1 failure)

My project includes libraries with cocoaPods:

  • 'SocketRocket'
  • "Google / Analytics

And Alamofire (git submodule)

Can anyone tell me what the problem is?

Hi

+4
1

xcodebuild.

xcodebuild test -workspace 'WaveIt.workspace' -scheme 'WaveIt' -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4'
+4

All Articles