프로그래밍/flutter

[flutter] iOS 빌드시 오류 Error (Xcode): Cycle inside Runner

소행성왕자 2024. 1. 15. 12:41
Failed to build iOS app
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/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/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/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Info.plist'
○ Target 'Runner' has copy command from '/Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/MyWidgetExtension.appex' to '/Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/PlugIns/MyWidgetExtension.appex'


Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/_CodeSignature ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:CodeSign /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app ->

node: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Frameworks/Dynatrace.framework/ ->

directoryTreeSignature: � ->

directoryContents: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Frameworks/Dynatrace.framework ->

CYCLE POINT ->

node: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Frameworks/Dynatrace.framework ->

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

node: /Users/nayakim/Library/Developer/Xcode/DerivedData/Runner-cbfuqmcnigwurvglhbtljurajczy/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-AEAB7901A3931ABAC13A676E-Pods-Runner-frameworks-Debug-input-files-f7121498aad61765d5dd51274d296d40-resolved.xcfilelist ->

command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/nayakim/Library/Developer/Xcode/DerivedData/Runner-cbfuqmcnigwurvglhbtljurajczy/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/InputFileList-AEAB7901A3931ABAC13A676E-Pods-Runner-frameworks-Debug-input-files-f7121498aad61765d5dd51274d296d40-resolved.xcfilelist ->

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/nayakim/Library/Developer/Xcode/DerivedData/Runner-cbfuqmcnigwurvglhbtljurajczy/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh ->

node: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Info.plist/ ->

directoryTreeSignature: y ->

directoryContents: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

node: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Info.plist ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Info.plist /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/ios/Runner/Info.plist ->

node: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/PlugIns/MyWidgetExtension.appex ->

command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/PlugIns/MyWidgetExtension.appex /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/MyWidgetExtension.appex ->

node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks> ->

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

node: /Users/nayakim/Documents/naya/program/me/mobile/webview_flutter_onlyweb_kt/build/ios/Debug-iphoneos/Runner.app/Frameworks/Dynatrace.framework


Error launching application on iPhone.

 해결방법

클린 빌드 (Clean Build):

  • Xcode에서 Product 메뉴로 이동한 다음, Clean Build Folder를 선택합니다.

안됨

 

flutter 프로젝트에서 xcode 실행

$ open ios/Runner.xcworkspace 실행후

아래 그림같이 드래그 하여 위치 변경후 다시 빌드

아이폰 : 앱을 확인할수 없음

일반 > 프로파일 및 기기관리 

이슈

iOS 최소 15이상 되야 webview 실행된다.