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

iOS 14 App Clip SIGABRT crash - Library not loaded: @rpath/FBLPromises.framework/FBLPromises #6311

Closed
thoughtcastapp opened this issue Aug 20, 2020 · 4 comments
Labels
api: firestore app-clips beta-software Related to using beta iOS or Xcode versions. iOS 14

Comments

@thoughtcastapp
Copy link

Steps to reproduce:

Have an app that uses Firestore for its DB (made a core app and an app clip as a separate ios target before app clips were available). Added an app clip and used cocoapods to add the firstore libraries to the app clip. Linked the app clip to my pre-built app/migrated the files over and tried to simulate it. Build compiled and ran, but it crashed before launching with the following message:

dyld: Library not loaded: @rpath/FBLPromises.framework/FBLPromises
Referenced from: /Users/me/Library/Developer/CoreSimulator/Devices/DD041252-ED8B-4632-B820-632FBED68C6F/data/Containers/Bundle/Application/8F8F902B-CF66-4856-B6AE-F7C2F35B950B/AppClipCrashClip.app/AppClipCrashClip
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/me/Library/Developer/CoreSimulator/Caches/dyld/19G73/com.apple.CoreSimulator.SimRuntime.iOS-14-0.18A5351d
DYLD_ROOT_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/benjaminbudzak/Library/Developer/Xcode/DerivedData/AppClipCrash-ahhaaayjbotetccsbcrwnlrpbode/Build/Products/Debug-iphonesimulator:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPh

Relevant Code:

None

// TODO(you): code here to reproduce the problem

To reproduce, make an a new ios app in xcode, add an app clip, make a new podfile and add firebase to it (I added Auth, Firestore and Database). Then, follow the stock instructions for initializing firebase in the app clip and run the app clip to a simulator or device...

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@ryanwilson
Copy link
Member

Hi, @thoughtcastapp sorry for the issues you're seeing.

Re: Library not loaded, this is the same issue as #4889. Specifically, the workaround here: #4889 (comment)

Unfortunately though, Firestore does not currently work in App Clips on device. You can follow along with progress at #6211, and I'll close this issue.

@ryanwilson ryanwilson added app-clips beta-software Related to using beta iOS or Xcode versions. iOS 14 api: firestore and removed needs-triage labels Aug 20, 2020
@thoughtcastapp
Copy link
Author

gotcha, just a note for anyone reading this after the ticket was closed, I tried #4889, but there are some libraries that swift won't allow static linkage to in firebase (I believe boring ssl is one of them), so that solution will not work for this issue...here's to hoping you guys can figure out a solution :)

@StephanWalters
Copy link

StephanWalters commented Aug 22, 2020

@thoughtcastapp try declaring the podfile with modular headers. That's what worked for me.

I removed use_frameworks! for the appclip target in my Podfile and added modular_headers => example:
pod 'Firebase', '6.30.0', :modular_headers => true
pod 'Firebase/Functions', '6.30.0', :modular_headers => true
pod 'Firebase/Auth', '6.30.0', :modular_headers => true
pod 'Firebase/Database', '6.30.0', :modular_headers => true

@firebase firebase locked and limited conversation to collaborators Sep 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: firestore app-clips beta-software Related to using beta iOS or Xcode versions. iOS 14
Projects
None yet
Development

No branches or pull requests

4 participants