Troubleshooting

Here are some of the errors that you may encounter in the various stages of setting up Hengam SDK in Xcode, along with the solution.

These errors fall into two Type: 1. Undefined symbol 2. Could not find a valid GoogleService-Info.plist in your project

If your problem is not an error, it may be mentioned in the [Questions] section.

Undefined symbol

If your developing language is Objective C when you use Hengam pod an error appears which is like ‘undefined symbol …’. Don't worry this is because SDK's language is Swift. To solve this problem following steps are required.

Step 1.

Be sure in the main project target and Notification Service Extension the value of Always Embed Swift Standard Libraries be ‘Yes’.

Settings

Step 2.

Right-click on your project file and select a new file.

Settings

Choose the Swift file and click on Next.

Settings

Be sure this file be added to the main project target and Notification Service Extension.

Settings

Finally, click on Create bridging header button.

Settings

could not find a valid GoogleService-Info.plist in your project

This when you do not add GoogleService-Info.plist to your project. Download GoogleService-Info.plist from the firebase console and add that to your project.

Terminating app due to uncaught exception 'com.firebase.core',
 reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in 
Swift) could not find a valid GoogleService-Info.plist in your 
project. Please download one from https://console.firebase.google.com

Can't you find the error on this page? Search the Issues section of the Github and if you find nothing, create a new issue there.