Skip to content

[Bug]: Dependency Cycle Error after Updating to Xcode 15 #651

@shaiArn

Description

@shaiArn

What happened?

Hello OneSignal Unity SDK team,

I recently upgraded to Xcode version 15 and faced an issue while building my project. The error details are below.

Interestingly, a similar issue appears to be occurring with Flutter iOS builds as well. You can find a related discussion here:
https://stackoverflow.com/questions/77138968/handling-cycle-inside-runner-building-could-produce-unreliable-results-after-up

While the solution provided in the above Stack Overflow thread does work, it isn't a viable long-term fix for us. The manual intervention it requires disrupts our CI/CD system.

I hope this information aids in diagnosing the issue. If there are any additional details or clarifications needed, please let me know.

Thank you for your attention and support.

Steps to reproduce?

1. Update to Xcode 15
2. Build a Unity project that uses OneSignal SDK for iOS
3. Build an iOS build from Xcode

What did you expect to happen?

The build process to work smoothly without manual changes to Build Phase.

Unity version

2021.3.23f1 (LTS)

OneSignal Unity SDK version

3.0.1

Platform

iOS

Relevant log output

Showing All Messages
Cycle inside Unity-iPhone; building could produce unreliable results.
Cycle details:
→ Target 'Unity-iPhone': CodeSign Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app
○ That command depends on command in Target 'Unity-iPhone': script phase “[CP] Embed Pods Frameworks”
○ Target 'Unity-iPhone' has copy command from 'Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/OneSignalNotificationServiceExtension.appex' to 'Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/PlugIns/OneSignalNotificationServiceExtension.appex'
○ That command depends on command in Target 'Unity-iPhone': script phase “Unity Process symbols”
○ Target 'Unity-iPhone' has a command with output 'Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/<appName>.app.dSYM'
○ Target 'Unity-iPhone' has process command with output 'Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/Info.plist'
○ Target 'Unity-iPhone' has copy command from 'Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/OneSignalNotificationServiceExtension.appex' to 'Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/PlugIns/OneSignalNotificationServiceExtension.appex'


Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/_CodeSignature ->

command: P0:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:CodeSign Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/Frameworks/FBAEMKit.framework/ ->

directoryTreeSignature: � ->

directoryContents: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/Frameworks/FBAEMKit.framework ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/Frameworks/FBAEMKit.framework ->

command: P2:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:PhaseScriptExecution [CP] Embed Pods Frameworks Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Script-7D8413102D645D53E8525294.sh ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Script-7D8413102D645D53E8525294.sh ->

command: P2:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:WriteAuxiliaryFile Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Script-7D8413102D645D53E8525294.sh ->

node: <target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f--fused-phase7-copy-files> ->

command: P0:::Gate target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f--fused-phase7-copy-files ->

node: <Copy Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/PlugIns/OneSignalNotificationServiceExtension.appex> ->

CYCLE POINT ->

command: P0:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:Copy Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/PlugIns/OneSignalNotificationServiceExtension.appex Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/OneSignalNotificationServiceExtension.appex ->

node: <target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f--fused-phase6-symbolupload> ->

command: P0:::Gate target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f--fused-phase6-symbolupload ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Script-685842A99628018F8EEBB260.sh ->

command: P2:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:WriteAuxiliaryFile Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Script-685842A99628018F8EEBB260.sh ->

node: <target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f--fused-phase5-unity-process-symbols> ->

command: P0:::Gate target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f--fused-phase5-unity-process-symbols ->

node: <execute-shell-script-4d46f0999f4e53d6791a1877ccf164d70c3f1bba89277f759c6becf1eeb525a1-target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-> ->

command: P2:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:PhaseScriptExecution Unity Process symbols Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Script-75414130B284C3C5FE31AD75.sh ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/<appName>.app.dSYM/Contents/Resources/DWARF/<appName>/ ->

directoryTreeSignature: � ->

directoryContents: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/<appName>.app.dSYM/Contents/Resources/DWARF/<appName> ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/<appName>.app.dSYM/Contents/Resources/DWARF/<appName> ->

command: P0:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:GenerateDSYMFile Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/<appName>.app.dSYM Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/<appName> ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/Info.plist ->

command: P0:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:ProcessInfoPlistFile Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/Info.plist Users/user/Documents/unity__builds/<dir_name>/Info.plist ->

node: Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/PlugIns/OneSignalNotificationServiceExtension.appex ->

command: P0:target-Unity-iPhone-4d46f0999f4e53d6791a1877ccf164d70fa8628908142c1784945aff676e527f-:Release:Copy Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/<appName>.app/PlugIns/OneSignalNotificationServiceExtension.appex Users/user/Library/Developer/Xcode/DerivedData/Unity-iPhone-ewzqhutllyvbawgwbzvdccarkzxg/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/OneSignalNotificationServiceExtension.appex

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions