davide-scalzo/react-native-mixpanel

XCode 9: Cyclic dependency in module 'Darwin'

Closed this issue ยท 3 comments

I just upgraded to the GM of XCode 9 and get a build error related to Mixpanel:

Cyclic dependency in module 'Darwin': Darwin -> std -> Darwin

Looks like the issue is RNMixpanel.xcodeproj using the Header Search Path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include. Once it's removed, building works on Xcode 9. Hope that this is useful for everyone.

image

Pull request for addressing this issue: #111

If you're doing this change yourself, make sure that the RNMixpanel.xcodeproj in your app's Libraries also has the offending Header Search Path removed. (To be safe, of course, remove the Header Search Path and then perform the iOS installation steps again.)