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

App crashes while running with test flight #779

Open
anikethhippo opened this issue Nov 22, 2022 · 1 comment
Open

App crashes while running with test flight #779

anikethhippo opened this issue Nov 22, 2022 · 1 comment

Comments

@anikethhippo
Copy link

[ 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

  • Cordova CLI version
    • 11.0.0
  • Cordova platform version
    6.2.0
  • Plugins & versions installed in project (including this plugin)
    cordova-allow-background-audio 1.0.2 "allow-background-audio"
    cordova-clipboard 1.3.0 "Clipboard"
    cordova-launch-review 3.1.1 "Launch Review"
    cordova-open-native-settings 1.5.5 "Native settings"
    cordova-plugin-android-permissions 1.1.2 "Permissions"
    cordova-plugin-app-review 2.0.3 "AppReviewPlugin"
    cordova-plugin-apprate 1.7.2 "AppRate"
    cordova-plugin-deeplinks 1.1.1 "Cordova Deeplinks Plugin"
    cordova-plugin-device 1.1.4 "Device"
    cordova-plugin-dialogs 2.0.2 "Notification"
    cordova-plugin-file 6.0.2 "File"
    cordova-plugin-firebasex 14.2.1-cli "Google Firebase Plugin"
    cordova-plugin-geolocation 4.0.2 "Geolocation"
    cordova-plugin-inappbrowser 5.0.0 "InAppBrowser"
    cordova-plugin-media-capture 3.0.3 "Capture"
    cordova-plugin-media 5.0.3 "Media"
    cordova-plugin-native-app-update 2.0.0 "AppUpdate"
    cordova-plugin-nativestorage 2.3.2 "NativeStorage"
    cordova-plugin-navigationbar-color 0.0.8 "NavigationBar"
    cordova-plugin-request-location-accuracy 2.3.0 "Request Location Accuracy"
    cordova-plugin-spinner 1.1.0 "Spinner Plugin"
    cordova-plugin-splashscreen 6.0.0 "Splashscreen"
    cordova-plugin-statusbar 2.3.0 "StatusBar"
    cordova-plugin-whitelist 1.3.4 "Whitelist"
  • Dev machine OS and version, e.g.
    -ventura 13.0
  • OS details
    iOS 12.2,

iOS build issue:

  • Node JS version
    node: v14.20.0

  • XCode version
    14

@akhoury-previsite
Copy link

did you end up finding a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants