question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: onesignal - The 'Pods-App' target has transitive dependencies that include

See original GitHub issue

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.2.5
  @capacitor/core: 3.2.5
  @capacitor/android: 3.2.5
  @capacitor/ios: 3.2.5

Installed Dependencies:

  @capacitor/android: not installed
  @capacitor/cli: 3.2.5
  @capacitor/core: 3.2.5
  @capacitor/ios: 3.2.5

[success] iOS looking great! 👌

Platform(s)

ios

Current Behavior

A npx cap sync creates this error:

[!] The ‘Pods-App’ target has transitive dependencies that include statically linked binaries: (/mobileapp/ios/App/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework)

This is related to: https://github.com/ionic-team/capacitor/pull/5099 https://github.com/ionic-team/capacitor/issues/5137

A downgrade to @capacitor/cli version 3.2.4 solves this issue

Expected Behavior

That the sync runs without error

Code Reproduction

Assuming cocoapods are installed and synced:

ionic start myApp tabs --type vue

cd myApp
npm install @capacitor/ios
npx cap add ios

npm install onesignal-cordova-plugin@2

npm run build
npx cap sync

Other Technical Details

npm --version output: 8.1.0

node --version output: v14.18.1

pod --version output (iOS issues only): 1.11.2

macOS: 11.6

xcode: 13.0

Additional Context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jcesarmobilecommented, Nov 22, 2021

Please, when you find a bug, report an issue, don’t comment on closed issues because they are not monitored, I usually unsubscribe after closing the issues.

In 3.3.2 we made the CLI to autodetect plugins that needs a static framework if they have use-frameworks="true" in the pods tag, and since OneSignal plugin had it, I removed it from the list. But turns out version 2 didn’t use the pods tag, so we’ll need to put it back in the list.

Anyway, since 3.3.0 you can add any plugin you want to the static list from the capacitor config file without waiting for us to add it, you don’t need to downgrade. Use the staticPlugins array inside the cordova object https://capacitorjs.com/docs/config

1reaction
nunoarrudacommented, Oct 25, 2021

I’m having the same issue 👇

Screen Shot 2021-10-25 at 15 50 44

How do we fix this for onesignal-cordova-plugin v2.x? I can’t upgrade to onesignal-cordova-plugin v3.x just yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 'Pods-App' target has transitive dependencies that include ...
I'm getting the same error. s.static_framework = true. error is The 'Pods-App' target has transitive dependencies that include static binaries: (/private/var/ ...
Read more >
target has transitive dependencies that include static binaries ...
I'm trying to install an objective-c Wrapper for Jsip 'VialerSIPLib' and use it in my swift ...
Read more >
target has transitive dependencies that include static binaries
I'm getting the following error: ERROR | [iOS] unknown: Encountered an unknown error (The 'Pods-App' target has transitive dependencies that ...
Read more >
Troubleshooting iOS - OneSignal Documentation
If using Cocoapods: Make sure you have version ... Make sure you have the Push Notifications Capability in the Main App Target ......
Read more >
OneSignal ErrorLog, Issues, and Solutions - Google Drive
A E 1 one Date 2 Flutter 3 Xamarin
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found