Skip to content

[SPM] bootpay_webview_flutter_wkwebview 3.23.x — mixed language source files 빌드 실패 #23

@thkim-meta

Description

@thkim-meta

문제
bootpay_webview_flutter_wkwebview 3.23.x를 SPM으로 빌드하면 mixed language 에러로 실패합니다.
코드 위치는 bootpay_webview_flutter_wkwebview이지만 그 repo는 이슈 활동이 없어 본 repo에 등록합니다.

환경
Flutter 3.29.2 / Xcode 26.4.1 / CocoaPods 1.16.2
영향 버전: bootpay_webview_flutter_wkwebview 3.23.2 ~ 3.23.31 (전부 동일)
발생 조건: flutter config --enable-swift-package-manager 활성화 후 iOS 빌드

에러
target at '.../bootpay_webview_flutter_wkwebview-3.23.31/darwin/bootpay_webview_flutter_wkwebview/Sources/bootpay_webview_flutter_wkwebview'
contains mixed language source files; feature not supported

원인
Sources/bootpay_webview_flutter_wkwebview/ 안에 .swift 49개 + BootpayAutoWarmUp.m 1개가 한 디렉터리에 함께 위치하고 있습니다. SPM은 한 target에 Swift+Objective-C 혼재를 허용하지 않아 빌드가 막힙니다.

문제 파일: BootpayAutoWarmUp.m

재현
flutter create test
cd test
echo " bootpay: ^5.0.16" >> pubspec.yaml
flutter config --enable-swift-package-manager
flutter pub get
flutter build ios --no-codesign

확인 후 답변 부탁드립니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions