mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-10 22:45:59 +05:45
* Cache FIRStorage instances by app * changelog * nuts * format * appease the code coverage bot * storage -> functions * style * appease codecov again * Go the component way * doc comments and style * fix copyrights * Fix bad import * nit * make it threadsafe * attempt to fix swift test * fix tests again * debug * Disable Combine tests * allow subclasses in functions component * reenable test * Remove class check * style * Add changelog
Cloud Functions for Firebase iOS SDK
Development
Follow the subsequent instructions to develop, debug, unit test, and integration test FirebaseFunctions:
Prereqs
- At least CocoaPods 1.10.0
- Install cocoapods-generate
To Develop
- Run
pod gen FirebaseFunctions.podspec --local-sources=./ open gen/FirebaseFunctions/FirebaseFunctions.xcworkspace
OR these two commands can be combined with
pod gen FirebaseFunctions.podspec --auto-open --gen-directory="gen" --clean
You're now in an Xcode workspace generate for building, debugging and testing the FirebaseFunctions CocoaPod.
Running Unit Tests
Choose the FirebaseFunctions-Unit-unit scheme and press Command-u.
Running Integration Tests
Before running the integration tests, you'll need to start a backend emulator for them to talk to.
- Make sure you have
npminstalled. - Run the backend startup script:
Backend/start.shIt will usenpm installto automatically download the libraries it needs to run the Cloud Functions Local Emulator. The first time you run it, it will ask for a projectId. You can put anything you like. It will be ignored. - Create the workspace in Functions/Example with
pod install. open FirebaseFunctions.xcworkspace- Choose the FirebaseFunctions-Unit-integration scheme and press Command-u.
- When you are finished, you can press any key to stop the backend.