dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
570 stars 457 forks source link

App crashes while running with test flight #779

Open anikethhippo opened 1 year ago

anikethhippo commented 1 year ago

[ yes ] I have read the issue reporting guidelines [ yes ] I confirm this is a suspected bug or issue that will affect other users [ yes ] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue. [ yes ] I have read the documentation thoroughly and it does not help solve my issue. [ yes ] I have checked that no similar issues (open or closed) already exist.

Current behavior:

When we build the cordova application with firebasex added we get the following error in the crash logs of test flight.

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: DYLD 1 Library missing Library not loaded: @rpath/libswiftCore.dylib Referenced from: <85AD5A7E-B8F9-3FAC-B316-12AEF326BAF1> /Volumes/VOLUME/*/Cleanomatics.app/Cleanomatics Reason: tried: '/private/var/containers/Bundle/Application/9246E3E5-E8B6-4615-BCF6-E3F4D712D449/Cleanomatics.app/Frameworks/libswiftCore.dylib' (errno=2), '/private/var/containers/Bundle/Application/9246E3E5-E8B6-4615-BCF6-E3F4D712D449/Cleanomatics.app/Frameworks/libswiftCore.dylib' (errno=2), '/private/preboot/Cryptexes/OS@rpath/libswiftCore.dylib' (errno=2), '/private/var/containers/Bundle/Application/9246E3E5-E8B6-4615-BCF6-E3F4D712D449/Cleanomatics.app/Frameworks/libswiftCore.dylib' (errno=2), '/private/var/containers/Bundle/Application/9246E3E5-E8B6-4615-BCF6-E3F4D712D449/Cleanomatics.app/Frameworks/libswiftCore.dylib' (errno=2), '/usr/local/lib/libswiftCore.dylib' (errno=2), '/usr/lib/libswiftCore.dylib' (errno=2, not in dyld cache) (terminated at launch; ignore backtrace)

As i googled a fix for this issue it said that we have to set the following flag (ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES) in the cordova build process which we did and we're getting the following error while building.

Error - Error: Build input file cannot be found: '/Users/rajivkumar/Library/Developer/Xcode/DerivedData/Cleanomatics-diedmbgaziwfezbdpqatyvdgogha/Build/Intermediates.noindex/ArchiveIntermediates/Cleanomatics/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleSignIn.bundle/GoogleSignIn'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'GoogleSignIn-GoogleSignIn' from project 'Pods')

The app should build without any error and should not crash while running on testflight.

Build the app with our configuration and try to see if it works

Environment information

iOS build issue:

akhoury-previsite commented 1 month ago

did you end up finding a solution?