Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode15.3打包报错 #488

Open
caodaxun opened this issue Mar 4, 2024 · 35 comments
Open

Xcode15.3打包报错 #488

caodaxun opened this issue Mar 4, 2024 · 35 comments

Comments

@caodaxun
Copy link

caodaxun commented Mar 4, 2024

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
Copy link
Author

caodaxun commented Mar 4, 2024

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

@crazypoo
Copy link

crazypoo commented Mar 4, 2024

你有没试过回滚版本哦?

@caodaxun
Copy link
Author

caodaxun commented Mar 4, 2024 via email

@MdWhat
Copy link

MdWhat commented Mar 6, 2024

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

@liufashi
Copy link

liufashi commented Mar 6, 2024

只能先将xcode回滚到15.2版本

@yjm2657
Copy link

yjm2657 commented Mar 7, 2024

有大佬解决这个问题吗

@MrL90
Copy link

MrL90 commented Mar 7, 2024

我也碰到这个问题了

@leomqli
Copy link

leomqli commented Mar 7, 2024

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

@voshk
Copy link

voshk commented Mar 7, 2024

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

@afskalsfk
Copy link

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

@chuzhaozhi
Copy link

蹲一个解决方案

@tipshot
Copy link

tipshot commented Mar 7, 2024

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

@tipshot
Copy link

tipshot commented Mar 7, 2024

建议大家花点时间和功夫更换吧:#466 (comment)

@LuckyTruda
Copy link

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

@Miles-Matheson
Copy link

已修复 #Pull491

@CoderLwcXing
Copy link

什么时候更新 podspce?

@Miles-Matheson
Copy link

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

@crazypoo
Copy link

crazypoo commented Mar 9, 2024

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

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

@CoderLwcXing
Copy link

Codable 不是很好用

@JinjunHan
Copy link

Codable 不是很好用

墙裂推荐:CodableWrapper

@crazypoo
Copy link

Codable 不是很好用

墙裂推荐:CodableWrapper

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

@JinjunHan
Copy link

Codable 不是很好用

墙裂推荐:CodableWrapper

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

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

@Gavinooooo
Copy link

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

@lsgmn
Copy link

lsgmn commented Mar 14, 2024

起初以为和 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…

@SnailLoveSmile
Copy link

SnailLoveSmile commented Mar 14, 2024

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

对我的工程 也是可以 M2

@ASWalnut
Copy link

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

@canlanrensheng
Copy link

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

@ASWalnut
Copy link

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

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

@crazypoo
Copy link

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

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

之前就試過一次了

@PassLock-App
Copy link

不需要降级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

@crazypoo
Copy link

不需要降级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

只能解決一時的問題,而且已經不在維護,18都準備來了,說不定就原地爆炸,還不如趁早換

@xiemotongye
Copy link

Swift 5.10 的 bug

@7General
Copy link

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

可以发布pod。。。

@caodaxun
Copy link
Author

caodaxun commented Apr 16, 2024 via email

@intsig171
Copy link

intsig171 commented Apr 25, 2024

几乎无障碍替换HandyJSON的方案SmartCodable: https://github.com/intsig171/SmartCodable 提供了详尽的替换说明。欢迎体验。
我的项中有1400+处使用HandyJSON,3天就全部替换完了。

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests