iOS build error (cycle in dependencies) after upgrading to Expo sdk 43

Hi,

on iOS after when I rerun iOS script, I have the following issue (deleting node_modules and reinstalling them removes this error but it reappears after one build) :

:x: error: Cycle in dependencies between targets ‘EXConstants’ and ‘ExpoModulesCore’; building could produce unreliable results. This usually can be resolved by moving the target’s Headers build phase before Compile Sources.

error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening project.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace project.xcworkspace -configuration Debug -scheme project -destination id=5C1FD493-2850-48B4-BCF5-187DA537DC64

User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Using build description from disk
note: Build preparation complete
error: Cycle in dependencies between targets ‘EXConstants’ and ‘ExpoModulesCore’; building could produce unreliable results. This usually can be resolved by moving the target’s Headers build phase before Compile Sources.
Cycle path: EXConstants → ExpoModulesCore → EXConstants
Cycle details:
→ Target ‘EXConstants’: Libtool /Users/mlecoq/Library/Developer/Xcode/DerivedData/project-fzrhjgjqtyojswdzqwbfaieusfur/Build/Products/Debug-iphonesimulator/EXConstants/libEXConstants.a normal
○ Target ‘EXConstants’ has compile command with input ‘/Users/mlecoq/Developer/siradel/dev/ac-dechets/ios/Pods/Target Support Files/EXConstants/EXConstants-dummy.m’
○ Target ‘EXConstants’ has target dependency on Target ‘ExpoModulesCore’
○ That command depends on command in Target ‘ExpoModulesCore’: script phase “Copy generated compatibility header”
→ Target ‘ExpoModulesCore’ has compile command with input ‘/Users/mlecoq/Developer/siradel/dev/project/node_modules/expo-modules-core/ios/ViewManagerAdapter/EXViewManagerAdapter.m’

Dependencies

    "expo": "^43.0.0",
    "expo-auth-session": "~3.4.2",
    "expo-font": "~10.0.3",
    "expo-image-picker": "~11.0.3",
    "expo-linking": "~2.4.2",
    "expo-location": "~13.0.4",
    "expo-random": "~12.0.0",
    "expo-secure-store": "~11.0.3",
    "expo-splash-screen": "~0.13.3",
    "expo-sqlite": "~10.0.3",
    "expo-status-bar": "~1.1.0",
    "expo-updates": "~0.10.5",
    "expo-web-browser": "~10.0.3",

app.json

{
  "expo": {
    "name": "project",
    "slug": "project",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "primaryColor": "#3E31C8",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true,
      "infoPlist": {
        "CFBundleDevelopmentRegion": "fr_FR"
      },
      "bundleIdentifier": "com.mlecoq.project"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/adaptive-icon.png",
        "backgroundColor": "#3E31C8"
      },
      "package": "com.mlecoq.project"
    },
    "androidStatusBar": {"hidden": true},
    "web": {
      "favicon": "./assets/favicon.png"
    },
    "scheme": "project",
    "plugins": ["@react-native-mapbox-gl/maps"]
  }
}

After upgrade of Xcode this issue occurs no more

1 Like

@mlecoq to from which version to what version did you upgraded your Xcode ?
I am facing errors too when running expo run:ios since upgrade to SDK 43.

I am currently on version 13.0 (13A233)

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.