无法运行模拟器
环境: Apple M1 Pro, Xcode 14.0
重现步骤:(必现)
Cocoapods导入配置
target 'DokitTest' do
use_frameworks!
pod 'DoraemonKit/Core', '~> 3.0.4', :configurations => ['Debug']
pod 'DoraemonKit/WithLogger', '~> 3.0.4', :configurations => ['Debug']
end
pod install之后, 直接选择模拟器运行失败, 下面是信息
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DDAbstractLogger", referenced from:
_OBJC_CLASS_$_DoraemonCocoaLumberjackLogger in DoraemonCocoaLumberjackLogger.o
"_OBJC_CLASS_$_DDLog", referenced from:
objc-class-ref in DoraemonCocoaLumberjackLogger.o
"_OBJC_CLASS_$_FMDatabase", referenced from:
objc-class-ref in DoraemonFileSyncManager.o
"_OBJC_CLASS_$_GCDWebServer", referenced from:
_OBJC_CLASS_$_DoraemonFileSyncManager in DoraemonFileSyncManager.o
"_OBJC_CLASS_$_GCDWebServerDataRequest", referenced from:
objc-class-ref in DoraemonFileSyncManager.o
"_OBJC_CLASS_$_GCDWebServerDataResponse", referenced from:
objc-class-ref in DoraemonFileSyncManager.o
"_OBJC_CLASS_$_GCDWebServerFileResponse", referenced from:
objc-class-ref in DoraemonFileSyncManager.o
"_OBJC_CLASS_$_GCDWebServerMultiPartFormRequest", referenced from:
objc-class-ref in DoraemonFileSyncManager.o
"_OBJC_CLASS_$_GCDWebServerRequest", referenced from:
objc-class-ref in DoraemonFileSyncManager.o
"_OBJC_METACLASS_$_DDAbstractLogger", referenced from:
_OBJC_METACLASS_$_DoraemonCocoaLumberjackLogger in DoraemonCocoaLumberjackLogger.o
"_OBJC_METACLASS_$_GCDWebServer", referenced from:
_OBJC_METACLASS_$_DoraemonFileSyncManager in DoraemonFileSyncManager.o
ld: symbol(s) not found for architecture x86_64
1条答案
按热度按时间inb24sb21#
可能是M1环境问题, 通过Carthage导入失败