Undefined symbol on Flipper using 0.62 on real iOS device
See original GitHub issueDescription
I’m not able to run the 0.62 version of the react native when I target a real device on the XCode. Using the simulator is running normally. I’ve got this error:
Undefined symbol: FlipperState::start(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)
Undefined symbol: folly::ScopedEventBaseThread::ScopedEventBaseThread()
Undefined symbol: facebook::flipper::FlipperClient::instance()
Undefined symbol: folly::ScopedEventBaseThread::~ScopedEventBaseThread()
Undefined symbol: facebook::flipper::FlipperClient::getStateElements()
Undefined symbol: facebook::flipper::FlipperClient::getState()
Undefined symbol: facebook::flipper::FlipperClient::getPlugin(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Undefined symbol: facebook::flipper::FlipperClient::setStateListener(std::__1::shared_ptr<FlipperStateUpdateListener>)
Undefined symbol: FlipperStep::complete()
Undefined symbol: facebook::flipper::FlipperClient::performAndReportError(std::__1::function<void ()> const&)
Undefined symbol: facebook::flipper::FlipperClient::init(facebook::flipper::FlipperInitConfig)
Undefined symbol: facebook::flipper::FlipperClient::removePlugin(std::__1::shared_ptr<facebook::flipper::FlipperPlugin>)
Undefined symbol: facebook::flipper::FlipperClient::addPlugin(std::__1::shared_ptr<facebook::flipper::FlipperPlugin>)
Undefined symbol: facebook::flipper::FlipperClient::refreshPlugins()
React Native version:
System: OS: macOS 10.15.3 CPU: (8) x64 Intel® Core™ i7-2600 CPU @ 3.40GHz Memory: 1.23 GB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 13.11.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.13.7 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6241897 Xcode: 11.4/11E146 - /usr/bin/xcodebuild Languages: Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.0 => 0.62.0 npmGlobalPackages: react-native: Not Found
Steps To Reproduce
- Created a new project with
react-native init
- Added a team on the XCode
- Opened the Flipper application
- Build using a real iPad as target device
Expected Results
Expected to run like on the simulator
Snack, code example, screenshot, or link to a repository:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:24
- Comments:25 (1 by maintainers)
As explained by @charway opening the
Pods.xcproj
project within the workspace, selecting each of theFlipper*
targets, and editing the “Valid Architectures” to removearmv7
andarmv7s
stops Xcode trying to build all the Flipper pods for actual devices. This gets overwritten every timepod install
is run, however, so instead adding the following to theflipper_post_install
section of thePodfile
will apply that change automatically on every install:Then since it’s no longer being built for those architectures, to stop importing/applying Flipper on actual devices edit your app’s
AppDelegate.m
file, replacing the#if DEBUG
macros with#if DEBUG && TARGET_OS_SIMULATOR
as below:The app should now build successfully for actual devices again (the log will show all the Flipper components were skipped).
im starting to move to flutter because react native start to contain so many issue with no fixed