Is this possible while inserting a String into Set Crashed: com.apple.root.user-initiated-qos.cooperative 0 libswiftCore.dylib 0xf4c0 _assertionFailure(_:_:flags:) + 136 1 libswiftCore.dylib 0x17f484 ELEMENT_TYPE_OF_SET_VIOLATES_HASHABLE_REQUIREMENTS(_:) + 3792 2 MyEatApp 0x44f6e8 specialized _NativeSet.insertNew(_:at:isUnique:) + 4333926120 (<compiler-generated>:4333926120) 3 MyEatApp 0x44eaec specialized Set._Variant.insert(_:) + 4333923052 (<compiler-generated>:4333923052) 4 MyEatApp 0x479f7c HomeViewModel.hanldeAnnouncementCard(from:) + 293 (HomeViewModel+PersonalizedOffer.swift:293) 5 libswift_Concurrency.dylib 0x5c134 swift::runJobInEstablishedExecutorContext(swift::Job*) + 292 6 libswift_Concurrency.dylib 0x5d5c8 swift_job_runImpl(swift::Job*, swift::SerialExecutorRef) + 156 7 libdispatch.dylib 0x13db0 _dispatch_root_queue_drain + 364 8 libdispatch.dylib 0x1454c _dispatch_worker_thread2 + 156 9 libsystem_pthread.dylib 0x9d0 _pthread_wqthread + 23
Search results for
Swift 6
49,202 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi! Sorry for the necromancy but this issue still persists in xcode 16.4 and xcode 26 beta 6 For now my choice of a workaround is to play with that Show live issues checkbox Such a frustrating bug for someone who tries to learn swift
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
@DTS Engineer Thank you so much for your reply. The issue persisted on Beta 5 so used the old-style icon export into Asset / AppIcon in place of the nice Icon Composer-made icon. But, I will test on Beta 6. If it still persists, will file a bug report. Looking forward to this being resolved in an upcoming build. Have enjoyed using Icon Composer - it makes creating wholesome icons a breeze. —Siddharth
Topic:
Developer Tools & Services
SubTopic:
Instruments
Tags:
I watched the video Build an AppKit app with the new design and followed the discussion about how to have a button avoid a window corner. However, the code is in Swift and my codebase is still heavily written in objective-c. I've searched NSView.h but can't find anything new related to safe areas and corners. How are we supposed to avoid corners using objective-c?
Topic:
UI Frameworks
SubTopic:
AppKit
+1 from me, also having this same issue with Xcode 26 beta 6. None of the image layers in my icon have alpha channels, but when you inspect the png produced by Xcode in the app bundle, it has an alpha channel. Logged FB: FB19782649
Topic:
Developer Tools & Services
SubTopic:
Instruments
Tags:
Update: The “You started Playing XXX” activity finally showed up after about 6 days. I’m guessing Apple’s backend needs some time to generate/review the associated data?
Topic:
Graphics & Games
SubTopic:
GameKit
Tags:
I’m presuming you want the resulting digital identity to be persistent, that is, to survive your app being terminated and relaunched. If so, you need to store the private key and the certificate somewhere, and the best place for storing credentials like this is the keychain. Standard practice here is: Generate the private key in the keychain. Derive the public key from the private key. Export the public key bits and send that your certificate issuing infrastructure. Get back the certificate. Add that to your keychain. Get a digital identity from the keychain. There are various APIs to support this: In step 1, use SecKeyCreateRandomKey. In step 2, use SecKeyCopyPublicKey. In step 3, use SecKeyCopyExternalRepresentation. In step 4, if the server sends you back a PEM, you’ll need to decode that to get a DER. You can then import that using SecCertificateCreateWithData. In step 5, use SecItemAdd. In step 6, use SecItemCopyMatching. We have a bunch of resources that can help with this. I recommend that you
Topic:
Privacy & Security
SubTopic:
General
As of now the issue still persists on iOS 26 beta 6 simulator.
Topic:
App & System Services
SubTopic:
Notifications
Tags:
I’m experiencing a crash in WKWebView on iOS 26 Developer Beta 5 and Beta 6 with the following exception: CALayer position contains NaN: [nan 65] The crash occurs when the following CSS properties are applied to content displayed in WKWebView: -webkit-user-select: none; -webkit-touch-callout: none; This issue happens consistently whenever these styles are set, leading to the crash inside WKWebView. Is this a known bug in the current iOS 26 betas, or is there a recommended workaround?
Xcode 26 Beta 6 (17A5295f) appears to fix the issue at my side. 👍
Topic:
UI Frameworks
SubTopic:
UIKit
Tags:
This seems to be fixed with Xcode 26 beta 6. I am now able to run the iOS 17 and 18 simulators, as well as build to my device again. Excellent news! The bug reports filed by folks here were helpful in addressing this, so thank you to everyone here who took the time to file one. — Ed Ford, DTS Engineer
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I've been running into issues with Xcode Cloud/my workflow when it's trying to archive the app. I've tested locally and both archiving and building the app for release works. I've tried a few things to clear it. pod deintegrate and pod install Checking off archive for the build scheme Creating a certificate for both development and distribution. I made sure automatic signing was enabled as well. I have a ci_scripts/ci_post_clone.sh script that successfully completes. Have tried setting the xcode version of the workflow to 16.2 which is what my local xcode version is. I've switched it back to the latest, 16.4. running pod update Updating flutter However, I consistently get the following 2 errors : `Showing All Messages Run command: 'xcodebuild archive -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/work
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags:
Xcode
Signing Certificates
Xcode Cloud
This is still a problem for iOS 26 beta 7 / Xcode 26 beta 6.
Topic:
Developer Tools & Services
SubTopic:
Instruments
Tags:
Seeing same issue with Xcode beta 6 on iOS 18.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Hi all, I’m trying to add a file to a game on my iPhone via my MacBook. Now we have no iTunes connecting with the cable brings up the same menus however I’m being told I have to reset my iPhone back to factory settings to do this (see attached). I’m on IOS26 beta 6. A couple of questions I’ve backed up via iCloud, if I reset would I be able to reset it right back to my current set up with the beta, would I lose anything? Is there another way to connect to my MacBook to enable access to the games and files that would allow me to do a minor change without having to reset?