Issue
Can't build for release. I found that optimization_level with -O is not working. Compiler doesn't provide me details
Build Settings
(error)
SWIFT_OPTIMIZATION_LEVEL: "-O"
(success)
SWIFT_OPTIMIZATION_LEVEL: "-Onone"
Error Message
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 NinetyNine)
While running pass #17357670 SILModuleTransform "DeadFunctionAndGlobalElimination".
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 0x00000001072f7300 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x00000001072f62e4 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x00000001072f7910 SignalHandler(int) + 344
3 libsystem_platform.dylib 0x000000018aeeea84 _sigtramp + 56
4 swift-frontend 0x0000000102a3365c (anonymous namespace)::DeadFunctionAndGlobalEliminationPass::run() + 424
5 swift-frontend 0x0000000102a3365c (anonymous namespace)::DeadFunctionAndGlobalEliminationPass::run() + 424
6 swift-frontend 0x0000000102b994a0 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 15312
7 swift-frontend 0x0000000102bbaa04 swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
8 swift-frontend 0x0000000102ba0dd4 llvm::Expectedswift::ExecuteSILPipelineRequest::OutputType swift::Evaluator::getResultUncachedswift::ExecuteSILPipelineRequest(swift::ExecuteSILPipelineRequest const&) + 484
9 swift-frontend 0x0000000102ba3714 swift::runSILOptimizationPasses(swift::SILModule&) + 400
10 swift-frontend 0x0000000102381c10 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 524
11 swift-frontend 0x00000001021e551c performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_deleteswift::SILModule >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1040
12 swift-frontend 0x00000001021e8ab8 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 3288
13 swift-frontend 0x00000001021e6944 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4308
14 swift-frontend 0x00000001021ab68c swift::mainEntry(int, char const**) + 4116
15 dyld 0x000000018ab67f28 start + 2236
Post
Replies
Boosts
Views
Activity
My team account has reached limitations, What can we do for building an app more than limitations in this month?
I can’t find any information about it.
I use the storyboard with UICollectionViewCell. Does dequeueConfiguredReusableCell not support storyboard?
let itemCell = UICollectionView.CellRegistrationItemCollectionViewCell, OrderCollectionModel() { cell, indexPath, model in
//Crash!!
cell.menuLabel.text = model.item?.ingredient
}
class ItemCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var oraderButton: UIButton!
@IBOutlet weak var imageView: UIImageView!
@IBOutlet weak var menuLabel: UILabel!
@IBOutlet weak var descriptionLabel: UILabel!
@IBOutlet weak var ingredientLabel: UILabel!
override init(frame: CGRect) {
super.init(frame: frame)
}
override func awakeFromNib() {
super.awakeFromNib()
}
required init?(coder: NSCoder) {
fatalError("Fatal Error")
}
}
collectionView.dequeueConfiguredReusableCell(
using: itemCell,
for: indexPath,
item: model
)
How can I set inoutView on SwiftUI TextView?