NativeScript / NativeScript/nativescript-cli

Cannot Use Pods Inside App Extensions

Open
#5,244 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

  • CLI: 6.3.2
  • Cross-platform modules: 6.3.2
  • Android Runtime: 6.3.1
  • iOS Runtime: 6.3.0
  • Plugin(s):
"@nstudio/nativescript-pulltorefresh": "^1.1.1",
    "colorsys": "^1.0.22",
    "credit-card-type": "^8.2.0",
    "dotenv": "^7.0.0",
    "google-geocoder": "^0.2.1",
    "moment": "^2.24.0",
    "nativescript-apple-sign-in": "^1.0.0",
    "nativescript-background-http": "^4.2.0",
    "nativescript-cardview": "^3.2.0",
    "nativescript-checkbox": "^3.0.3",
    "nativescript-color-picker": "^1.6.0",
    "nativescript-directions": "^1.3.1",
    "nativescript-email": "^1.5.5",
    "nativescript-fingerprint-auth": "^7.0.2",
    "nativescript-geolocation": "^5.1.0",
    "nativescript-gif": "^4.0.2",
    "nativescript-imagepicker": "^7.1.0",
    "nativescript-iqkeyboardmanager": "^1.5.1",
    "nativescript-loading-indicator": "^2.5.2",
    "nativescript-mapbox": "^4.4.1",
    "nativescript-masked-text-field": "^4.0.3",
    "nativescript-phone": "^1.4.0",
    "nativescript-plugin-firebase": "^10.3.3",
    "nativescript-stripe": "^6.0.0",
    "nativescript-theme-core": "^2.0.23",
    "nativescript-vue": "^2.4.0",
    "tns-core-modules": "~6.3.0",
    "vuex": "^3.1.0"

Currently, I cannot use pods inside App Extensions with nativescript.

It tries to install pods before adding the App Extension to the project.

For example:

App_Resources/iOS/Podfile
end target 'AppExtension' do pod 'Firebase/Messaging' end
Build Error:
[!] Unable to find a target named `AppExtension`, did find ``ProjectNameHere`.
'pod install' command failed.`

This means it's impossible to have images appear on iOS notifications with Firebase.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iOS build with App_Resources/iOS/Podfile and the AppExtension target, then inspect the CLI flow around pod installation and App Extension project setup. Confirm the failure with pod install; done means the AppExtension target exists before dependency installation and the Firebase/Messaging pod resolves successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, ios, javascript
Domain
build-system, cli, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.