#
Cannot Build IOS app 'Command PhaseScriptExecution failed with a nonzero exit code'

Hello, I hope you're doing well. I've been trying to get this app to build for hours. I've followed all flutter and mighty webs to setup and configure this app on Xcode on Mac. It's failing with the issue in the subject with these details "

/bin/sh: C:\flutter_windows_3.24.1-stable\flutter/packages/flutter_tools/bin/xcode_backend.sh: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code" I've ensured the flutter path variables are all set, I don't understand why it's looking for windows flutter tools on a Mac device running Xcode? I'd greatly appreciate some guidance. Also, it's saying purchase code is invalid on this form, when it's indeed valid. 

Asked 3 months ago on January 8, 2025 9:28 PM Comments 5 times


  1. Generic placeholder image

    Kiera replied

    Hi, Greetings! Your concern looks resolved now. Please check and feel free to write to us again if you have any questions or need further assistance. Also, can you please spare a moment to rate and review us on Codecanyon - https://codecanyon.net/downloads? 

     

    It makes a world of difference to read the positive responses from our premium item owners. 

     

    Thank you and we appreciate you! :) 

  2. Generic placeholder image

    Karan Nagpal replied

    Thank you for your help. I was able to fix the other issues i was having. 

  3. Generic placeholder image

    Kiera replied

    Hello,

    can you please provide anydesk id so i can connect and help you out. or you need to rearrange accroding to the order given in picture

     

    Thanks & Regards,

    Kiera.

  4. Generic placeholder image

    Karan Nagpal replied

    Hello Kiera, thank you for your reply. I was able to navigate the issue mentioned above thanks to your guidance. I am however experiencing a new issue, something to do with the build phases? Heres the error log:

    Cycle inside Runner; building could produce unreliable results.

    Cycle details:

    → Target 'Runner' has copy command from '/Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/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/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist'

    ○ Target 'Runner' has copy command from '/Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'

     

     

    Raw dependency cycle trace:

     

    target:  ->

     

    node: ->

     

    command: ->

     

    node: /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata ->

     

    command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ExtractAppIntentsMetadata ->

     

    node: ->

     

    command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase7--cp--copy-pods-resources ->

     

    node: /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/FBAudienceNetwork.bundle ->

     

    command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution [CP] Copy Pods Resources /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-DFCCBB8AE31D8458D46AC260.sh ->

     

    node: ->

     

    command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase6--cp--embed-pods-frameworks ->

     

    node: /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/FBLPromises.framework ->

     

    command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution [CP] Embed Pods Frameworks /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-5DB121B28175AC1745CE84CE.sh ->

     

    node: ->

     

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

     

    node: ->

     

    CYCLE POINT ->

     

    command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex ->

     

    node: ->

     

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

     

    node: ->

     

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

     

    node: /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist/ ->

     

    directoryTreeSignature: � ->

     

    directoryContents: /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist ->

     

    node: /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist ->

     

    command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist /Users/minimoo/Downloads/MightyWebSourceCode/flutter source code/webly_flutter/ios/Runner/Info.plist ->

     

    node: /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex ->

     

    command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/minimoo/Library/Developer/Xcode/DerivedData/Runner-bjvkvcyqvmvlludoqrhcawbigyqr/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex

     

  5. Generic placeholder image

    Kiera replied

    Hello,

    Please use 3.24.3 flutter version and try below steps.

    - delete .symlink folder

    - delete pod folder

    -delete .lock file

    run flutter clean

    run flutter pub get

    run cd ios

    run pod install

    Let us know still you face issue.

    Thanks & Regards,

    Kiera.

Recent Tickets
Backend not working after... 1 month ago on March 27, 2025 7:15 AM river is not receiving ri... 2 months ago on January 29, 2025 9:03 AM Unable to setup back end ... 1 month ago on March 27, 2025 3:48 AM Friend Request and Distan... 1 month ago on March 18, 2025 4:11 AM Build Faild 1 month ago on March 9, 2025 2:15 PM Error during build... 1 month ago on March 4, 2025 8:51 PM help 1 month ago on March 3, 2025 1:13 AM Connection Refused Error... 2 months ago on February 27, 2025 4:47 AM Flutter app issues... 2 months ago on February 26, 2025 10:49 AM I Am Getting 403 Access D... 2 months ago on February 17, 2025 11:22 AM