using #if os(visionOS) does not work in beta 2, but I have noticed in the simulator that I really need to use thicker lines and darker colors for better legibility. Is there a way to do this in beta 2 yet?
Post
Replies
Boosts
Views
Activity
I have a target that is intended to support both iPad and Mac Catalyst. I have the hardened runtime configuration for camera and photo library enabled in Xcode capabilities and get the following error when attempting to upload the Mac Catalyst build to TestFlight. I have been using it locally for a long time, but mostly sending the iPad version to TestFlight.
Documentation on the entitlement indicates it is appropriate for macOS from what I can tell.
Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on macOS. Specifically, key 'com.apple.security.personal-information.photo-library' in 'com.technomage.Data-Boards.pkg/Payload/DataBoards.app/Contents/MacOS/DataBoards' is not supported. (ID: 6af5bcd1-ba53-40ca-9185-c409c5647b61
When building I am seeing reliable segmentation fault 11 errors on one project. If I refactor the code into smaller parts it some times gets that one part to compile but then another fails. The current failure is in a 3 line function I can not really refactor further. Any suggestions on workarounds welcome.struct Project : Codable, Identifiable, Equatable, ListEntry {
var id : UUID = UUID()
var name : String = UUID().uuidString
func save(store: UndoableEventStore, n: Int) {
let act = ListAction.create(at: n, obj:self)
let e = ListChange<Project,Role>(subject: self.id,
action: act)
store.append(e)
}
}1. While emitting IR SIL function "@$s4Ladi7ProjectV4save5store1nyAA18UndoableEventStoreC_SitF".for 'save(store:n:)' (at /Users/lattam/Projects/Ladi/Ladi/Models/Project.swift:17:3)0 swift 0x0000000104d87a13 PrintStackTraceSignalHandler(void*) + 511 swift 0x0000000104d871e6 SignalHandler(int) + 3582 libsystem_platform.dylib 0x00007fff6b6dab1d _sigtramp + 293 libsystem_platform.dylib 0x00000001063dbe00 _sigtramp + 25973276164 swift 0x0000000100c5b615 emitDirectTypeMetadataRef(swift::irgen::IRGenFunction&, swift::CanType, swift::irgen::DynamicMetadataRequest) + 1975 swift 0x0000000100c5ff05 swift::irgen::IRGenFunction::emitTypeMetadataRef(swift::CanType, swift::irgen::DynamicMetadataRequest) + 1496 swift 0x0000000100c61670 swift::CanTypeVisitor<(anonymous namespace)::EmitTypeMetadataRefForLayout, llvm::Value*, swift::irgen::DynamicMetadataRequest>::visit(swift::CanType, swift::irgen::DynamicMetadataRequest) + 1127 swift 0x0000000100c61bea swift::CanTypeVisitor<(anonymous namespace)::EmitTypeMetadataRefForLayout, llvm::Value*, swift::irgen::DynamicMetadataRequest>::visit(swift::CanType, swift::irgen::DynamicMetadataRequest) + 15148 swift 0x0000000100c61fbc swift::irgen::IRGenFunction::emitTypeMetadataRefForLayout(swift::SILType, swift::irgen::DynamicMetadataRequest) + 449 swift 0x0000000100b78253 swift::irgen::IRGenFunction::emitValueWitnessTableRef(swift::SILType, swift::irgen::DynamicMetadataRequest, llvm::Value**) + 21110 swift 0x0000000100b87b68 swift::irgen::emitLoadOfSize(swift::irgen::IRGenFunction&, swift::SILType) + 16811 swift 0x0000000100ada82d swift::irgen::WitnessSizedTypeInfo<(anonymous namespace)::NonFixedEnumTypeInfo>::allocateStack(swift::irgen::IRGenFunction&, swift::SILType, llvm::Twine const&) const + 4512 swift 0x0000000100c16758 swift::SILInstructionVisitor<(anonymous namespace)::IRGenSILFunction, void>::visit(swift::SILInstruction*) + 3760813 swift 0x0000000100c0a8fa swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 983414 swift 0x0000000100ab7080 swift::irgen::IRGenerator::emitGlobalTopLevel() + 171215 swift 0x0000000100be7675 performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::LLVMContext&, swift::SourceFile*, llvm::GlobalVariable**) + 118916 swift 0x00000001009d3e31 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 3667317 swift 0x00000001009c76e4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 682018 swift 0x0000000100954be3 main + 121919 libdyld.dylib 0x00007fff6b4d92e5 start + 1error: Segmentation fault: 11 (in target 'Ladi' from project 'Ladi')