mercredi 26 août 2015

Run Unit Test by command line - Swift Project with cocoaPods

I try execute the Unit Test from my project by command line with the next command:

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

and the console return me this:

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

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

The following build commands failed: Ld DerivedData/WaveIt/Build/Products/Debug-iphonesimulator/WaveIt.app/WaveIt normal x86_64 (1 failure)

My project include libraries with cocoaPods:

  • 'SocketRocket'
  • 'Google/Analytics'

And Alamofire (git submodule)

Somebody can explain me what is the problem?

Regards

Aucun commentaire:

Enregistrer un commentaire