Search results for

xcode github

92,006 results found

Post

Replies

Boosts

Views

Activity

How can I get the system to use my FSModule for probing?
I've gotten to the point where I can use the mount(8) command line tool and the -t option to mount a file system using my FSKit file system extension, in which case I can see a process for my extension launch, probe, and perform the other necessary actions. However, when plugging in my USB flash drive or trying to mount with diskutil mount, the file system does not mount: $ diskutil mount disk20s3 Volume on disk20s3 failed to mount If you think the volume is supported but damaged, try the readOnly option $ diskutil mount readOnly disk20s3 Volume on disk20s3 failed to mount If you think the volume is supported but damaged, try the readOnly option Initially I thought it would be enough to just implement probeExtension(resource:replyHandler:) and the system would handle the rest, but this doesn't seem to be the case. Even a trivial implementation that always returns .usable doesn't cause the system to use my FSModule, even though I've enabled my extension in System Settings > General > Login Items & Ex
12
0
489
2w
Reply to Should SwiftUI view models in Swift 6 be both @Observable and @MainActor?
As of today (27 Aug), Xcode 27 has not yet been released - you can see the latest versions listed at xcodereleases.com. Regarding Default Actor Isolation, it is indeed available as a build setting. From my experience with Xcode 26, it needs to be explicitly set to MainActor if you want compiler enforcement. That’s also consistent with what was mentioned in the WWDC session.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to DCDevice.current.generateToken : return Error Missing or incorrectly formatted device token payload
I believe I am experiencing the same issue described here, so I would like to add more details. In my iOS app, I implemented DeviceCheck token generation and server-side validation. On recent devices everything works as expected: the server validates the token successfully and returns status 200 along with the two bit values. However, on iPhone 6S running iOS 15.8.4 only, the request fails with: Request failed with status code 400 This happens consistently in both environments: Development: https://api.development.devicecheck.apple.com/v1 Production: https://api.devicecheck.apple.com/v1 On iPhone 6S, device.supported returns true, and the generated token is sent to the server. The token length is over 2000 characters (base64), and visually it looks similar to tokens from newer devices that work fine. So I don't think the app is failing to generate a token. Server side is implemented in TypeScript using jsonwebtoken: ^9.0.2. Other devices on iOS 16+ pass validation without problems, but the 6S with iO
Topic: Privacy & Security SubTopic: General Tags:
2w
Crash when testing Speech sample app with FoundationModels on macOS 26.0 beta and iOS 26.0 beta
Hello, I am testing the sample project provided here: Bringing advanced speech-to-text capabilities to your app. On both macOS 26.0 beta and iOS 26.0 beta, the app crashes immediately on launch with a dyld Symbol not found error related to FoundationModels.framework. It feels like this may be related to testing primarily on newer Apple Silicon devices, as I am seeing consistent crashes on an Intel MacBook and on an older iPhone device. I would appreciate any insight, confirmation, or guidance on whether this is a known limitation or if there is a workaround. Is it planned to be resolved soon? Environment macOS: Device: MacBook Pro (Intel) Processor: 2 GHz Quad-Core Intel Core i5 Graphics: Intel Iris Plus Graphics 1536 MB Memory: 16 GB 3733 MHz LPDDR4X OS: macOS Tahoe Version 26.0 Beta (25A5338b) iOS: Device: iPhone 11 Model Number: MHDD3HN/A OS: iOS 26.0 Xcode: Version: 26.0 beta 3 (17A5276g) Crash (macOS) Abort signal received. Excerpt from crash dump: dyld`__abort_with_payload: 0x7ff80e3ad4a0 <+
4
0
461
2w
Crash in URLConnectionLoader::loadWithWhatToDo
There are multiple report of crashes on URLConnectionLoader::loadWithWhatToDo. The crashed thread in the stack traces pointing to calls inside CFNetwork which seems to be internal library in iOS. The crash has happened quite a while already (but we cannot detect when the crash started to occur) and impacted multiple iOS versions recorded from iOS 15.4 to 18.4.1 that was recorded in Xcode crash report organizer so far. Unfortunately, we have no idea on how to reproduce it yet but the crash keeps on increasing and affect more on iOS 18 users (which makes sense because many people updated their iOS to the newer version) and we haven’t found any clue on what actually happened and how to fix it on the crash reports. What we understand is it seems to come from a network request that happened to trigger the crash but we need more information on what (condition) actually cause it and how to solve it. Hereby, I attach sample crash report for both iOS 15 and 18. I also have submitted a report (that include mor
8
0
188
2w
Reply to Provisioning Profile missing com.apple.developer.networking.configuration entitlement - Network Extensions not working
If your goal is to join a Wi-Fi network, either temporarily or permanently [1], then the API you need is NEHotspotConfigurationManager. NEHotspotConfigurationManager is gated by a single entitlement: com.apple.developer.networking.HotspotConfiguration. In Xcode, that shows up as the Hotspot capability. So, try this: Create a new project from the iOS > App template. Build and run it on your device. In Signing & Capabilities, add the Hotspot capability. Build and run it again. Does that work? [1] Using the terms from TN3111 iOS Wi-Fi API overview. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
2w
Provisioning Profile missing com.apple.developer.networking.configuration entitlement - Network Extensions not working
Hi everyone, I'm having trouble with Network Extensions capability not being included in my provisioning profiles. Here's my setup: Environment: Xcode 16.0 iOS Deployment Target: 17.0 Paid Apple Developer Program ($99/year) Problem: I'm trying to use NEHotspotConfiguration in my app, but getting this error: entitlement What I've done: ✅ Enabled Network Extensions in App ID capabilities ✅ Enabled Access Wi-Fi Information and Hotspot ✅ Created new provisioning profiles after enabling capabilities ✅ Cleaned build folder and rebuilt ✅ Using Automatically manage signing in Xcode Current status: App ID shows all capabilities are enabled Xcode shows Network Extensions capability is present But provisioning profiles still don't include the entitlement NEHotspotConfiguration fails with entitlement error Questions: Has anyone else experienced this issue? Is there a specific way to force Xcode to include the entitlement? Should I try manual provisioning profile creation? Are there any
1
0
61
2w
Reply to Should SwiftUI view models in Swift 6 be both @Observable and @MainActor?
I haven’t yet watched that video [1] but, in general, I think it does make sense for your view models to be main-actor bound. However, you should keep in mind that there are two ways to achieve that in Xcode 26 beta: Apply @MainActor. Set the Default Actor Isolation build setting to MainActor. There are pros and cons to both approaches, but I suspect that a lot of folks will end up using the second approach for the main app and any libraries that are overwhelmingly UI-focused. I believe that Sima is using the second approach, based on my searching the transcript for the word default. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] Summer has been particularly glorious this year, so I’ve spent my lunchtimes riding rather than watching WWDC videos (-:
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Force a locale from string catalog
I'm writing an iOS app that shares content with buddies. So my app will run in one language but the shared content will use the locale configured for the buddy. I found this Apple documentation which suggests that locale: (Locale(identifier: is the solution. Apple Documentation But I can't get it to work. Here's sample code. struct LocalizationDemoView: View { @State var isEnglish = true var body: some View { var myLocale: String { isEnglish ? en: de } VStack { Toggle(Switch language, isOn: $isEnglish).frame(maxWidth: 200) HStack { Text((myLocale): ) Text(String(localized: Hello world!, locale: (Locale(identifier: myLocale)), comment: To share)) } } } } And here's the excerpt from the string catalog: { sourceLanguage : en, strings : { Hello world! : { comment : To share, localizations : { de : { stringUnit : { state : translated, value : 🇩🇪 Moin Welt! } }, en : { stringUnit : { state : translated, value : 🇬🇧 Hello world! } } } } } } Has Apple reduced support for string catalogs or is my code wrong? Xcode
4
0
207
2w
External Link Account Modal language
Hi All, We are developing our app with an approved External Link Account Entitlement. During the development process (such as installing from Xcode or creating an Ad-hoc build and installing it on a phone), the open() function of the External Link Account API displays the modal our native language. The app only localized to that language. However, after uploading the app with the same configuration to TestFlight, the modal somehow appears in English instead. What could be causing this issue with the External Link Account modal? How can the open() function display the modal in another language when installed from Xcode or an Ad-hoc release build, but in English when installed from TestFlight? How can we show only our native lanugage version only to our Users? Thank you in advance
2
0
145
Mar ’25