2
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 3 years have passed since last update.

Xcode13にバージョンアップしたら、Undefined symbolエラーでビルド出来なくなった

Last updated at Posted at 2021-10-02

Xcode:13
React Native:0.65.1

xcode13にバージョンアップしたら、急に以下のようなエラーが...

エラー一つ目:Undefined symbol:

ld: warning: Could not find or use auto-linked library 'swift_Concurrency'
ld: warning: Could not find or use auto-linked library 'swiftFileProvider'
ld: warning: Could not find or use auto-linked library 'swiftDataDetection'
Undefined symbols for architecture x86_64:
  "__swift_FORCE_LOAD_$_swiftDataDetection", referenced from:
      __swift_FORCE_LOAD_$_swiftDataDetection_$_YogaKit in libYogaKit.a(YGLayoutExtensions.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftDataDetection_$_YogaKit)
  "__swift_FORCE_LOAD_$_swiftFileProvider", referenced from:
      __swift_FORCE_LOAD_$_swiftFileProvider_$_YogaKit in libYogaKit.a(YGLayoutExtensions.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftFileProvider_$_YogaKit

スクリーンショット 2021-09-30 16.35.46.png

<解決方法>
こちらを参考に、Xcodeで[target]/[target]/にvoid.swiftファイルを作る。

スクリーンショット 2021-10-02 22.50.24.png

エラー二つ目:Command PrecompileSwiftBridgingHeader failed with a nonzero exit code

先ほどのエラーは消えたものの、新しいエラーが...

Command PrecompileSwiftBridgingHeader failed with a nonzero exit code

<解決方法>
[Target] -> Built Settings -> Objective-C Bridging Header の [target]-Bridging-Header.hを消す。
スクリーンショット 2021-10-02 22.55.23.png

エラー出なくなりました!解決!

2
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
2
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?