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.

Trouble building ios after bare eject

See original GitHub issue

🐛 Bug Report

Environment

Expo CLI 3.13.1 environment info: System: OS: macOS 10.14.6 Shell: 3.2.57 - /bin/bash Binaries: Node: 13.5.0 - /usr/local/bin/node Yarn: 1.21.1 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm IDEs: Android Studio: 3.5 AI-191.8026.42.35.6010548 Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild npmPackages: @types/react: ~16.9.0 => 16.9.23 @types/react-native: ~0.61.22 => 0.61.22 expo: ~36.0.0 => 36.0.2 react: ~16.9.0 => 16.9.0 react-native: ~0.61.4 => 0.61.5 npmGlobalPackages: expo-cli: 3.13.1

ios

Steps to Reproduce

Doing a bare eject of an expo project with the following dependencies: “expo”: “~36.0.0”, “react”: “~16.9.0”, “react-dom”: “~16.13.0”, “react-native”: “~0.61.4”, “react-native-gesture-handler”: “~1.5.0”, “react-native-reanimated”: “~1.4.0”, “react-native-screens”: “2.0.0-beta.13”, “react-native-unimodules”: “~0.7.0”, “react-native-web”: “~0.12.2”, “react-native-appearance”: “~0.3.1”, “react-native-paper”: “^3.6.0”, “react-native-picker-select”: “^6.6.0”, “react-relay”: “experimental”, “react-router”: “next”, “react-router-dom”: “next”, “react-router-native”: “next”, “relay-runtime”: “^9.0.0”, “styled-components”: “^5.0.1”, “yup”: “^0.28.3”

My ios project has additional needs, therefore Podfile includes use_frameworks! use_modular_headers!

Building ios produces an error: interface/ios/UMPermissionsInterface/UMPermissionsInterface.h:4:9: fatal error: ‘UMCore/UMModuleRegistry.h’ file not found #import <UMCore/UMModuleRegistry.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.

I found that upgrading the following dependencies will get past the missing header: “expo”: “~37.0.0”, “react”: “^16.13.0”, “react-native”: “0.61.5”, “react-native-unimodules”: “^0.8.0”

But the ios build now produces a linker error: “OBJC_CLASS$_RCTImageLoader”, referenced from: objc-class-ref in EXImageLoader.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected Behavior

Podfile should be compatible with use_frameworks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
brentvatnecommented, Apr 2, 2020

this should be resolved now – https://github.com/expo/expo/commit/4559b35a9f3df9fcdc9bd8fa5bae4b99a6cd4bf9

please delete your yarn.lock and node_modules and reinstall to ensure that you get expo-image-loader@1.0.1. run pod install again in the ios directory too, after reinstalling node_modules ofc.

alternatively you can exclude it from your project in the Podfile as described in this section of the react-native-unimodules readme: https://github.com/unimodules/react-native-unimodules#-configure-ios

1reaction
carsondarlingcommented, Apr 2, 2020

I went ahead and created a repo that reproduces this error:

https://github.com/carsondarling/expo37_use_frameworks_error_demo

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo eject from managed to bare not working - Stack Overflow
After running expo eject and following the prompts for pod install, when I try to build the app and view it on the...
Read more >
Ejecting to Expo's Bare Workflow – IOS - Michael Washburn Jr
I tried digging through the documentation, trying to figure out a nice way to get this to work without ejecting, but came up...
Read more >
Assets missing only in iOS release build after ejecting
Hi, I recently ejected from expo 38 and since then my static images are not showing when I run the app in release...
Read more >
How To Eject From Expo Managed Workflow to Bare? - Pagepro
Developing app in Bare Workflow. Run and build project. Now we just have to run yarn ios or yarn android to start JavaScript...
Read more >
Being free from “expo” in React Native apps - Medium
This article covers a way to develop without expo… ... Soon after ejecting expo you'll receive your project like this: ... "ios": "react-native...
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