DoKit
DoKit copied to clipboard
【iOS打包】-报symbol(s) not found for architecture arm64 错误
采用pod的方式引入DoraemonKit pod 'DoraemonKit/Core', '~> 3.0.4', :configurations => ['Debug'] #必选 pod 'DoraemonKit/WithGPS', '~> 3.0.4', :configurations => ['Debug'] #可选 pod 'DoraemonKit/WithLoad', '~> 3.0.4', :configurations => ['Debug'] #可选 pod 'DoraemonKit/WithDatabase', '~> 3.0.4', :configurations => ['Debug'] #可选 pod 'DoraemonKit/WithMLeaksFinder', '~> 3.0.4', :configurations => ['Debug'] #可选
在调试情况下可以使用模拟器和 真机,打包时报错: "_dlaLoadModels", referenced from: -[DoraemonMethodUseTimeManager fixLoadModelArray] in DoraemonMethodUseTimeManager.o -[DoraemonMethodUseTimeManager fixLoadModelArrayForHealth] in DoraemonMethodUseTimeManager.o ld: symbol(s) not found for architecture arm64
只引入DoraemonKit/Core' 是可link 过的 pod 'DoraemonKit/Core', '> 3.0.4', :configurations => ['Debug','Test'] #必选 // pod 'DoraemonKit/WithGPS', '> 3.0.4', :configurations => ['Debug','Test'] #可选 // pod 'DoraemonKit/WithLoad', '> 3.0.4', :configurations => ['Debug','Test'] #可选 // pod 'DoraemonKit/WithDatabase', '> 3.0.4', :configurations => ['Debug','Test'] #可选 // pod 'DoraemonKit/WithMLeaksFinder', '~> 3.0.4', :configurations => ['Debug','Test'] #可选
同样的问题
+1
@jtsky 您好,如果这个项目还在维护,我这边可以提供问题复现还原。麻烦提供下官方的解决方案。
+1
+1
+1
+1
+1 "_dlaLoadModels", referenced from: -[DoraemonMethodUseTimeManager fixLoadModelArray] in DoraemonMethodUseTimeManager.o -[DoraemonMethodUseTimeManager fixLoadModelArrayForHealth] in DoraemonMethodUseTimeManager.o ld: symbol(s) not found for architecture armv7
添加这个 pod 'DoraemonKit/WithLoad', ' 3.0.7', :configurations => ['Debug'] 会报错 Xcode 配置只有arm64 的架构 "_dlaLoadModels", referenced from: -[DoraemonMethodUseTimeManager fixLoadModelArray] in DoraemonMethodUseTimeManager.o -[DoraemonMethodUseTimeManager fixLoadModelArrayForHealth] in DoraemonMethodUseTimeManager.o ld: symbol(s) not found for architecture armv7
我试了一下,是可以 archive 过的,能否给个 Demo 工程,我试一下
@weizhangCoder @cheng-ren @qyhongfan
+1 "_dlaLoadModels", referenced from: -[DoraemonMethodUseTimeManager fixLoadModelArray] in DoraemonMethodUseTimeManager.o -[DoraemonMethodUseTimeManager fixLoadModelArrayForHealth] in DoraemonMethodUseTimeManager.o ld: symbol(s) not found for architecture armv7
fastlane gym遇到同样的问题,怎么解决?
+1 "_dlaLoadModels", referenced from: -[DoraemonMethodUseTimeManager fixLoadModelArray] in DoraemonMethodUseTimeManager.o -[DoraemonMethodUseTimeManager fixLoadModelArrayForHealth] in DoraemonMethodUseTimeManager.o ld: symbol(s) not found for architecture armv7
fastlane gym遇到同样的问题,怎么解决?
暂时先不要pod 'DoraemonKit/WithLoad' 这个模块
+1,打包的时候提示ld: symbol(s) not found for architecture arm64 @chasontang