bug: onesignal - The 'Pods-App' target has transitive dependencies that include
See original GitHub issueBug 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:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
I’m having the same issue 👇
How do we fix this for
onesignal-cordova-plugin
v2.x? I can’t upgrade toonesignal-cordova-plugin
v3.x just yet.