-
Notifications
You must be signed in to change notification settings - Fork 433
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
Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation #136
Comments
Similar stackoverflow issue: https://stackoverflow.com/questions/48624424/unable-to-find-corefoundation?newreg=2dd20530e9d3427095c5e557d6b86048 |
@superbybot the stack overflow link you shared doesn't appear to land on a valid page. You mention adding google-analytics in the AnalyticsDependencies.xml , I don't understand why you need to modify AnalyticsDependencies.xml at all, it should be correct if you import the FirebaseAnalytics.unitypackage . The missing directory you mention could be due to a broken / partial Xcode install? On one of my OSX machines I see...
So perhaps your CoreFoundation framework is missing on your machine? Though I would assume that would cause issues building anything. |
@superbybot while reviewing the fix for #138 today I noticed it explicitly references
Cheers, |
Please try version 4.4.3: We fixed some issues with .NET 4.6 which could have been the cause. |
I started to randomly get this problem today where as firebase worked fine yesterday. How could that happen? |
@johnb003 please reopen this is not fixed |
Anyone can fix this ? |
Turns out the error "Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation" happens even when Firebase is working correctly. Is your analytics not working @huy2607 ? |
i crash everytime i log event by firebase |
Unable to lookup library path for '/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation', native render plugin support di Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation Firebase App initializing app com.popa.fredbear.google.android.risingwarriors (default 1). UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:Log(Object) Firebase.Platform.FirebaseLogger:LogMessage(PlatformLogLevel, String) Firebase.FirebaseApp:LogMessage(LogLevel, String) Firebase.AppUtilPINVOKE:FirebaseApp_CreateInternal__SWIG_0() Firebase.FirebaseApp:CreateInternal() Firebase.FirebaseApp:m__0() Firebase.FirebaseApp:CreateAndTrack(CreateDelegate) Firebase.FirebaseApp:Create() Firebase.FirebaseApp:get_DefaultInstance() Firebase.Analytics.FirebaseAnalytics:.cctor() TrackingTutorialStep:_tracking() (at D:\Rising\RisingWarriors-Unity.git\RisingWarriors\Assets\Scripts\Tracking\TrackingTutorialStep.cs: TrackingTutorialStep:_tracking() (at D:\Rising\RisingWarriors-Unity.git\RisingWarriors\Assets\Scripts\Tracking\TrackingTutorialStep.cs: BaseTrackingAdapter Firebase Analytics API Initializing UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:Log(Object) Firebase.Platform.FirebaseLogger:LogMessage(PlatformLogLevel, String) Firebase.FirebaseApp:LogMessage(LogLevel, String) Firebase.AppUtilPINVOKE:FirebaseApp_CreateInternal__SWIG_0() Firebase.FirebaseApp:CreateInternal() Firebase.FirebaseApp:m__0() Firebase.FirebaseApp:CreateAndTrack(CreateDelegate) Firebase.FirebaseApp:Create() Firebase.FirebaseApp:get_DefaultInstance() Firebase.Analytics.FirebaseAnalytics:.cctor() TrackingTutorialStep:_tracking() (at D:\Rising\RisingWarriors-Unity.git\RisingWarriors\Assets\Scripts\Tracking\TrackingTutorialStep.cs: TrackingTutorialStep:_tracking() (at D:\Rising\RisingWarriors-Unity.git\RisingWarriors\Assets\Scripts\Tracking\TrackingTutorialStep.cs: BaseTrackingAdapter:tracking() (at D:\Rising\RisingWarriors-Unity.git\Risi Firebase Analytics API Initialized UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:Log(Object) Firebase.Platform.FirebaseLogger:LogMessage(PlatformLogLevel, String) Firebase.FirebaseApp:LogMessage(LogLevel, String) Firebase.AppUtilPINVOKE:FirebaseApp_CreateInternal__SWIG_0() Firebase.FirebaseApp:CreateInternal() Firebase.FirebaseApp:m__0() Firebase.FirebaseApp:CreateAndTrack(CreateDelegate) Firebase.FirebaseApp:Create() Firebase.FirebaseApp:get_DefaultInstance() Firebase.Analytics.FirebaseAnalytics:.cctor() |
it's most likely not due to this issue @huy2607 |
Thanks for letting us know there's still an issue. For any of you still having problems, can you give us some details we can use to try to reproduce this... Can you reproduce the problem in the samples? Have a look at your Unity Player Settings: What version is the .Net? 3.5 or 4.6? @huy2607 You report it's crashing on Analytics events? Can you provide any crash logs / callstacks? |
i using unity 2017.2.0f3. |
i did you suggest but still crash @DooblyNoobly ! |
Oh, that's actually quite helpful! I'm surprised this is coming up for you at all on an Android build. |
@huy2607 You can likely work around the problem for now by updating your Unity to at least 2017.3. |
@huy2607 just to confirm, this is causing a crash or simply logging an error to your log? If it's just logging an error that's ok it's harmless we're using this code path to detect broken Unity versions. If it's crashing well then we'll need to resolve this. |
@johnb003 i started getting this error, updated to Unity 2017.4, same error.
com.cry.sfxfun/com.unity3d.player.UnityPlayerActivity |
Same here.
I receive that error too
And seems to randomly crash. I was able to receive push notifications but sometime it crash my app. EDIT: Using Unity i had to set my applications as a SingleTask in the manifest, after that it stop crashing |
Please i need help, my development has halted because of this issue |
Ok I think what we're going to do here - since we still can't figure out the root cause - is disable root cert installation unless the real-time database plugin is installed since that is the only component that requires this now. We previously required root certs for the storage module as well but we moved to native implementations on all supported platforms in 4.5.0. We'll post an update with a workaround DLL shortly. |
Ok I've patched Firebase.App.dll and Firebase.Auth.dll based upon the 4.5.1 release. I've done a couple of things:
Some of the reported problems, especially by @blackknigt, confuse me since the code path that causes us to load Since we've been unable to reproduce this issue on any of our machines I would love feedback on whether my patch works for you, what you need to do to apply it:
|
ok, i got the same error, i will start clean and will try to start firebase without any other code... to see what happens
|
@blackknigt thanks for posting your build settings. Could you also enable debug logging and post the log? Set Firebase.FirebaseApp.LogLevel to Firebase.LogLevel.Debug before calling any Firebase methods. |
@dday1987 do you have the complete log from that device rather than a screenshot? I'm wondering whether that error message actually stops execution? Also, any chance you could enable debug logging so that we can see what's going on in more detail.
|
I recently updated firebase unity sdk to 4.5.1 and I also got the
I have the google-services.json file as follows. There is also
I also tried #136 (comment) .
|
@wapa5pow could you open a ticket on http://firebase.google.com/support and share your project with them? That will make its way down to the engineering team (us) and we'll be able to take a look. |
We've released a fix for the issue cited in this bug's title in 4.5.2 https://firebase.google.com/support/release-notes/unity#4.5.2 when using plugins other than the Realtime Database. We're still working on removing the dependency upon root cert installation in the Realtime Database, it's going to take probably another month or so. w.r.t the problems folks are reporting with Firebase config resources not ending up in Android projects, please open up tickets with Firebase support. We haven't been able to reproduce these issues so I'm guessing it's something special about how you're building your project or your build environment (Android SDK, Unity version, host OS etc.). It will be easier for us to reproduce by starting with a common environment when communicating privately with us via our support channel |
The same issue occurs. |
@claire828 apologies, looks like our redirect link wasn't republished yesterday, it's up to date now. Thank you for pointing this out! |
Problem solve!! After updating to 4.5.2, everything works fine now! Thanks! 😀 |
@claire828 In my case, this bug still happen with Firebase SDK 4.5.2. Can you let me know your Unity version? Thank. |
Hey there @LvM2D, I was facing this issue on my project but I was able to resolve it using the following:
I currently have the project's minimum API requirement set to Android 5.0 or API Level 21. After following the instructions for integrating Firebase, everything has worked smoothly for me. NOTE: I am only using the Firebase messaging package. But I assume there should be no problem with the other ones too |
Hey @LvM2D |
@claire828 Now it works, thank for your help. |
Everything was working fine until this morning, I was running Firebase SDK 5.5.0 and upgrading to 5.5.1 hasn't resolved the issue. Unity version is 2017.4.3. Is anyone else facing this issue? |
I'm not sure if I we can pinpoint the problem but I suggest rolling back if that was stable unless you really need to utilize features from the 5.5.1 update |
@pronaypeddiraju actually the issue was present in 5.5.0 and was the reason for the reason for upgrade to 5.5.1, but the upgrade did not resolve the issue. I am still struggling to resolve this issue, if there are any logs or otherwise I can provide to help troubleshoot the issue, I'd be happy to provide this. |
Just adding a log of the failing Firebase initialisation -
|
Update: the root cause turned out to be a clash between Firebase and another 3rd-party plugin, which both registered a provider in the AndroidManifest with |
We just barely started getting this on our project bring Android development to a halt. |
just changed the |
+1 I am also seeing this issue. Windows 10, Unity 2018.1.3f1, building using gradle (through Unity), app running on Android Samsung Galaxy S8, running my app (not the quickstart) after adding Firebase-Analytics 5.1.1. Relevant part of adb logcat:
Other installed plugins:
The Also happens with firebase analytics 4.5.2. I tried upgrading my Android SDK, but it did not help. Ran the same apk on a Pixel device through Firebase Test Lab, and I see the same thing. Full trace: https://gist.github.com/Crashthatch/2dd569ce435ab0648aa1fc022cc6e206 When I remove firebase from my project, the I'm out of things to try. I have no idea why Firebase on Android would be looking for an iOS |
@Crashthatch have you reproduced this with one of our sample applications? If you reproduce it with a sample and share it via our support channel we can take a look at what's going on. |
I tried to reproduce this with the sample application, and I do get the If you want to reproduce anyway (to try to remove this confusing error message to avoid future confusion?), you can use this fork: https://github.com/Crashthatch/quickstart-unity (see commit log to see the exact steps I followed). Open and build & run in Unity 2018.1.3f1 (or use built apk in the git repo). Run The actual problem in my app (stack traces from a few lines below in the logcat above), |
Just fyi, I also still see the |
@enghoff & @Crashthatch the CoreFoundation error message is actually intentional. We detect whether we need to apply a workaround for a Unity networking bug on OSX by searching for the presence of this non-existent framework. The error pops up as the pinvoke we use fails, we catch the exception and apply the workaround if it's required. The only reason this code is still in our code base is due to our use of Unity's .NET networking stack in the real-time database, so we've removed the code path in upcoming mobile builds. Once we've finished migration of the RT DB to our native desktop implementation this code will disappear entirely. |
Great! Perhaps make it an INFO, or change it to something that looks less like an error ( If the change is imminent, then no need. :) |
@Crashthatch the error is thrown by the mono framework so we can't change the log level unfortunately. |
Please mention that it's important to KEEP ALL THE IMPORTED FOLDERS UNTOUCHED, by moving any of them will fail in endless ways.. so hardcoded.. |
I'm trying to build the analytics sample using firebase SDK 4.4.2 and I get an error in the log with message:
"Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"
any ideas whats wrong with it? The only thing I've changed in the unity project is adding google-analytics in the AnalyticsDependencies.xml.
extra-google-m2repositoryThanks in advance for the help!
Regards,
Byron
The text was updated successfully, but these errors were encountered: