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
Kiera replied 3 months ago on January 21, 2025 4:36 AM
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! :)
Karan Nagpal replied 3 months ago on January 20, 2025 8:43 PM
Thank you for your help. I was able to fix the other issues i was having.
Kiera replied 3 months ago on January 10, 2025 4:49 AM
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.
Karan Nagpal replied 3 months ago on January 9, 2025 5:53 PM
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
Kiera replied 3 months ago on January 9, 2025 4:20 AM
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.