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

Build error in Xcode v16.0 beta 5 #58

Open
OIO-WPK opened this issue Aug 8, 2024 · 7 comments
Open

Build error in Xcode v16.0 beta 5 #58

OIO-WPK opened this issue Aug 8, 2024 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@OIO-WPK
Copy link

OIO-WPK commented Aug 8, 2024

Question

Anyone else have issues building in Xcode 16 beta 5?

Additional Context

Beta 4 was OK. With beta 5, projects with CodableCSV package have build errors.

Screenshot 2024-08-07 at 8 43 40 PM

System

  • OS: macOS 14.6.1
  • CodableCSV: 0.6.7
@OIO-WPK OIO-WPK added the question Further information is requested label Aug 8, 2024
@kavoye
Copy link

kavoye commented Aug 8, 2024

CrunchyBagel@50dfdca

@iago849
Copy link

iago849 commented Aug 9, 2024

CrunchyBagel@50dfdca

even specifying

pod 'CodableCSV', :git => 'https://github.com/dehesa/CodableCSV.git', :branch => 'develop', :commit => '50dfdca'

still brings an error for watchOS target

@alex-taffe
Copy link

I filed FB14824841 with Apple on this one, Swift itself is crashing during compile

1.	Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1)
2.	Compiling with effective version 5.10
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for CodableCSV)
4.	While running pass #1627 SILModuleTransform "MandatorySILLinker".
5.	While deserializing SIL function "NSDecimalString"
6.	*** DESERIALIZATION FAILURE ***
*** If any module named here was modified in the SDK, please delete the ***
*** new swiftmodule files from the SDK and keep only swiftinterfaces.   ***
module 'Foundation', builder version '6.0(5.10)/Apple Swift version 6.0 (swiftlang-6.0.0.7.6 clang-1600.0.24.1)', built from swiftinterface, resilient, loaded from '/Applications/Xcode-16.0.0-Beta.5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/18.0/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftmodule'
SILFunction type mismatch for 'NSDecimalString': '$@convention(c) (UnsafePointer<Decimal>, Optional<AnyObject>) -> @autoreleased Optional<NSString>' != '$@convention(c) (UnsafePointer<Decimal>, Optional<AnyObject>) -> @autoreleased NSString'


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):
0  swift-frontend           0x00000001064d9194 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x00000001064d73e8 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x00000001064d9760 SignalHandler(int) + 292
3  libsystem_platform.dylib 0x000000019cf22584 _sigtramp + 56
4  libsystem_pthread.dylib  0x000000019cef1c20 pthread_kill + 288
5  libsystem_c.dylib        0x000000019cdfea30 abort + 180
6  swift-frontend           0x0000000101607658 swift::ModuleFileSharedCore::outputDiagnosticInfo(llvm::raw_ostream&) const + 0
7  swift-frontend           0x000000010159bab4 swift::ModuleFile::getSourceLoc() const + 0
8  swift-frontend           0x00000001015e3ce8 swift::SILDeserializer::readSILFunctionChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILFunction*, llvm::StringRef, bool, bool) + 1916
9  swift-frontend           0x00000001015f29d8 swift::SILDeserializer::lookupSILFunction(swift::SILFunction*, bool) + 452
10 swift-frontend           0x00000001016b4c24 swift::SILLinkerVisitor::maybeAddFunctionToWorklist(swift::SILFunction*, swift::SerializedKind_t) + 360
11 swift-frontend           0x00000001016b4e44 swift::SILLinkerVisitor::process() + 476
12 swift-frontend           0x000000010172fd0c swift::SILModule::linkFunction(swift::SILFunction*, swift::SILModule::LinkingMode) + 120
13 swift-frontend           0x0000000101deb8f0 (anonymous namespace)::SILLinker::run() + 64
14 swift-frontend           0x0000000101cc3a4c swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 13436
15 swift-frontend           0x0000000101cfc9dc swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
16 swift-frontend           0x0000000101ce0340 swift::ExecuteSILPipelineRequest::OutputType swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()>(swift::ExecuteSILPipelineRequest const&, swift::ExecuteSILPipelineRequest::OutputType swift::evaluateOrFatal<swift::ExecuteSILPipelineRequest>(swift::Evaluator&, swift::ExecuteSILPipelineRequest)::'lambda'()) + 412
17 swift-frontend           0x0000000101ce2abc swift::runSILDiagnosticPasses(swift::SILModule&) + 612
18 swift-frontend           0x00000001012602cc swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 84
19 swift-frontend           0x0000000100e8c268 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1376
20 swift-frontend           0x0000000100e8b474 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 984
21 swift-frontend           0x0000000100e8e728 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1680
22 swift-frontend           0x0000000100e8d458 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
23 swift-frontend           0x0000000100e1450c swift::mainEntry(int, char const**) + 3680
24 dyld                     0x000000019cb67154 start + 2476

@GerdC
Copy link

GerdC commented Aug 18, 2024

For the record, same happens with Xcode 16.1 beta

@HendX
Copy link

HendX commented Aug 20, 2024

This issue is now acknowledged in Xcode 16 beta 7 notes:

https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes

"your app may crash on launch on platforms earlier than the latest versions of the respective OS with errors indicating missing symbols in NSDecimal"

@mnorth719
Copy link

At the time of writing this comment, this is still an issue on the Xcode 16 RC.

@dehesa any updates here on a workaround? I don't feel confident that apple is going to address this on their end before the public release of iOS 18.

JacobSyndeo referenced this issue in CrunchyBagel/CodableCSV Sep 12, 2024
@GerdC
Copy link

GerdC commented Sep 16, 2024

Xcode 16 can be downloaded from the App Store.
CoodableCSV compiles and works for me with Xcode 16 from the App Store.

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

No branches or pull requests

8 participants