Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Compiling error ... Cyclic dependency in module 'Foundation'.. #43

Open
mtzfactory opened this issue Mar 19, 2020 · 1 comment
Open

Comments

@mtzfactory
Copy link

Version

3.4.1 / 3.5
(Xcode 11.3.1)

File / Feature

/Users/alfred-smart/Downloads/rn-demos/SipClientDemo/node_modules/react-native-sip/ios/VialerPJSIP.framework/Headers/pj/config_site.h

Expected behaviour

Compile the project

Actual behaviour

It fails to compile...
Could not build module 'OpenGLES'

Stacktrace / Error message

While building module 'UIKit' imported from /Users/alfred-smart/Downloads/rn-demos/SipClientDemo/ios/Pods/Target Support Files/react-native-sip/react-native-sip-prefix.pch:2:
While building module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
While building module 'OpenGLES' imported from /Users/alfred-smart/Downloads/rn-demos/SipClientDemo/ios/Pods/../../node_modules/react-native-sip/ios/VialerPJSIP.framework/Headers/pj/config_site.h:7:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGLDrawable.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: cyclic dependency in module 'Foundation': Foundation -> CoreFoundation -> Darwin -> OpenGLES -> Foundation
#include <Foundation/Foundation.h>

Other info

{anything else that might be related/useful}

@mtzfactory mtzfactory changed the title Compiling error ... Cyclic dependency in module 'Darwin'.. Compiling error ... Cyclic dependency in module 'Foundation'.. Mar 19, 2020
@David-Melo
Copy link

I'm adding a link to this same issue as it is being discussed in a react-native-sip repo, since I think you might be using it. I think I might have found a solution and hopefully it can help you out.

florindumitru/react-native-sip#6 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants