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:
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:
- Created 3 years ago
- Comments:7 (1 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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.
same issue with react-native-onesignal and RN 0.62.2