Cycle inside my app on XCode 15 beta

I cannot run my app, I get this error. I installed xcode 15 beta on my mac m2 pro, also I have macOS Sonoma (v14.0) installed. In previous code versions the code was able to run.

Cycle inside Appname; building could produce unreliable results. Cycle details: → Target 'Appname': ExtractAppIntentsMetadata ○ Target 'Appname': CodeSign /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework ○ Target 'Appname' has copy command from '/Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/SourcePackages/artifacts/apgconnect-swiftpackagemanager/APGconnect/APGconnect.xcframework/ios-arm64/APGconnect.framework' to '/Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework' ○ That command depends on command in Target 'Appname': script phase “Firebase Crashlytics” ○ Target 'Appname' has a command with output '/Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app.dSYM' ○ Target 'Appname' has process command with output '/Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Info.plist' ○ Target 'Appname' has copy command from '/Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/SourcePackages/artifacts/apgconnect-swiftpackagemanager/APGconnect/APGconnect.xcframework/ios-arm64/APGconnect.framework' to '/Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework'

Raw dependency cycle trace:

target: ->

node: <all> ->

command: <all> ->

node: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Intermediates.noindex/Appname.build/Debug-iphoneos/Appname.build/Objects-normal-ubsan/arm64/ExtractedAppShortcutsMetadata.stringsdata ->

command: P0:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:ExtractAppIntentsMetadata ->

node: <target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--package-copy-files-phase> ->

command: P0:::Gate target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--package-copy-files-phase ->

node: <CodeSign /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework> ->

command: P0:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:CodeSign /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework ->

node: <Copy /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework> ->

CYCLE POINT ->

command: P0:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:Copy /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/SourcePackages/artifacts/apgconnect-swiftpackagemanager/APGconnect/APGconnect.xcframework/ios-arm64/APGconnect.framework ->

node: <target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--fused-phase8--cp--copy-pods-resources> ->

command: P0:::Gate target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--fused-phase8--cp--copy-pods-resources ->

node: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Intermediates.noindex/Appname.build/Debug-iphoneos/Appname.build/InputFileList-8F69F04ECE39CEA4D548803F-Pods-App-Appname-resources-Debug-input-files-6b988fea851b169d138afd42359e554e-resolved.xcfilelist ->

command: P2:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:WriteAuxiliaryFile /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Intermediates.noindex/Appname.build/Debug-iphoneos/Appname.build/InputFileList-8F69F04ECE39CEA4D548803F-Pods-App-Appname-resources-Debug-input-files-6b988fea851b169d138afd42359e554e-resolved.xcfilelist ->

node: <target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--fused-phase7--cp--embed-pods-frameworks> ->

command: P0:::Gate target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--fused-phase7--cp--embed-pods-frameworks ->

node: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Intermediates.noindex/Appname.build/Debug-iphoneos/Appname.build/InputFileList-9C4DC43DDD1B70E883929F7A-Pods-App-Appname-frameworks-Debug-input-files-67ca94915dc637813d7d2b89d288f680-resolved.xcfilelist ->

command: P2:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:WriteAuxiliaryFile /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Intermediates.noindex/Appname.build/Debug-iphoneos/Appname.build/InputFileList-9C4DC43DDD1B70E883929F7A-Pods-App-Appname-frameworks-Debug-input-files-67ca94915dc637813d7d2b89d288f680-resolved.xcfilelist ->

node: <target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--fused-phase6-firebase-crashlytics> ->

command: P0:::Gate target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3--fused-phase6-firebase-crashlytics ->

node: <execute-shell-script-e523191a5dddb74851b7e061f613cdd201b0c0622fbbdf8fbf64fd7434af9a37-target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-> ->

command: P2:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:PhaseScriptExecution Firebase Crashlytics /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Intermediates.noindex/Appname.build/Debug-iphoneos/Appname.build/Script-B66C911C2756492F00413DA0.sh ->

node: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app.dSYM/Contents/Resources/DWARF/Appname/ ->

directoryTreeSignature: � ->

directoryContents: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app.dSYM/Contents/Resources/DWARF/Appname ->

node: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app.dSYM/Contents/Resources/DWARF/Appname ->

I too received a similar error. In my case, it appears that the WidgetExtension in watchApp is affecting it. (I have not been able to resolve this yet). In my case, the error is resolved when I remove the WidgetExtension from the target from watchApp, and the error reappears when I include the WidgetExtensio in the target of watchApp again. In addition, I tried creating a new application project for iOSApp, watchApp, and widgetExtension with Xcode15, and this one was able to build.

This is the rest of the error message:

command: P0:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:GenerateDSYMFile /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app.dSYM /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Appname ->

node: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Info.plist -> command: P0:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:ProcessInfoPlistFile /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Info.plist /Users/fon/Downloads/Appname-ios/App/Resources/Appname/Supporting Files/Info.plist ->

node: /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework ->

command: P0:target-Appname-e523191a5dddb74851b7e061f613cdd207daf3e2cc00aeba593ba12e8843cae3-:Debug:Copy /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/Build/Products/Debug-iphoneos/Appname.app/Frameworks/APGconnect.framework /Users/fon/Library/Developer/Xcode/DerivedData/Appname-aepljzymlxbnxmekkzdewisujhhh/SourcePackages/artifacts/apgconnect-swiftpackagemanager/APGconnect/APGconnect.xcframework/ios-arm64/APGconnect.framework

Same issue. Just having a framework target with no dependencies and attempting to "embed and sign" it in the app target results in this error. Haven't found a workaround yet.

Accepted Answer

I too received a similar error. In my case, it appears that the WidgetExtension in watchApp is affecting it. (I have not been able to resolve this yet). In my case, the error is resolved when I remove the WidgetExtension from the target from watchApp, and the error reappears when I include the WidgetExtensio in the target of watchApp again. In addition, I tried creating a new application project for iOSApp, watchApp, and widgetExtension with Xcode15, and this one was able to build.

@Akira_Hayakawa_Atsurae thank you! Solved for me as well 🙇‍♂️

Thanks @Akira_Hayakawa_Atsurae .. saved me the whole day of looking for solution.

@Akira_Hayakawa_Atsurae saved my day in 2023 :)

I got the same error, and this order resolved for me:

Cycle inside my app on XCode 15 beta
 
 
Q