Skip to content

[iOS] Build error when building framework for template demo app #372

@diederikh

Description

@diederikh

Environment

macOS 15.5
Xcode 16.2 (tried 16.3 and 16.4 as well).

Description

I've created the template rnef project and followed the Callstack YT tutorial "Adding RN to iOS and Android has never been easier."

When building the framework with "bun rnef package:ios --scheme RNScreens --verbose --configuration Release" I get the following compile error:

1.      Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
2.      Compiling with effective version 5.10
3.      While evaluating request ExecuteSILPipelineRequest(Run pipelines { PrepareOptimizationPasses, EarlyModulePasses, HighLevel,Function+EarlyLoopOpt, HighLevel,Module+StackPromote, MidLevel,Function, ClosureSpecialize, LowLevel,Function, LateLoopOpt, SIL Debug Info Generator } on SIL for RNScreens)
4.      While running pass #5254 SILFunctionTransform "EarlyPerfInliner" on SILFunction "@$s9RNScreens25MedableReactNativeManagerCACyAA0cdE5ErrorOYKcfcTo".
 for 'init()' (at /Users/diederik/Development/Medable/react-native-patient-app/ios/RNScreens/MedabeReactNativeManager.swift:13:10)
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           0x000000010a3c6a9c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x000000010a3c4cf0 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x000000010a3c7068 SignalHandler(int) + 292
3  libsystem_platform.dylib 0x0000000180850624 _sigtramp + 56
4  swift-frontend           0x0000000105dae774 ConstantTracker::scanProjections(swift::SILValue, llvm::SmallVectorImpl<swift::Projection>*) + 88
5  swift-frontend           0x0000000105dae2a0 ConstantTracker::trackInst(swift::SILInstruction*) + 232
6  swift-frontend           0x0000000105c79aa8 (anonymous namespace)::SILPerformanceInliner::isProfitableToInline(swift::FullApplySite, ShortestPathAnalysis::Weight, ConstantTracker&, int&, llvm::DenseMap<swift::SILBasicBlock*, unsigned long long, llvm::DenseMapInfo<swift::SILBasicBlock*, void>, llvm::detail::DenseMapPair<swift::SILBasicBlock*, unsigned long long>> const&) + 3252
7  swift-frontend           0x0000000105c769f8 (anonymous namespace)::SILPerformanceInlinerPass::run() + 9160
8  swift-frontend           0x0000000105bb1b74 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 3448
9  swift-frontend           0x0000000105bab394 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 252
10 swift-frontend           0x0000000105be76a4 swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
11 swift-frontend           0x0000000105bcb008 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
12 swift-frontend           0x0000000105bcdce4 swift::runSILOptimizationPasses(swift::SILModule&) + 440
13 swift-frontend           0x0000000105144518 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 1160
14 swift-frontend           0x0000000104d6e9c4 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
15 swift-frontend           0x0000000104d6e340 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 2888
16 swift-frontend           0x0000000104d70e88 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1684
17 swift-frontend           0x0000000104d6fbb4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3572
18 swift-frontend           0x0000000104cf6a5c swift::mainEntry(int, char const**) + 3680
19 dyld                     0x0000000180476b98 start + 6076
Command SwiftCompile failed with a nonzero exit code

CompileSwift normal arm64 (in target 'RNScreens' from project 'ReactNativePatientApp')
    cd /Users/diederik/Development/Medable/react-native-patient-app/ios

Reproducible Demo

I've attached a zip file with the demo project.

rnef-test-app.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions