Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get IOS running - Analytics error #65

Closed
blumanski opened this issue Oct 11, 2016 · 9 comments
Closed

Get IOS running - Analytics error #65

blumanski opened this issue Oct 11, 2016 · 9 comments

Comments

@blumanski
Copy link
Contributor

Lexical or Preprocessor Issue Group

I work of the master branch.

Xcode errors

#import <FirebaseCore/FIRAnalyticsConfiguration.h>
include of non-modular header inside framework module FireBaseAnalytics

/.........../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h:1:9: Include of non-modular header inside framework module 'FirebaseAnalytics'

/............./node_modules/react-native-firestack/ios/Firestack/FirestackAnalytics.m:13:9: While     building module 'FirebaseAnalytics' imported from /Applications/XAMPP/xamppfiles/htdocs/react/stockalert/node_modules/react-native-firestack/ios/Firestack/FirestackAnalytics.m:13:

/.........../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:5:9: In file included from ../../../ios/Pods/FirebaseAnalytics/Frameworks/frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h:5:
@bitcoinvsalts
Copy link
Contributor

+1

@blumanski
Copy link
Contributor Author

@auser
Today I was able to build for IOS which is great :-)

But the app is not running on ios, its crashing with the error below
emulator and iphone tested.

ExceptionsManager.js:82 Exception 'Failed to get default FIRDatabase instance. 
Must call FIRApp.configure() before using FIRDatabase.' was thrown while invoking 
onOnce on  target     FirestackDatabase with params (
"/marketAlerts/62D9781D-FF12-448B-B65E-270F6649DB5E",
    (
),
value,
3

)

So, what ever you have changed, it's getting close.

@bitcoinvsalts
Copy link
Contributor

I fixed this by uncomment the "use_framework!" line in the podfile.
and running pod install again
H
🎉

@blumanski
Copy link
Contributor Author

That didn't work for me....

I have installed a fresh app with newest versions, uncommented use_frameworks, still not working on ios with the same error as above.

If I use cloudMessage stuff in the code, the app is crashing right after start.
More testing....

@blumanski
Copy link
Contributor Author

blumanski commented Oct 14, 2016

const firestack = new Firestack();

doesn't seem to configure firebase

@bitcoinvsalts
Copy link
Contributor

Make sure you have 'Firebase/Analytics' on your podfile, here is mine:

target 'Fishii' do

Uncomment this line if you're using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for Fishii

target 'FishiiTests' do
inherit! :search_paths
# Pods for testing
end

end
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

[
'Firebase',
'Firebase/Core',
'Firebase/Auth',
'Firebase/Storage',
'Firebase/Database',
'Firebase/RemoteConfig',
'Firebase/Analytics',
'Firebase/Messaging'
].each do |lib|
pod lib
end

@blumanski
Copy link
Contributor Author

Lol, I found the problem...
I had to drag the "GoogleService-Info.plist" file into xcode...

Thanks anyway :-)

@gemfile0
Copy link

I resolved the same way with blumanski.

@calitbk
Copy link

calitbk commented Apr 29, 2017

The same way with blumanski. drag into xcode instead of into directory in finder or visual studio code (i use this ide)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants