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

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

Closed
5 tasks done
danemco opened this issue Feb 13, 2024 · 5 comments
Closed
5 tasks done

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

danemco opened this issue Feb 13, 2024 · 5 comments

Comments

@danemco
Copy link

danemco commented Feb 13, 2024

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • 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.

@RedLightning123
Copy link

Hey did you ever find a solution to this?

@danemco
Copy link
Author

danemco commented Mar 27, 2024 via email

@dylanfpaul
Copy link

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

@dylanfpaul
Copy link

@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
Copy link
Author

danemco commented Apr 16, 2024 via email

@dpa99c dpa99c closed this as completed in 0fa85f8 Sep 25, 2024
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

3 participants