quickstart-unity icon indicating copy to clipboard operation
quickstart-unity copied to clipboard

Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation

Open superbybot opened this issue 8 years ago • 63 comments

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-m2repository

Thanks in advance for the help!

Regards, Byron

superbybot avatar Feb 06 '18 10:02 superbybot

Similar stackoverflow issue: https://stackoverflow.com/questions/48624424/unable-to-find-corefoundation?newreg=2dd20530e9d3427095c5e557d6b86048

superbybot avatar Feb 06 '18 10:02 superbybot

@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...

$ ls -l /System/Library/Frameworks/CoreFoundation.framework/
total 32
lrwxr-xr-x  1 root  wheel   31 Dec 27  2016 CoreFoundation -> Versions/Current/CoreFoundation
lrwxr-xr-x  1 root  wheel   24 Jan  8 08:26 Headers -> Versions/Current/Headers
lrwxr-xr-x  1 root  wheel   24 Jan  8 08:26 Modules -> Versions/Current/Modules
lrwxr-xr-x  1 root  wheel   26 Dec 27  2016 Resources -> Versions/Current/Resources
drwxr-xr-x  4 root  wheel  136 Dec 27  2016 Versions

$ ls -l /System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation 
-rwxr-xr-x  1 root  wheel  21879760 Nov 19 20:10 /System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation

So perhaps your CoreFoundation framework is missing on your machine? Though I would assume that would cause issues building anything.

stewartmiles avatar Feb 15 '18 17:02 stewartmiles

@superbybot while reviewing the fix for #138 today I noticed it explicitly references /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation to detect Unity's broken networking before 2017.3.1f1, the fix in 2017.3.1f1 caused #138. I was wondering whether you could share more information about your development environment as this could be related?

  • Host OS (OSX, Windows, Linux)
  • Unity version
  • .NET version (3.5 or 4.6)
  • Target platform
  • Anything else

Cheers, Stewart

stewartmiles avatar Feb 17 '18 00:02 stewartmiles

Please try version 4.4.3: https://firebase.google.com/support/release-notes/unity#4.4.3

We fixed some issues with .NET 4.6 which could have been the cause.

johnb003 avatar Feb 24 '18 01:02 johnb003

I started to randomly get this problem today where as firebase worked fine yesterday. How could that happen?

DooblyNoobly avatar Feb 24 '18 07:02 DooblyNoobly

@johnb003 please reopen this is not fixed

DooblyNoobly avatar Feb 24 '18 07:02 DooblyNoobly

Anyone can fix this ?

huy2607 avatar Mar 12 '18 04:03 huy2607

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 ?

DooblyNoobly avatar Mar 12 '18 04:03 DooblyNoobly

i crash everytime i log event by firebase

huy2607 avatar Mar 12 '18 04:03 huy2607

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()

huy2607 avatar Mar 12 '18 04:03 huy2607

it's most likely not due to this issue @huy2607 I would suggest running the Android Jar Resolver from the editor before building

DooblyNoobly avatar Mar 12 '18 04:03 DooblyNoobly

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? What Unity version are you using? In your build settings, are you using Development build or regular?

Have a look at your Unity Player Settings:

What version is the .Net? 3.5 or 4.6? What is your target architecture, Universal, ARMv7, ARM64? What's your Minimum iOS version set to? What version of XCode are you using? What device are you running on?

@huy2607 You report it's crashing on Analytics events? Can you provide any crash logs / callstacks?

johnb003 avatar Mar 12 '18 18:03 johnb003

i using unity 2017.2.0f3. i build to android regular .Net 3.5 FAT(ARMv7+ ARM64) device : HUAWEI LITE P8 Crash log : comment before @johnb003

huy2607 avatar Mar 13 '18 04:03 huy2607

i did you suggest but still crash @DooblyNoobly !

huy2607 avatar Mar 13 '18 04:03 huy2607

Oh, that's actually quite helpful! I'm surprised this is coming up for you at all on an Android build. I guess I assumed you were building for XCode because of the error.

johnb003 avatar Mar 13 '18 07:03 johnb003

@huy2607 You can likely work around the problem for now by updating your Unity to at least 2017.3.

johnb003 avatar Mar 13 '18 07:03 johnb003

@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.

stewartmiles avatar Mar 15 '18 20:03 stewartmiles

@johnb003 i started getting this error, updated to Unity 2017.4, same error. running on Android, and the error comes as early as trying to get Firebase Instance auth = FirebaseAuth.DefaultInstance; build and run for Android and the app crashes (not even the exception catches it) i go to logcat with this command: adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG; and this is what i get when the app crashes:

04-12 07:51:51.890 27047 27066 E Unity : Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 04-12 07:51:51.929 27047 27066 I Unity : Firebase App initializing app com.cry.sfxfun (default 1). 04-12 07:51:51.929 27047 27066 I Unity :
04-12 07:51:51.929 27047 27066 I Unity : (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 04-12 07:51:51.929 27047 27066 I Unity : 04-12 07:51:51.932 27047 27066 E Unity : strlen(app_options->app_id()) && strlen(app_options->api_key()) 04-12 07:51:51.932 27047 27066 E Unity :
04-12 07:51:51.932 27047 27066 E Unity : (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 04-12 07:51:51.932 27047 27066 E Unity : 04-12 07:51:52.326 27133 27133 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 04-12 07:51:52.327 27133 27133 F DEBUG : Build fingerprint: 'samsung/dream2ltexx/dream2lte:7.0/NRD90M/G955FXXU1AQF7:user/release-keys' 04-12 07:51:52.327 27133 27133 F DEBUG : Revision: '10' 04-12 07:51:52.327 27133 27133 F DEBUG : ABI: 'arm' 04-12 07:51:52.327 27133 27133 F DEBUG : pid: 27047, tid: 27066, name: UnityMain >>> com.cry.sfxfun <<< 04-12 07:51:52.328 27133 27133 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 04-12 07:51:52.333 27133 27133 F DEBUG : Abort message: 'art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: JNI CallObjectMethodV called with pending exception java.lang.IllegalArgumentException: ApiKey must be set.' 04-12 07:51:52.333 27133 27133 F DEBUG : r0 00000000 r1 000069ba r2 00000006 r3 00000008 04-12 07:51:52.333 27133 27133 F DEBUG : r4 e89b9978 r5 00000006 r6 e89b9920 r7 0000010c 04-12 07:51:52.333 27133 27133 F DEBUG : r8 00000000 r9 f2669e84 sl 00000ef4 fp f262f63f 04-12 07:51:52.333 27133 27133 F DEBUG : ip 0000000b sp e89b7870 lr f467af97 pc f467d7f4 cpsr 200f0010 04-12 07:51:52.356 27133 27133 F DEBUG : 04-12 07:51:52.356 27133 27133 F DEBUG : backtrace: 04-12 07:51:52.356 27133 27133 F DEBUG : #00 pc 0004a7f4 /system/lib/libc.so (tgkill+12) 04-12 07:51:52.356 27133 27133 F DEBUG : #01 pc 00047f93 /system/lib/libc.so (pthread_kill+34) 04-12 07:51:52.356 27133 27133 F DEBUG : #02 pc 0001daad /system/lib/libc.so (raise+10) 04-12 07:51:52.356 27133 27133 F DEBUG : #03 pc 00019231 /system/lib/libc.so (__libc_android_abort+34) 04-12 07:51:52.356 27133 27133 F DEBUG : #04 pc 0001714c /system/lib/libc.so (abort+4) 04-12 07:51:52.356 27133 27133 F DEBUG : #05 pc 00318b4d /system/lib/libart.so (_ZN3art7Runtime5AbortEv+252) 04-12 07:51:52.356 27133 27133 F DEBUG : #06 pc 000b4ac1 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+864) 04-12 07:51:52.356 27133 27133 F DEBUG : #07 pc 00238a95 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+1664) 04-12 07:51:52.356 27133 27133 F DEBUG : #08 pc 00238c87 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+58) 04-12 07:51:52.356 27133 27133 F DEBUG : #09 pc 000ca46b /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46) 04-12 07:51:52.356 27133 27133 F DEBUG : #10 pc 000ca057 /system/lib/libart.so (_ZN3art11ScopedCheck11CheckThreadEP7_JNIEnv+362) 04-12 07:51:52.357 27133 27133 F DEBUG : #11 pc 000c906f /system/lib/libart.so (_ZN3art11ScopedCheck22CheckPossibleHeapValueERNS_18ScopedObjectAccessEcNS_12JniValueTypeE+26) 04-12 07:51:52.357 27133 27133 F DEBUG : #12 pc 000c854b /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+802) 04-12 07:51:52.357 27133 27133 F DEBUG : #13 pc 000cc6f7 /system/lib/libart.so (_ZN3art8CheckJNI13CheckCallArgsERNS_18ScopedObjectAccessERNS_11ScopedCheckEP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDNS_10InvokeTypeEPKNS_7VarArgsE+114) 04-12 07:51:52.357 27133 27133 F DEBUG : #14 pc 000cbd25 /system/lib/libart.so (_ZN3art8CheckJNI11CallMethodVEPKcP7_JNIEnvP8_jobjectP7_jclassP10_jmethodIDSt9__va_listNS_9Primitive4TypeENS_10InvokeTypeE+512) 04-12 07:51:52.357 27133 27133 F DEBUG : #15 pc 000c155f /system/lib/libart.so (_ZN3art8CheckJNI17CallObjectMethodVEP7_JNIEnvP8_jobjectP10_jmethodIDSt9__va_list+42) 04-12 07:51:52.357 27133 27133 F DEBUG : #16 pc 0008a06d /data/app/com.cry.sfxfun-1/lib/arm/libApp-4.5.0.so (_ZN7_JNIEnv16CallObjectMethodEP8_jobjectP10_jmethodIDz+18) 04-12 07:51:52.357 27133 27133 F DEBUG : #17 pc 000d0b25 /data/app/com.cry.sfxfun-1/lib/arm/libApp-4.5.0.so (_ZN8firebase12_GLOBAL__N_1L21CreateFirebaseOptionsEP7_JNIEnvRKNS_10AppOptionsE+228) 04-12 07:51:52.357 27133 27133 F DEBUG : #18 pc 000d127b /data/app/com.cry.sfxfun-1/lib/arm/libApp-4.5.0.so (_ZN8firebase3App6CreateERKNS_10AppOptionsEPKcP7_JNIEnvP8_jobject+310) 04-12 07:51:52.357 27133 27133 F DEBUG : #19 pc 00084887 /data/app/com.cry.sfxfun-1/lib/arm/libApp-4.5.0.so (_ZN8firebaseL9AppCreateEPKNS_10AppOptionsEPKc+90) 04-12 07:51:52.357 27133 27133 F DEBUG : #20 pc 00084bf3 /data/app/com.cry.sfxfun-1/lib/arm/libApp-4.5.0.so (_ZN8firebaseL21AppGetDefaultInstanceEPKNS_10AppOptionsE+26) 04-12 07:51:52.357 27133 27133 F DEBUG : #21 pc 000096dc anonymous:c9ec7000 04-12 07:51:54.183 3680 27134 W ActivityManager: Force finishing activity

com.cry.sfxfun/com.unity3d.player.UnityPlayerActivity

danielandujar avatar Apr 12 '18 11:04 danielandujar

Same here. Unity version: 2017.3.1p2 Net: 3.5 I'm using a custom UnityPlayerActivity and added this:

    @Override
    public void onNewIntent(Intent intent) {
        Log.d(EtermaxUnityPlayerActivity.ETERMAX_TAG, "Firebase on new Intent");
        Activity activity = UnityPlayer.currentActivity;
        Intent message = new Intent(activity, MessageForwardingService.class);
        message.setAction(MessageForwardingService.ACTION_REMOTE_INTENT);
        message.putExtras(intent);
        activity.startService(message);

    }

I receive that error too

04-15 01:19:21.572 7286-7304/? E/Unity: Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation

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

MartinGonzalez avatar Apr 15 '18 01:04 MartinGonzalez

Please i need help, my development has halted because of this issue

danielandujar avatar Apr 17 '18 17:04 danielandujar