skip to Main Content

I am upgrading xcode into 15 and ios into 17 version. But when I try to build my flutter project in iphone 15 pro max, I get this error

Error (Xcode): Cycle inside Runner; building could produce unreliable results.
Cycle details:
→ Target 'Runner': CodeSign /Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app
○ That command depends on command in Target 'Runner': script phase “[CP] Embed Pods Frameworks”
○ That command depends on command in Target 'Runner': script phase “Thin Binary”
○ Target 'Runner' has process command with output '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'
○ That command depends on command in Target 'Runner': script phase “[CP] Copy Pods Resources”

is there a way to solve this

2

Answers


  1. I managed to solve it by moving Embed Foundation Extensions right bellow Copy Bundle Resources in the Xcode Build Phases configuration like this
    enter image description here

    Note, that my project is quiet large and it is using things like OneSignalNotificationServiceExtension.appex in the Embed Foundation Extensions phase. Thats why this was needed.

    This might not work for everyone but might help someone with similar project config.

    My other project config:

    • cococapods v1.13.0
    • Flutter 3.13.5
    Login or Signup to reply.
  2. I moved the Run script at last in the build phase, it was working fine

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search