-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to use the forward class 'ModulesProvider' as superclass of 'ExpoModulesProvider' #17705
Comments
My temp fix:
|
After trying this, Updates stopped working for me. It seems to always be disabled. For reference I am using a bare project. Did you encounter any side effects with this temp fix? |
I made my AppDelegate a traditional objc file and commented out the C++ because we are not yet using the new architecture. This resolved the issue for me. I think the above Podfile patch causes an issue at least with Updates |
Interesting |
happy to investigate if there is a clonable repro! |
Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue. The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue. A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own. ResourcesCommon concerns"I've only been able to reproduce it in private, proprietary code"You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase. "I didn't have time to create one"That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template. "You can reproduce it by yourself by creating a project and following these steps"This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue. |
@brentvatne I am using these versions and getting this error dont forget to add
|
@nomi9995 - can you run |
Using |
I have this issue in a bare project, so I can't use |
This solved the issue for me |
Genius! |
Using this solves it for me! However, our project also contains widgets that we maintain with intents. Have there been anyone that uses widgets that encounter this during their upgrade? We were on expo 45 previously and moving to expo 48 has borked our build... Any insights would be appreciated! |
Hi @quachdev did you have any update of your previous comment? I am getting the same issues I use #import "ProjectName-Swift.h" and #import "ExpoModulesCore-Swift.h" but I am trying to setup widget and it bring me back to the issues. |
Summary
Hi,
I use
![Screenshot 2022-05-31 at 21 13 40](https://user-images.githubusercontent.com/11584712/171256400-56448afb-09f5-489c-b485-3a0bbc06316e.png)
#import "ProjectName-Swift.h"
inAppDelegate.mm
to use custom swift class in that file.On build I see this error:
If I remove
ExpoModulesProvider.swift
file - project builds. But I can't access expo-keep-awake native moduleManaged or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!bare
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
45.0.4
Environment
expo-env-info 1.0.3 environment info:
System:
OS: macOS 12.4
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.5.3 - ~/.nvm/versions/node/v16.14.0/bin/npm
Watchman: 2022.05.16.00 - /opt/homebrew/bin/watchman
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK:
API Levels: 30, 31, 32
Build Tools: 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0
System Images: android-30 | Intel x86 Atom_64, android-31 | Intel x86 Atom_64, android-32 | Google APIs ARM 64 v8a
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Xcode: 13.4/13F17a - /usr/bin/xcodebuild
npmPackages:
expo: ^45.0.4 => 45.0.4
metro: ^0.70.3 => 0.70.3
react: ^17.0.2 => 17.0.2
react-dom: ^18.1.0 => 18.1.0
react-native: 0.68.2 => 0.68.2
Expo Workflow: bare
Reproducible demo
Add
"expo-keep-awake": "^10.1.1",
topackage.json
Add
#import "ProjectName-Swift.h"
toAppDelegate.mm
Try to build
The text was updated successfully, but these errors were encountered: