0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

flutter buildで詰まった話

Posted at

もうすぐ問題無くなると思うけど、備忘録として残しておく。

flutter buildでエラーが表示されていて、半日ほど詰まった件。

 flutter build ipa --dart-define=PRODUCTION=false --profile --no-codesign --build-number=$GITHUB_RUN_NUMBER
  shell: /bin/bash -e {0}
  env:
    FLUTTER_ROOT: /Users/runner/hostedtoolcache/flutter/stable-3.32.8-arm64
    PUB_CACHE: /Users/runner/.pub-cache
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Archiving [パッケージ名]...
Running pod install...                                           2,216ms
Running Xcode build...                                          
Xcode archive done.                                         13.7s
Failed to build iOS app
Swift Compiler Error (Xcode): Value of type 'Product.SubscriptionInfo' has no member 'winBackOffers'
/Users/runner/.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.4.2/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:76:53

Swift Compiler Error (Xcode): Value of type 'Product.SubscriptionInfo.RenewalInfo' has no member 'eligibleWinBackOfferIDs'
/Users/runner/.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.4.2/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/InAppPurchasePlugin+StoreKit2.swift:158:33

Swift Compiler Error (Xcode): Cannot find 'winBackOffers' in scope
/Users/runner/.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.4.2/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift:57:35

Swift Compiler Error (Xcode): Type 'Product.SubscriptionOffer.OfferType' has no member 'winBack'
/Users/runner/.pub-cache/hosted/pub.dev/in_app_purchase_storekit-0.4.2/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift:142:20

Encountered error while archiving for device.

原因はgithub actionsのyamlファイルで定義しているmacos-latestが古く、Xcode16でビルドができなかったためだった。

runs-osを下記に変更すると無事に動いた

jobs:
  build:
    runs-on: macos-15

macos-14で動かすXcodeを指定すればmacos-latestでもいいのかもだけど、すぐに更新されるようなので、macos-15を直接していした。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?