React Native IOS打包问题汇总

问题Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral………………

Showing Recent Messages
Could not find or use auto-linked library 'swiftCoreFoundation'

Could not find or use auto-linked library 'swiftQuartzCore'

Could not find or use auto-linked library 'swiftCore'

Could not find or use auto-linked library 'swiftCoreGraphics'

Could not find or use auto-linked library 'swiftUIKit'

Could not find or use auto-linked library 'swiftDarwin'

Could not find or use auto-linked library 'swiftFoundation'

Could not find or use auto-linked library 'swiftMetal'

Could not find or use auto-linked library 'swiftObjectiveC'

Could not find or use auto-linked library 'swiftDispatch'

Could not find or use auto-linked library 'swiftCoreImage'

Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral

Undefined symbol: associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType

Undefined symbol: associated conformance descriptor for Swift.ExpressibleByIntegerLiteral.Swift.ExpressibleByIntegerLiteral.IntegerLiteralType: Swift._ExpressibleByBuiltinIntegerLiteral

Undefined symbol: method descriptor for Swift.ExpressibleByFloatLiteral.init(floatLiteral: A.FloatLiteralType) -> A

Undefined symbol: protocol descriptor for Swift.ExpressibleByIntegerLiteral

Undefined symbol: value witness table for Builtin.Int32

Undefined symbol: __swift_FORCE_LOAD_$_swiftMetal

Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreImage

Undefined symbol: associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralType

Undefined symbol: __swift_FORCE_LOAD_$_swiftQuartzCore

Undefined symbol: __swift_FORCE_LOAD_$_swiftDispatch

Undefined symbol: method descriptor for Swift.ExpressibleByIntegerLiteral.init(integerLiteral: A.IntegerLiteralType) -> A

Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreFoundation

Undefined symbol: protocol witness table for Swift.Int : Swift._ExpressibleByBuiltinIntegerLiteral in Swift

Undefined symbol: __swift_FORCE_LOAD_$_swiftObjectiveC

Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreGraphics

Undefined symbol: _swift_getForeignTypeMetadata

Undefined symbol: __swift_FORCE_LOAD_$_swiftFoundation

Undefined symbol: __swift_FORCE_LOAD_$_swiftDarwin

Undefined symbol: associated conformance descriptor for Swift.ExpressibleByFloatLiteral.Swift.ExpressibleByFloatLiteral.FloatLiteralType: Swift._ExpressibleByBuiltinFloatLiteral

Undefined symbol: __swift_FORCE_LOAD_$_swiftUIKit

Undefined symbol: protocol witness table for Swift.Float : Swift._ExpressibleByBuiltinFloatLiteral in Swift
图片版错误信息
解决方法

如图对Excluded Architectures进行配置后,Product菜单->Clean Build Folder,再重新编译即可。

image.png

如果还不行,可按参考链接中的第二步继续操作,问题参考:https://stackoverflow.com/questions/66369650/undefined-symbol-protocol-descriptor-for-swift-expressiblebyfloatliteral-issu

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一,libxml/HTMLparser.h file not find 第一种方法:点击左边项目的根目录,再点击右...
    幻想no现实阅读 8,086评论 1 8
  • XCode使用一:Xcode基本操作 传送至原文地址 1.Xcode IDE概览 说明:从左到右,依次是“导航窗格...
    无名小鱼会吐火阅读 29,692评论 0 23
  • 【转载】曾梦想仗剑走天涯 1.Xcode IDE概览 说明:从左到右,依次是“导航窗格(Navigator)->边...
    06a6a973d7ab阅读 3,923评论 2 20
  • 1.Xcode IDE概览 说明:从左到右,依次是“导航窗格(Navigator)->边列(Gutter)->焦点...
    小地阅读 5,408评论 0 9
  • ios 常见问题解决 一,libxml/HTMLparser.h file not find 第一种方法: 点击左...
    rlqs阅读 3,916评论 0 1