Search results for

Swift 6

49,202 results found

Post

Replies

Boosts

Views

Activity

ELEMENT_TYPE_OF_SET_VIOLATES_HASHABLE_REQUIREMENTS
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
6
0
300
3w
Reply to Icon composer icon contains alpha channel upload error
@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
3w
Avoiding a macOS Tahoe window corner in objective-c
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
3
0
153
3w
Reply to mTLS : Guidance on Generating SecIdentity with Existing Private Key and Certificate
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
3w
"CALayer position contains NaN" Crash in WKWebView on iOS 26 Beta
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?
4
0
384
3w
Xcode Cloud - Command PhaseScriptExecution failed with a nonzero exit code
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
2
0
137
3w
Backup when wanting to connect to MacBook
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?
5
0
283
3w