I was trying to automate the screenshots of my app in order to send them to the itunes connect, but I got stuck in test target build, which is not directly related. I choose to use the fantastic tool Snapshot that is part of the Fastlane toolbox. It can take the screenshots in an automatic way using the UITest introduced in XCode 7. It is definitely not easy to configure, but it can save a lot of time on the long run, especially if you support many languages.
Well, the problem is that the snapshot tool runs the regular test before running the uitest and here is where the error happened.
When the error happened I run only the test target and this was the result:
Error = Missing required module ‘Firebase’
Due to the combination of factors it just doesn’t build the test target. The combination is:
- Firebase library
The Google Firebase does something special in the include and library paths so the Cocoapods is not able to inherit the configuration correctly.
The workaround, as described by Jason in stackoverflow (link bellow), was to replace the content of
MyAppTests.<configuration>.xcconfig with the content of
I’m not sure how long it will still work, but it solved the problem for now.
My next task is to do this automatically in the Podfile, so that it can run every time I do
here is my Podfile with the dirty solution: