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.

Flipper integration with cocoapod use_frameworks! cannot compile

See original GitHub issue

🐛 Bug Report

My ios swift project uses several dynamics frameworks so use_frameworks! is mandatory. Unfortunately the official steps here doesn’t seem to be working.

I tried to debug this but this happens even in an empty project, where the only pods are Flipper itself.

Any help or suggestion to fix this issue? Thanks in advance.

To Reproduce

Here’s a sample project: https://github.com/andikapratama/flipper_use_framework_example run pod install open the workspace project and build. compile will fail

Environment

MacOS Big Sur 11.1 XCode 12.5 Cocoapod 1.10.1

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:22
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

18reactions
thliu21commented, Jan 11, 2022

Hello folks. I encountered this issue and I tried a few things. There is one thing that I tried and it fixed the problem. I am no expert on cocoapods or flipper, but I got it build by just adding Flipper-Fmt to the $static_framework.

    $static_framework = [ ..., 'Flipper-Fmt']

It is yet to know how this works out and I am in a my-code-works-but-I-dunno-why situation. If you are a cocoapods expert please help me digging a bit.

7reactions
mweststratecommented, Sep 14, 2021

cc @lblasa any idea why use_frameworks! causes issues? Adding it to iOS/Sample/Podfile indeed results in

[!] The 'Pods-Sample' target has transitive dependencies that include statically linked binaries: (Flipper-Boost-iOSX and Flipper-RSocket)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding Flipper to Generic iOS Apps
This is done to overcome a bug with Xcode 11 which fails to compile Swift code when bitcode is enabled. Flipper transitively depends...
Read more >
swift - react-native-maps iOS build issues when using ...
To be able to build the project with react-native-maps and use_frameworks as described in the question I had to fork the react-native-maps ...
Read more >
target has transitive dependencies that include statically ...
CocoaPods ' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``) ...
Read more >
Troubleshooting - Bouncer Docs
ld: warning: Could not find auto-linked library 'swiftFoundation' · error: Failed to build iOS project. We ran "xcodebuild" command but it exited with...
Read more >
Expo Application Services (EAS)
EAS Build - iOS install pods error: undefined method `search' for "https://cdn.cocoapods.org/":String · Command. /usr/local/lib/ruby/gems/2.7.
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