はじめに
・Xcodeにて、build => warning で、successする。
アプリ自体は立ち上がるため、リリースするためapp-connectに送ろうとしました。
・Xcodeにて、archive => error2件発生(どちらも、undefined symbol:~)
errorの内容の解決策がわからない。。。
・ターミナルにて、pod install => ターミナルでwarningあり
ずっと無視してたので、この際pod installの方を解消しようと試みます。
ちなみにSakadachiTimerはアプリ名ですので、それぞれのアプリ名に変換してこの記事を参照してください。
pod install ワーニング内容
[!] The `SakadachiTimer [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-SakadachiTimer/Pods-SakadachiTimer.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `SakadachiTimer [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-SakadachiTimer/Pods-SakadachiTimer.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
環境
No | 項目 | 内容 |
---|---|---|
1 | OS | MacOS Monterey ver 12.5.1 |
2 | Xcode | 14.1 |
3 | Swift | 5.7.1 |
結論
【Pods/Target Support Files/Pods-SakadachiTimer/Pods-SakadachiTimer.release.xcconfig】を開き、「ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES」 をコメントアウトする。
同様に、【Pods/Target Support Files/Pods-SakadachiTimer/Pods-SakadachiTimer.debug.xcconfig】も対応。
これでpod installをしてみる!
が、同じワーニングが表示された。。。
一応archiveをしてみると、、、通った!
エラーが消えて、無事リリースできました。
おわりに
pod installの方は解消できなかったけど、それ関連のarchiveでのエラーは直ったのでよしとします。