AssetsPickerViewController
AssetsPickerViewController copied to clipboard
Getting error Abort Trap: 6 when trying to Archive Swift app with AssetsPickerViewController.
Issue Description
Getting error Abort Trap: 6 when trying to Archive app with AssetsPickerViewController.
What
The issue generate on AssetsPickerViewController (2.9.7). This could be an issue as a result of a change in the Swift compiler.
We received this error message from the compiler:
0 swift-frontend 0x0000000109ecdde7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x0000000109ecce38 llvm::sys::RunSignalHandlers() + 248
2 swift-frontend 0x0000000109ece440 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff8188dadfd _sigtramp + 29
4 libsystem_platform.dylib 0x00007f8822f22ac8 _sigtramp + 18446743592847572200
5 libsystem_c.dylib 0x00007ff818810d24 abort + 123
6 swift-frontend 0x0000000109e1acda llvm::report_bad_alloc_error(char const*, bool) + 106
7 swift-frontend 0x0000000109e1acf2 out_of_memory_new_handler() + 18
8 libc++abi.dylib 0x00007ff81888296b operator new(unsigned long) + 43
9 swift-frontend 0x0000000109bdbefd llvm::Function::BuildLazyArguments() const + 77
10 swift-frontend 0x00000001079c4e87 llvm::objcarc::BundledRetainClaimRVs::insertRVCallWithColors(llvm::Instruction*, llvm::CallBase*, llvm::DenseMap<llvm::BasicBlock*, llvm::TinyPtrVectorllvm::BasicBlock*, llvm::DenseMapInfollvm::BasicBlock*, llvm::detail::DenseMapPair<llvm::BasicBlock*, llvm::TinyPtrVectorllvm::BasicBlock* > > const&) + 151
11 swift-frontend 0x00000001079d7f88 (anonymous namespace)::ObjCARCContract::run(llvm::Function&, llvm::AAResults*, llvm::DominatorTree*) + 1384
12 swift-frontend 0x0000000109c13380 llvm::FPPassManager::runOnFunction(llvm::Function&) + 1488
13 swift-frontend 0x0000000109c1a073 llvm::FPPassManager::runOnModule(llvm::Module&) + 67
14 swift-frontend 0x0000000109c13b39 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1161
15 swift-frontend 0x00000001051316df swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module*, llvm::TargetMachine*) + 3791
16 swift-frontend 0x00000001051328cc swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex
Reproduce
Using Xcode 13.3, Archive a project that uses AssetsPickerViewController (2.9.7)
Same shit! Doesn't work normal. fix plz
The same environment and problems. Help me.
ronitvasoya
do you have workaround for this issue?
ronitvasoya
do you have workaround for this issue?
use xcode 13.2 archived.
Downgrading ( for instance https://www.wootechy.com/iphone-issue/downgrade-xcode/ ) to 13.2 do the trick, I can confirm.
Same issue with both Xcode 13.3 and 13.3.1 (while 13.2.1 archives).
By setting 'Enable Bitcode' to 'No', the error is not coming with XCode 13.3.1. Try it once. I am not sure of possible side-effects. From the Apple documentation, 'Enable Bitcode' is an optional optimisation.
https://help.apple.com/xcode/mac/11.0/index.html?localePath=en.lproj#/devde46df08a
Check here: https://github.com/DragonCherry/AssetsPickerViewController/issues/110
same problem.