cordova-plugin-firebasex icon indicating copy to clipboard operation
cordova-plugin-firebasex copied to clipboard

Cannot read properties of null (reading '1')

Open danemco opened this issue 6 months ago • 5 comments

Bug report

CHECKLIST

  • [X] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • [X] I have checked that no similar issues (open or closed) already exist.

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.

danemco avatar Feb 13 '24 20:02 danemco

Hey did you ever find a solution to this?

RedLightning123 avatar Mar 27 '24 15:03 RedLightning123

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: @.***>

danemco avatar Mar 27 '24 16:03 danemco

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

dylanfpaul avatar Apr 16 '24 12:04 dylanfpaul

@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.

dylanfpaul avatar Apr 16 '24 12:04 dylanfpaul

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: @.***>

danemco avatar Apr 16 '24 15:04 danemco