HandyJSON icon indicating copy to clipboard operation
HandyJSON copied to clipboard

Xcode15.3打包报错

Open caodaxun opened this issue 1 year ago • 36 comments

Call parameter type does not match function signature!
ptr null
 i64  %16 = call swiftcc i64 @swift_getTypeByMangledNameInContext(ptr %15, i64 %10, ptr null, ptr null) #22, !dbg !2584
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
Rename failed: /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/ContextDescriptorType-9285e76d.o.tmp -> /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/ContextDescriptorType.o: No such file or directory
Rename failed: /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/FieldDescriptor-b6c499c4.o.tmp -> /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/FieldDescriptor.o: No such file or directory

caodaxun avatar Mar 04 '24 03:03 caodaxun

Call parameter type does not match function signature!
ptr null
 i64  %16 = call swiftcc i64 @swift_getTypeByMangledNameInContext(ptr %15, i64 %10, ptr null, ptr null) #22, !dbg !2584
Rename failed: /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/ContextDescriptorType-9f6d7741.o.tmp -> /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/ContextDescriptorType.o: No such file or directory
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
Rename failed: /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/FieldDescriptor-2872066d.o.tmp -> /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/FieldDescriptor.o: No such file or directory
0  swift-frontend           0x00000001080bc108 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
1  swift-frontend           0x00000001080bb058 llvm::sys::RunSignalHandlers() + 248
2  swift-frontend           0x00000001080bc6c7 SignalHandler(int) + 311
3  libsystem_platform.dylib 0x00007ff81963a37d _sigtramp + 29
4  libsystem_platform.dylib 0x0000700009a52bc0 _sigtramp + 18446726515619104864
5  libsystem_c.dylib        0x00007ff81952aa49 abort + 126
6  swift-frontend           0x0000000101d9f4a9 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_3::__invoke(void*, char const*, bool) + 761
7  swift-frontend           0x0000000107feb402 llvm::report_fatal_error(llvm::Twine const&, bool) + 402
8  swift-frontend           0x0000000107feb269 llvm::report_fatal_error(char const*, bool) + 41
9  swift-frontend           0x00000001023eb844 llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 164
10 swift-frontend           0x0000000107d9156b llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 235
11 swift-frontend           0x00000001023da461 swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module*, llvm::TargetMachine*, llvm::raw_pwrite_stream*) + 4209
12 swift-frontend           0x00000001023dbec5 swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, llvm::StringRef, llvm::vfs::OutputBackend&, swift::UnifiedStatsReporter*) + 2085
13 swift-frontend           0x00000001023e6256 (anonymous namespace)::LLVMCodeGenThreads::Thread::run() + 198
14 swift-frontend           0x00000001023e6189 (anonymous namespace)::LLVMCodeGenThreads::runThread(void*) + 9
15 libsystem_pthread.dylib  0x00007ff81960c202 _pthread_start + 99
16 libsystem_pthread.dylib  0x00007ff819607bab thread_start + 15
Rename failed: /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/NSDecimalNumberTransform-ee3c3e4e.o.tmp -> /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/NSDecimalNumberTransform.o: No such file or directory
Rename failed: /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/HexColorTransform-56f0ddc9.o.tmp -> /Users/xxx/Library/Developer/Xcode/DerivedData/han-ezydnutpxxdvdngthbspmtadcgpp/Build/Intermediates.noindex/ArchiveIntermediates/han/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/HandyJSON.build/Objects-normal/arm64/HexColorTransform.o: No such file or directory
Command SwiftCompile failed with a nonzero exit code

caodaxun avatar Mar 04 '24 03:03 caodaxun

你有没试过回滚版本哦?

crazypoo avatar Mar 04 '24 10:03 crazypoo

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

caodaxun avatar Mar 04 '24 10:03 caodaxun

我也遇到了同样的问题, 求助大佬

MdWhat avatar Mar 06 '24 07:03 MdWhat

只能先将xcode回滚到15.2版本

liufashi avatar Mar 06 '24 09:03 liufashi

有大佬解决这个问题吗

yjm2657 avatar Mar 07 '24 01:03 yjm2657

我也碰到这个问题了

MrL90 avatar Mar 07 '24 01:03 MrL90

HandyJSon已经不维护了,出现这个问题,可能得弃坑转原生Codable了

leomqli avatar Mar 07 '24 01:03 leomqli

同样的问题 只能 临时Xcode 切回 15.2 了

voshk avatar Mar 07 '24 02:03 voshk

同样遇到,希望官方能维护一下,要不切换起来很麻烦

afskalsfk avatar Mar 07 '24 03:03 afskalsfk

蹲一个解决方案

chuzhaozhi avatar Mar 07 '24 07:03 chuzhaozhi

同样遇到,希望官方可以维护一下,切换的话,工作量有点天量~

tipshot avatar Mar 07 '24 09:03 tipshot

建议大家花点时间和功夫更换吧:https://github.com/alibaba/HandyJSON/issues/466#issuecomment-1136124549

tipshot avatar Mar 07 '24 09:03 tipshot

Xcode: Version 15.3 (15E204a) 同样的问题,求解决,急急急!

LuckyTruda avatar Mar 08 '24 04:03 LuckyTruda

已修复 #Pull491

Miles-Matheson avatar Mar 08 '24 09:03 Miles-Matheson

什么时候更新 podspce?

CoderLwcXing avatar Mar 09 '24 01:03 CoderLwcXing

暂时需要使用的 可以使用这种方式拉取 pod 'HandyJSON', :git => 'https://github.com/Miles-Matheson/HandyJSON.git'

Miles-Matheson avatar Mar 09 '24 03:03 Miles-Matheson

暂时需要使用的 可以使用这种方式拉取 pod 'HandyJSON', :git => 'https://github.com/Miles-Matheson/HandyJSON.git'

或者你直接接手維護.或者你都長痛不如短痛,還是換成Codable的比較好

crazypoo avatar Mar 09 '24 18:03 crazypoo

Codable 不是很好用

CoderLwcXing avatar Mar 10 '24 13:03 CoderLwcXing

Codable 不是很好用

墙裂推荐:CodableWrapper

JinjunHan avatar Mar 11 '24 09:03 JinjunHan

Codable 不是很好用

墙裂推荐:CodableWrapper

如果自己的庫是cocoapods的話,如何依賴這個庫,如果會的話,麻煩請教下如何依賴

crazypoo avatar Mar 11 '24 10:03 crazypoo

Codable 不是很好用

墙裂推荐:CodableWrapper

如果自己的庫是cocoapods的話,如何依賴這個庫,如果會的話,麻煩請教下如何依賴

我看了一下它说,新版只支持 SPM 了,旧版才支持 pod,新版是契合 Xcode15 更新的Swift 宏,我也还没去更新

JinjunHan avatar Mar 11 '24 10:03 JinjunHan

我的 M1 可行:Pods-> HandyJSON->Compilation Mode 选择为 Incremental

Gavinooooo avatar Mar 13 '24 18:03 Gavinooooo

起初以为和 Pod 库有关系,但是找同事确认后,发现低于 Xcode 15.3 的版本是可以打包成功的,但是 Xcode 15.3 的版本就报错了。然后搜索HandyJSON Call parameter type does not match function signature!,发现了这个,Building HandyJSON in Swift 5.10 throws a fatal error ,是Swift 5.10 编译 HandyJSON报错了。目前HandyJSON官方还未解决。

暂时的解决方法是:

在 Pod 的 Target 中找到 HandyJSON, 然后设置Optimization Level为 None和No Optimization,如下图: Uploading bdab22b4223eb28e78e69f15d9adf867.png…

lsgmn avatar Mar 14 '24 03:03 lsgmn

我的 M1 可行:Pods-> HandyJSON->Compilation Mode 选择为 Incremental

对我的工程 也是可以 M2

SnailLoveSmile avatar Mar 14 '24 03:03 SnailLoveSmile

都Xcode15了,怎么还在用这个库啊,作者都不建议用了 #466

ASWalnut avatar Mar 14 '24 08:03 ASWalnut

我解决了这个问题,在 Pod 的 Target 中找到 HandyJSON, 然后设置Release Optimization Level为 None和No Optimization

canlanrensheng avatar Mar 15 '24 09:03 canlanrensheng

我解决了这个问题,在 Pod 的 Target 中找到 HandyJSON, 然后设置Release Optimization Level为 None和No Optimization

但是有隐患,说不定哪次系统升级直接闪退了

ASWalnut avatar Mar 15 '24 09:03 ASWalnut

我解决了这个问题,在 Pod 的 Target 中找到 HandyJSON, 然后设置Release Optimization Level为 None和No Optimization

但是有隐患,说不定哪次系统升级直接闪退了

之前就試過一次了

crazypoo avatar Mar 16 '24 14:03 crazypoo

不需要降级Xcode,也不需要每次都build setting检查。在pod文件下方写上这个 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0' end if target.name == 'HandyJSON' target.build_configurations.each do |config| config.build_settings['SWIFT_COMPILATION_MODE'] = 'incremental' end end end end

MeloDreek avatar Mar 19 '24 09:03 MeloDreek