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?

More than 1 year has passed since last update.

【Xcode】archiveでerror【undefined symbol: 】

Posted at

はじめに

・Xcodeにて、build => warning で、successする。
アプリ自体は立ち上がるため、リリースするためapp-connectに送ろうとしました。
・Xcodeにて、archive => error2件発生(どちらも、undefined symbol:~)
errorの内容の解決策がわからない。。。
・ターミナルにて、pod install => ターミナルでwarningあり
ずっと無視してたので、この際pod installの方を解消しようと試みます。
 
ちなみにSakadachiTimerはアプリ名ですので、それぞれのアプリ名に変換してこの記事を参照してください。

pod install ワーニング内容

terminal
[!] 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】も対応。

スクリーンショット 2022-11-16 2.27.19.png
スクリーンショット 2022-11-21 16.29.44.png

これでpod installをしてみる!

 
 
 
が、同じワーニングが表示された。。。
 
一応archiveをしてみると、、、通った!
エラーが消えて、無事リリースできました。

おわりに

pod installの方は解消できなかったけど、それ関連のarchiveでのエラーは直ったのでよしとします。

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?