Skip to content

[Bug]: XCode throws Cycle inside Runner when building for iOS #790

@fourman-alex

Description

@fourman-alex

What happened?

After following the installation steps in https://documentation.onesignal.com/docs/flutter-sdk-setup XCode will no longer build the project

Steps to reproduce?

1. Create a new Flutter project
2. Follow the steps to install the OneSignal SDK
3. Try running on a iOS device

What did you expect to happen?

For the app to run

OneSignal Flutter SDK version

5.0.4

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

Could not build the precompiled application for the device.
Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner': CodeSign /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app
○ That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”
○ Target 'Runner' has copy command from '/Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/OneSignalNotificationServiceExtension.appex' to '/Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/OneSignalNotificationServiceExtension.appex' to '/Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'


Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/_CodeSignature ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:CodeSign /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app ->

node: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Frameworks/OneSignalCore.framework/ ->

directoryTreeSignature: r ->

directoryContents: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Frameworks/OneSignalCore.framework ->

node: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Frameworks/OneSignalCore.framework ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution [CP] Embed Pods Frameworks /Users/alexfourman/Library/Developer/Xcode/DerivedData/Runner-dtorhcpcrdcckrervwipimaomntv/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-A8FB6AFC6A0A3F7844CA877C.sh ->

node: /Users/alexfourman/Library/Developer/Xcode/DerivedData/Runner-dtorhcpcrdcckrervwipimaomntv/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-A8FB6AFC6A0A3F7844CA877C-Pods-Runner-frameworks-Debug-input-files-da5e40a7284a37f6e7fccba33ed143c9-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/alexfourman/Library/Developer/Xcode/DerivedData/Runner-dtorhcpcrdcckrervwipimaomntv/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-A8FB6AFC6A0A3F7844CA877C-Pods-Runner-frameworks-Debug-input-files-da5e40a7284a37f6e7fccba33ed143c9-resolved.xcfilelist ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5-copy-files> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5-copy-files ->

node: <Copy /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex> ->

CYCLE POINT ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/OneSignalNotificationServiceExtension.appex ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary> ->

command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-thin-binary ->

node: <execute-shell-script-18c1723432283e0cc55f10a6dcfd9e02f1eee2015e8ff5ebcd27678f788c2826-target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-> ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution Thin Binary /Users/alexfourman/Library/Developer/Xcode/DerivedData/Runner-dtorhcpcrdcckrervwipimaomntv/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh ->

node: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Info.plist/ ->

directoryTreeSignature: Z ->

directoryContents: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

node: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/Info.plist /Users/alexfourman/StudioProjects/onesignal/ios/Runner/Info.plist ->

node: /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/alexfourman/StudioProjects/onesignal/build/ios/Debug-iphoneos/OneSignalNotificationServiceExtension.appex


Error launching application on Alex’s iPhone.

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