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

[Bug]: App crashing on IOS #268

Closed
1 task done
luizpaulofranz opened this issue Nov 7, 2022 · 11 comments
Closed
1 task done

[Bug]: App crashing on IOS #268

luizpaulofranz opened this issue Nov 7, 2022 · 11 comments
Labels
bug🐞 Something isn't working

Comments

@luizpaulofranz
Copy link

luizpaulofranz commented Nov 7, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Terminating app:

(lldb) dyld[3978]: Library not loaded: @rpath/FBSDKCoreKit.framework/FBSDKCoreKit

Complete error Log:

Running pod install...                                             21.7s
Running Xcode build...                                                  
 └─Compiling, linking and signing...                        28.3s
Xcode build done.                                           148.4s
(lldb) dyld[3978]: Library not loaded: @rpath/FBSDKCoreKit.framework/FBSDKCoreKit
  Referenced from: <09B85D90-BD05-34E6-B6DF-AE16B962859E> /private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Runner
  Reason: tried: '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/preboot/Cryptexes/OS@rpath/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/private/var/containers/Bundle/Application/B7210E89-1121-4064-969D-A94CBA3219AC/Runner.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2), '/System/Library/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache)
* thread #1, stop reason = signal SIGABRT
    frame #0: 0x00000001cff6aebc dyld`__abort_with_payload + 8
dyld`:
->  0x1cff6aebc <+8>:  b.lo   0x1cff6aedc               ; <+40>
    0x1cff6aec0 <+12>: pacibsp 
    0x1cff6aec4 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x1cff6aec8 <+20>: mov    x29, sp
Target 0: (Runner) stopped.
Installing and launching...                                        45.8s
Error launching application on iPhone

Expected Behavior

The app should run

Steps To Reproduce

Follow the instruction on this package page: "https://pub.dev/packages/facebook_app_events" and when I run the app, the app crash.

Platform

iOS

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.7, on macOS 12.6 21G115 darwin-x64, locale en-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2020.3.3)
[✓] VS Code (version 1.72.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability
@luizpaulofranz luizpaulofranz added the bug🐞 Something isn't working label Nov 7, 2022
@DennisAlund
Copy link
Member

DennisAlund commented Nov 8, 2022

@luizpaulofranz try run the app in example/ and let me know how that works for you 🙏

And also, please let me know if you have searched for this issue in other contexts. I found this: facebook/facebook-ios-sdk#2121

@noinskit
Copy link

noinskit commented Nov 8, 2022

flutter_facebook_auth has the same problem: darwin-morocho/flutter-facebook-auth#302

It's not clear if it's fixed there, but flutter-facebook-auth is already running a newer version of the iOS native dependency, so current version of flutter-facebook-auth can't coexist with the newest flutter_facebook_app_events.

@luizpaulofranz
Copy link
Author

@DennisAlund I've just tried the example project with the same problem:

Xcode build done.                                           55.8s
(lldb) dyld[4578]: Library not loaded: @rpath/FBSDKCoreKit.framework/FBSDKCoreKit

@xalikoutis
Copy link

same for me IOS crashes

@luizpaulofranz
Copy link
Author

Hey guys, a temporary workaraound for this can be found in that link sent by @DennisAlund above: facebook/facebook-ios-sdk#2121

This is working here:
image

"In your Xcode ,go the General tab of your Main Project.. there you will find an Embedded Binaries field and add the required framework there . Crash will be resolved."
Suggested by @wangjian201314

@xalikoutis
Copy link

I believe that happens only if you compile x86 mac for release. I just changed codemagic builds to mac_m1 and it is working

@zeucxb
Copy link

zeucxb commented Nov 11, 2022

Just import FBSDKCoreKit and FBSDKCoreKit_Basics solved 🙌🏼

@github-actions
Copy link

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@Gloomy699
Copy link

need to upgrade FBSDKCoreKit up to 15.1.0 https://cocoapods.org/pods/FBSDKCoreKit because FBSDKCoreKit version in package is 15.0.0 it`s work for me.

@DennisAlund
Copy link
Member

FBSDKCoreKit was just updated to 15.1 so we'll close it for now if that was a solution. Please re-open if the problem persists.

@ariona
Copy link

ariona commented Feb 23, 2023

'/System/Library/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' (errno=2, not in dyld cache)

tried this, and got this instead

Target 'Runner' (project 'Runner') has copy command from '$HOME/Documents/mobile/amalsholeh/ios/Pods/FBSDKCoreKit_Basics/XCFrameworks/FBSDKCoreKit_Basics.xcframework/ios-arm64/FBSDKCoreKit_Basics.framework' to '$HOME/Library/Developer/Xcode/DerivedData/Runner-fnfshurgrtnvaacnshcotvesiriv/Build/Products/Debug-iphoneos/Runner.app/Frameworks/FBSDKCoreKit_Basics.framework'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants