dpa99c / cordova-plugin-firebasex

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

Cannot read properties of null (reading '1') #868

Open danemco opened 3 months ago

danemco commented 3 months ago

Bug report

CHECKLIST

Current behavior:

After upgrading to cordova-plugin-firebasex version 16.4.0, I get this error after running cordova prepare ios:

Cannot read properties of null (reading '1')

Here's the output with the --verbose flag turned on:

Prepared iOS project successfully
Executing script found in plugin cordova-plugin-firebasex for hook "after_prepare": plugins/cordova-plugin-firebasex/scripts/after_prepare.js
cordova-plugin-firebasex: Preparing Firebase on iOS
Cannot read properties of null (reading '1')
TypeError: Cannot read properties of null (reading '1')
    at Object.applyPodsPostInstall (/Users/dan/dev/members.ldslifecoaches.com/app/plugins/cordova-plugin-firebasex/scripts/ios/helper.js:226:84)
    at module.exports (/Users/dan/dev/members.ldslifecoaches.com/app/plugins/cordova-plugin-firebasex/scripts/after_prepare.js:157:34)
    at runScriptViaModuleLoader (/Users/dan/dev/members.ldslifecoaches.com/app/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:32)
    at runScript (/Users/dan/dev/members.ldslifecoaches.com/app/node_modules/cordova-lib/src/hooks/HooksRunner.js:136:12)
    at /Users/dan/dev/members.ldslifecoaches.com/app/node_modules/cordova-lib/src/hooks/HooksRunner.js:108:40

I'm using Cordova version 12 but with cordova-ios 6.2.0 for this project. I can verify that this same problem exists on cordova-ios 7.0.0.

RedLightning123 commented 1 month ago

Hey did you ever find a solution to this?

danemco commented 1 month ago

No, but I ignore the error and it seems to build anyway. Perhaps that's not a good idea...

On Wed, Mar 27, 2024 at 8:25 AM RedLightning123 @.***> wrote:

Hey did you ever find a solution to this?

— Reply to this email directly, view it on GitHub https://github.com/dpa99c/cordova-plugin-firebasex/issues/868#issuecomment-2023051672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHNRQM5FQEE7B7FP2C465LY2LJELAVCNFSM6AAAAABDHDYSTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTGA2TCNRXGI . You are receiving this because you authored the thread.Message ID: @.***>

dylanfpaul commented 4 weeks ago

having the exact same issue with both cordova-io@6 and cordova-ios@7. I am also using cordova v 12.

dylanfpaul commented 4 weeks ago

@danemco what was your deployment target set to for ios in config.xml? Like what is the exact string? I am pretty sure there is an outstanding issue that inolves using a deployment target that doesn't have two numbers. For instance, my deployment target used to be "17" and after switching it to "17.0" I have gotten past this error.

danemco commented 4 weeks ago

I don't see a "deployment target" value in my config.xml. Do you mean my app version?

On Tue, Apr 16, 2024 at 6:54 AM dylanfpaul @.***> wrote:

@danemco https://github.com/danemco what was your deployment target set to for ios in config.xml? Like what is the exact string? I am pretty sure there is an outstanding issue that inolves using a deployment target that doesn't have two numbers. For instance, my deployment target used to be "17" and after switching it to "17.0" I have gotten past this error.

— Reply to this email directly, view it on GitHub https://github.com/dpa99c/cordova-plugin-firebasex/issues/868#issuecomment-2059024588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHNRQJWCK7Z737BAJ6NQS3Y5UNRDAVCNFSM6AAAAABDHDYSTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZGAZDINJYHA . You are receiving this because you were mentioned.Message ID: @.***>