Firebase - Documentation Improvement re: Unit Testing Issue in Xcode

1,039 views
Skip to first unread message

Matthew Rips

unread,
Jan 19, 2017, 8:34:27 PM1/19/17
to Firebase Google Group
Firebase is a great resource.  This post is about improving the documentation for the iOS SDK and/or installation instructions.

There seems to be an issue with unit testing of Firebase-dependent apps in Xcode.  Specifically, when importing an app into a test class (i.e., @testable import my_cool_app ), Xcode errs with: Missing required module 'Firebase'. 

This issue is addressed in a few posts on SO, such as:  http://stackoverflow.com/questions/38216090/xcode-unit-testing-with-cocoapods.  However, those posts reflect the issue persisting for multiple years, and it is not readily apparent from the SO posts which solution is the best or right solution.  I believe the correct solution is modifying the applicable build search paths, but it seems that that modification is necessary upon the initial inclusion of the Firebase SDK and also upon each update of SDK.  There might be a better way, such as modifying the pods file.

In any event, dealing with the issue is a frustrating rabbit hole that involves technical aspects of the IDE that most developers would rather not think about.

It would be quite helpful if the Firebase documentation and/or installation instructions for the iOS SDK addressed the issue, and then provided a detailed recommendation as to how to solve it.  Or, if the issue is a product of user error or particular user environments, it would be helpful if the documentation included a cautionary note about the possibility of the issue arising.  Or, if the issue could be characterized as a CocoaPods issue rather than a Firebase issue, it nevertheless would make sense for the Firebase documentation to flag it.  If the best solution is modifying the pods file in order to build correct search paths, perhaps that modification should be part of the Firebase install instructions.


Kato Richardson

unread,
Jan 24, 2017, 8:06:52 PM1/24/17
to Firebase Google Group
Hi Matthew,

Sounds like great feedback! Could you either go to the docs page and click the "Send Feedback" button, or send this feedback via our support portal? This will ensure it's quantified and discussed by the appropriate teams.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0880c92f-1406-4bec-b4fb-aabe86729adf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages