Hello,
I recently updated to Xcode 15.3 and my project stoped to archive for release purpose, when I archive to debug it's ok. Running the same project at Xcode 15.2 it's work properly.
I get this error message:
Attribute 'noalias' applied to incompatible type!
%12 = call noalias i64 @swift_allocObject(ptr %9, i64 %11, i64 7) #2, !dbg !2865
Invalid bitcast
%13 = bitcast i64 %12 to ptr, !dbg !2865
Attribute 'noalias' applied to incompatible type!
%12 = call noalias i64 @swift_allocObject(ptr %9, i64 %11, i64 7) #2, !dbg !2921
Invalid bitcast
%13 = bitcast i64 %12 to ptr, !dbg !2921
Please submit a bug report (Swift.org - Contributing) and include the crash backtrace.
Rename failed: /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/CoreLocation-52d4e941.o.tmp -> /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/CoreLocation.o: No such file or directory
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 0x000000010a45ff3c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
Rename failed: /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/StoreKit-d36c823e.o.tmp -> /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/StoreKit.o: No such file or directory
1 swift-frontend 0x000000010a45f0f8 llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x000000010a460544 SignalHandler(int) + 360
3 libsystem_platform.dylib 0x0000000185c01a24 _sigtramp + 56
4 libsystem_pthread.dylib 0x0000000185bd1cc0 pthread_kill + 288
5 libsystem_c.dylib 0x0000000185adda40 abort + 180
Rename failed: /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/CoreMotion-f800f24b.o.tmp -> /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/CoreMotion.o: No such file or directory
6 swift-frontend 0x0000000104d696d8 PrettyStackTraceFrontend::~PrettyStackTraceFrontend() + 0
7 swift-frontend 0x000000010a3a8a18 llvm::report_fatal_error(llvm::Twine const&, bool) + 280
8 swift-frontend 0x000000010a3a8900 llvm::report_fatal_error(llvm::Twine const&, bool) + 0
9 swift-frontend 0x000000010523c4b8 llvm::detail::PassModel<llvm::Module, llvm::VerifierPass, llvm::PreservedAnalyses, llvm::AnalysisManagerllvm::Module>::printPipeline(llvm::raw_ostream&, llvm::function_ref<llvm::StringRef (llvm::StringRef)>) + 0
10 swift-frontend 0x000000010a15fce8 llvm::PassManager<llvm::Module, llvm::AnalysisManagerllvm::Module>::run(llvm::Module&, llvm::AnalysisManagerllvm::Module&) + 224
11 swift-frontend 0x000000010522f490 swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module*, llvm::TargetMachine*, llvm::raw_pwrite_stream*) + 3992
12 swift-frontend 0x0000000105230bec swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex, llvm::GlobalVariable, llvm::Module*, llvm::TargetMachine*, llvm::StringRef, llvm::vfs::OutputBackend&, swift::UnifiedStatsReporter*) + 2364
13 swift-frontend 0x0000000105238e70 (anonymous namespace)::LLVMCodeGenThreads:
:run() + 156
14 swift-frontend 0x0000000105238dc8 (anonymous namespace)::LLVMCodeGenThreads::runThread(void*) + 12
15 libsystem_pthread.dylib 0x0000000185bd2034 _pthread_start + 136
16 libsystem_pthread.dylib 0x0000000185bcce3c thread_start + 8
Rename failed: /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/Swift-15442403.o.tmp -> /Users/eriknascimento/Library/Developer/Xcode/DerivedData/Unilabs-dhbeqtzhbfuceqgkcieafdwyjkla/Build/Intermediates.noindex/ArchiveIntermediates/Unilabs PROD/IntermediateBuildFilesPath/swift-custom-dump.build/Release-iphoneos/CustomDump.build/Objects-normal/arm64/Swift.o: No such file or directory
Command SwiftCompile failed with a nonzero exit code
4 Likes
Replying to just let you know you're not alone. Also getting this with my project.
2 Likes
cheif
(Dan Berglund)
3
We're also seeing this for our project, more specifically when running our Archive in XCode Cloud. Just temporarily switching our workflow to use XCode 15.2 resolved it for us right now.
3 Likes
jwcross
(Jon Crossley)
4
Same here with a local archive. Downgrading from App Store 15.3 to xcodereleases.com 15.2 fixed it
2 Likes
Found this GitHub issue: Compiler assertion using latest swift toolchain. · Issue #110 · pointfreeco/swift-custom-dump · GitHub
My project didn't directly depend on swift-custom-dump, but it is a sub-dependency of swift-composable-architecture. Upgrading to the latest version of swift-composable-architecture has resolved the issue for me. Downgrading to Xcode 15.2 also works.
2 Likes
Thanks, but I can't update the swift-composable-architecture, I'm using a older version, so I'll have so many corrections to-do :D
Still running into this with 15.4. Updating to the latest Composable-architecture didn't fix the error. Is the only solution to use 15.2?
Pigpocket
(Tomás Sidenfaden)
9
@chingling123 were you able to resolve this? I updated to TCA version 0.54.1 which according to the release notes resolves this problem, but now I am getting a different error I can't resolve:
product '_SwiftUINavigationState' required by package 'swift-composable-architecture' target 'ComposableArchitecture' not found in package 'swiftui-navigation'.
I tried downloading to Xcode 15.2 and that didn't work either, same error.
Hi, no... I tried with version 0.59.0 and I can't do a release archive 