Skip to content

Build error in Xcode v16.0 beta 5 #58

Open

Description

@OIO-WPK

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

Activity

  1. kavoye commented on Aug 8, 2024

    @kavoye
  2. iago849 commented on Aug 9, 2024

    @iago849

    CrunchyBagel@50dfdca

    even specifying

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

    still brings an error for watchOS target

  3. alex-taffe commented on Aug 16, 2024

    @alex-taffe

    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
    
  4. GerdC commented on Aug 18, 2024

    @GerdC

    For the record, same happens with Xcode 16.1 beta

  5. HendX commented on Aug 20, 2024

    @HendX

    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"

  6. mnorth719 commented on Sep 10, 2024

    @mnorth719

    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.

  7. GerdC commented on Sep 16, 2024

    @GerdC

    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

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions