seong

Could not build the precompiled application for the device.Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'Reachability' has a minimum deployment target of iOS 12.0: /Users/name/StudioProjects/medication_manage/build/ios/Debug-i.. 본문

Flutter/Errors

Could not build the precompiled application for the device.Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'Reachability' has a minimum deployment target of iOS 12.0: /Users/name/StudioProjects/medication_manage/build/ios/Debug-i..

hyeonseong 2024. 3. 28. 10:18

Flutter에서 IOS 기기 빌드 하는데 아래 에러가 발생했다.

Could not build the precompiled application for the device.
Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'Reachability' has a minimum deployment target of iOS 12.0: /Users/ihyeonseong/StudioProjects/medication_manage/build/ios/Debug-iphoneos/ReachabilitySwift/Reachability.framework/Modules/Reachability.swiftmodule/arm64-apple-ios.swiftmodule
/Users/ihyeonseong/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.2/ios/Classes/ReachabilityConnectivityProvider.swift:1:7

 

구글링 해서 찾아보니

Runner의 Build Settings에서 iOS Deployment Target를 12.0으로 올려보라 해서 찾아봤지만

나는 이미 12.0으로 되어 있는데 저게 왜 안돼..?했다.

 

몇시간의 삽질 끝에 iOS에서 에러가 발생한 패키지로 직접 가서 iOS Deployment Target를 바꾸어주어서 해결했다.

connectivity_plus패키지에서 에러가 발생해서 해당 패키지로 이동 후 iOS Deployment Target을 수정

iOS 11.0 -> iOS 12.0으로 변경