<With cocoapods>
1. In your xcode project folder, open a terminal and type in "pod init" and enter.
2. It will create a "Podfile" file.
3. Add "pod 'Firebase/Core'
4. In terminal, type in "pod install" and enter.
5. It will create a $(projectname). xcworkspace.
6. Open the project file.
7. Download "
GoogleService-Info.plist" from here and add to your project.
8. Inherited calss from UIApplicationDelegate add @import Firebase;
9. In application:didFinishLaunchingWithOptions: method add [FIRApp configure];
<For old project>
1. If you met a error message after type in "pod install" in terminal window.
Then you should change "Development Target" in general tab. ( at least v8.0 )
2. After 'pod install' some warning message appear then follow the guide.
[!] Please close any current Xcode sessions and use `SFMessanger.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 5 total pods installed.
[!] The `SFMessanger [Debug]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-SFMessanger/Pods-SFMessanger.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `SFMessanger [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-SFMessanger/Pods-SFMessanger.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `SFMessanger [Release]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-SFMessanger/Pods-SFMessanger.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `SFMessanger [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-SFMessanger/Pods-SFMessanger.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
and you will met a build error then
this will be helpful.
<Reference>
https://firebase.google.com/docs/ios/setup
댓글
댓글 쓰기