Flipper: Build error on manually linked libraries

Created on 27 Mar 2020  路  7Comments  路  Source: facebook/flipper

馃悰 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

Stale

Most helpful comment

same issue with react-native-onesignal and RN 0.62.2

All 7 comments

Can you share the exact repro steps for linking your manual dependencies ? By the look of it, it seems that the XCode is not able to locate its core files. I reckon some issue with header search paths.

I'm seeing the same issues (upgrading RN from a previous version) I'm using a default setup without many package.

@sburaksak Did you have any success solving this?

same issue with react-native-onesignal and RN 0.62.2

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

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.

@alexlevy0 Same here, did you find a fixe ?

Was this page helpful?
0 / 5 - 0 ratings