question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cycle in dependancies building iOS on mac

See original GitHub issue

Description:

Hello I am getting the following error trying to build the source:

Cycle in dependencies between targets 'JitsiMeet' and 'JitsiMeetSDK'; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.
Cycle path: JitsiMeet → JitsiMeetBroadcastExtension → JitsiMeetSDK → JitsiMeet
Cycle details:
→ Target 'JitsiMeet' has copy command from '/Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/JitsiMeetSDK.framework' to '/Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/jitsi-meet.app/Frameworks/JitsiMeetSDK.framework'
○ Target 'JitsiMeet' has target dependency on Target 'JitsiMeetBroadcastExtension'
→ Target 'JitsiMeetBroadcastExtension' has compile command for Swift source files
→ Target 'JitsiMeetSDK' has copy command from '/Users/dentrix/StudioProjects/jitsi-meet/ios/sdk/src/JitsiMeetSDK.h' to '/Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/JitsiMeetSDK.framework/Headers/JitsiMeetSDK.h'
○ Target 'JitsiMeetSDK' has compile command with input '/Users/dentrix/StudioProjects/jitsi-meet/ios/sdk/src/AppInfo.m'
○ Target 'JitsiMeetSDK' has compile command for Swift source files


Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/jitsi-meet.app/Frameworks/JitsiMeetSDK.framework ->

command: target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6-:Debug:Copy /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/jitsi-meet.app/Frameworks/JitsiMeetSDK.framework /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/JitsiMeetSDK.framework ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase4-copy-bundle-resources> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase4-copy-bundle-resources ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase2-compile-sources> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase2-compile-sources ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase1-run-react-packager> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase1-run-react-packager ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase0--cp--check-pods-manifest-lock> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--phase0--cp--check-pods-manifest-lock ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--ModuleMapTaskProducer> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--ModuleMapTaskProducer ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--HeadermapTaskProducer> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--HeadermapTaskProducer ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--GeneratedFilesTaskProducer> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--GeneratedFilesTaskProducer ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--ProductStructureTaskProducer> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--ProductStructureTaskProducer ->

node: <target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--begin-compiling> ->

command: Gate target-JitsiMeet-c8ea3afa4348e6caf47cdc9505cc51d87ceb6b36bcfc2fb90f69ac96de4975d6--begin-compiling ->

node: <target-JitsiMeetBroadcastExtension-c8ea3afa4348e6caf47cdc9505cc51d8b9d99341a281b0af43d97f2937eaf5be--modules-ready> ->

command: Gate target-JitsiMeetBroadcastExtension-c8ea3afa4348e6caf47cdc9505cc51d8b9d99341a281b0af43d97f2937eaf5be--modules-ready ->

node: /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Intermediates.noindex/app.build/Debug-iphonesimulator/JitsiMeetBroadcastExtension.build/Objects-normal/x86_64/SocketConnection.o ->

command: target-JitsiMeetBroadcastExtension-c8ea3afa4348e6caf47cdc9505cc51d8b9d99341a281b0af43d97f2937eaf5be-:Debug:CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler ->

CYCLE POINT ->

node: /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/JitsiMeetSDK.framework/Headers/JitsiMeetSDK.h ->

command: target-JitsiMeetSDK-d0e7a4465ca36f262e1a200a58608cf0c369801a694dde860f9b791ec620a271-:Debug:CpHeader /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/JitsiMeetSDK.framework/Headers/JitsiMeetSDK.h /Users/dentrix/StudioProjects/jitsi-meet/ios/sdk/src/JitsiMeetSDK.h ->

node: <target-JitsiMeetSDK-d0e7a4465ca36f262e1a200a58608cf0c369801a694dde860f9b791ec620a271--phase1-compile-sources> ->

command: Gate target-JitsiMeetSDK-d0e7a4465ca36f262e1a200a58608cf0c369801a694dde860f9b791ec620a271--phase1-compile-sources ->

node: /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Intermediates.noindex/sdk.build/Debug-iphonesimulator/JitsiMeetSDK.build/Objects-normal/x86_64/AppInfo.o ->

command: target-JitsiMeetSDK-d0e7a4465ca36f262e1a200a58608cf0c369801a694dde860f9b791ec620a271-:Debug:CompileC /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Intermediates.noindex/sdk.build/Debug-iphonesimulator/JitsiMeetSDK.build/Objects-normal/x86_64/AppInfo.o /Users/dentrix/StudioProjects/jitsi-meet/ios/sdk/src/AppInfo.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler ->

node: <target-JitsiMeetSDK-d0e7a4465ca36f262e1a200a58608cf0c369801a694dde860f9b791ec620a271--generated-headers> ->

command: Gate target-JitsiMeetSDK-d0e7a4465ca36f262e1a200a58608cf0c369801a694dde860f9b791ec620a271--generated-headers ->

node: /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Intermediates.noindex/sdk.build/Debug-iphonesimulator/JitsiMeetSDK.build/Objects-normal/x86_64/PiPViewCoordinator.o ->

command: target-JitsiMeetSDK-d0e7a4465ca36f262e1a200a58608cf0c369801a694dde860f9b791ec620a271-:Debug:CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler ->

node: /Users/dentrix/Library/Developer/Xcode/DerivedData/jitsi-meet-bnldgnanhjzegphbjlynzlousakx/Build/Products/Debug-iphonesimulator/JitsiMeetSDK.framework/Headers/JitsiMeetSDK.h

Steps to reproduce:

  1. git clone https://github.com/jitsi/jitsi-meet.git
  2. cd jitsi-meet
  3. npm ci
  4. make
  5. cd ios
  6. pod install
  7. open in xCode
  8. try to build

Expected behavior:

the app builds

Actual behavior:

build failed

Client information:

  • Browser / app version: 22.1
  • Operating System: iOS/Mac

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
william-lohancommented, Mar 22, 2022

@saghul 13.3

1reaction
saghulcommented, Mar 29, 2022

I am updating to Xcode 13.3 and will merge the linked PR once I am able to validate it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 13.3 cycle in dependencies between targets
So my App has a AppCoreLibrary we compile and it complains about this library and the App itself stating a cycle dependency exists....
Read more >
building could produce unreliable results: Xcode Error - Stack ...
Xcode 10's new build system detects dependency cycles in your build and provides diagnostics to help you resolve them. Fixing these ...
Read more >
Xcode Version 13.3 (13E113) error - Cycle in dependencies
Cycle in dependencies between targets 'Unity-iPhone' and 'UnityFramework'; building could produce unreliable results.
Read more >
Cycle in dependency when adding `module.modulemap`
I have a static library, C, with mix of obj-c and Swift code in it. My main app, target A references this library....
Read more >
Fixing Our Recent Xcode 13.3.x Dependency Cycle Errors
Cycle in dependencies between targets 'Sparkle' and 'SparkleDownloader'; building could produce unreliable results. This usually can be resolved ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found