React Native Production Build Error ('Build input file cannot be found: {path}ExpoModulesProvider.swift')
Asked Answered
G

1

5

So I finished a React Native project and trying to get it into production mode. However, XCode is throwing me this error saying that it cannot find ExpoModulesProvider.swift

Here is the full error,

I have been trying to solve this error the past 2-3 hours. I searched everywhere however, I could't find anything related to this error. Even StackOverFlow doesn't have it.

Thank you

XCode Error

Givens answered 27/1, 2022 at 3:25 Comment(0)
I
9

I had the same issue and in my case I solved it by removing the ExpoModulesProvider.swift source from Compile Sources

enter image description here

This file is needed if you have an Expo project. I migrated (eject) to a bare project a long time ago, so I don't need it

Irruptive answered 16/6, 2022 at 8:7 Comment(3)
Your answer saved me after hours of debugging, thank you.Parve
@Irruptive what does this file do ?Headachy
@Headachy This file is needed if you have an expo project. I migrated to a bare project a long time ago, so I don't need itIrruptive

© 2022 - 2024 — McMap. All rights reserved.