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.

Build error on manually linked libraries

See original GitHub issue

🐛 Bug Report

I am getting build error on manually linked libraries, like code-push, react native unity view etc. There is no error if try without flipper pods like below: Screen Shot 2020-03-28 at 00 08 13 Screen Shot 2020-03-28 at 00 08 21

To Reproduce

install this pods and try build

def flipper_pods()
   flipperkit_version = '0.34.0'
   pod 'FlipperKit', '~>' + flipperkit_version, :configuration => 'Debug'
   pod 'FlipperKit/FlipperKitLayoutPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
   pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
   pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
   pod 'FlipperKit/FlipperKitReactPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
 end

 # Post Install processing for Flipper
 def flipper_post_install(installer)
   installer.pods_project.targets.each do |target|
     if target.name == 'YogaKit'
       target.build_configurations.each do |config|
         config.build_settings['SWIFT_VERSION'] = '4.1'
       end
     end
   end
   file_name = Dir.glob("*.xcodeproj")[0]
   app_project = Xcodeproj::Project.open(file_name)
   app_project.native_targets.each do |target|
     target.build_configurations.each do |config|
       cflags = config.build_settings['OTHER_CFLAGS'] || '$(inherited) '
       unless cflags.include? '-DFB_SONARKIT_ENABLED=1'
         puts 'Adding -DFB_SONARKIT_ENABLED=1 in OTHER_CFLAGS...'
         cflags << '-DFB_SONARKIT_ENABLED=1'
       end
       config.build_settings['OTHER_CFLAGS'] = cflags
     end
     app_project.save
   end
   installer.pods_project.save
 end 

Environment

react native 0.62 latest flipper

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
stale[bot]commented, Jul 27, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

2reactions
alexlevy0commented, Apr 14, 2020

same issue with react-native-onesignal and RN 0.62.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get iOS linker errors with my static libraries?
Open ios/YourAppName.xcodeproj in Xcode; Right-click on Your App Name in the Project Navigator on the left, and click New File… Create a single...
Read more >
React-native release build error on iOS: Id: library not found ...
I have to manually link libraries, but I get the "ld: library not found for -lReact" error. Thanks in advance.
Read more >
Is manually linking binary with li… | Apple Developer Forums
For example, I've seen some people manually add MapKit to the Link Binary With Libraries section of Build Phase , but it works...
Read more >
Linking Libraries - React Native Archive
If you do need to call it from native, then we need to know the library's headers. To achieve that you have to...
Read more >
Why am I getting a 'Library not found' error in Xcode during ...
You're experiencing this issue because Xcode can't find the location of the library, simply tell Xcode where they are by adding the right ......
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