Search results for

“xcode github”

95,433 results found

Post

Replies

Boosts

Views

Activity

Reply to How to enable MIE on MacOS
On macOS with Apple Silicon, Memory Integrity Enforcement (MIE) combined with Arm Memory Tagging Extension (MTE) can be a fantastic way to spot heap memory issues. While stack sanitizer support for MTE is generally easier to set up, enabling heap tagging usually requires some specific settings or environment variables. These might not be as well-documented or easily accessible as on other platforms like Linux. Here are a few ways you might try to enable heap tagging with MTE on macOS: Environment Variables: Apple’s documentation and developer tools might not list environment variables for controlling MTE heap tagging as clearly as they do for some other sanitizers. However, you can often find what you need by experimenting with variables that are usually used for debugging and runtime settings. Some common variables to try include: MallocStackLogging: This is mainly for logging the stack, but sometimes related environment variables can affect how the memory allocator works. DYLD_INSERT_LIBRARIES: You might tr
3w
Xcode cloud
I'm facing an issue with Xcode Cloud. Every branch I push to my GitLab repository is not appearing as selectable when I try to create a build with my workflow. Additionally, if I try to update the workflow from Xcode, it crashes every time I save the changes. Any help would be appreciated. Translated Report (Full Report Below) ------------------------------------- Process: Xcode [32110] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 26.2 (24553) Build Info: IDEApplication-24553000000000000~2 (17C52) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.apple.dt.Xcode [58945] User ID: 501 Date/Time: 2026-02-19 13:11:54.9987 -0600 Launch Time: 2026-02-19 13:03:37.7725 -0600 Hardware Model: Mac16,5 OS Version: macOS 26.2 (25C56) Release Type: User Crash Reporter Key: 61D7E2DA-E724-EFE2-6A01-25079BFCA2D1 Incident Identifier: B3D4A277-7CB5-4696-A00F-057929659F41 Sleep/Wake UUID: 2D4F6C41-716C-4B47-8D40-
4
0
176
3w
Translation framework use in Swift 6
I’m trying to integrate Apple’s Translation framework in a Swift 6 project with Approachable Concurrency enabled. I’m following the code here: https://developer.apple.com/documentation/translation/translating-text-within-your-app#Offer-a-custom-translation And, specifically, inside the following code .translationTask(configuration) { session in do { // Use the session the task provides to translate the text. let response = try await session.translate(sourceText) // Update the view with the translated result. targetText = response.targetText } catch { // Handle any errors. } } On the try await session.translate(…) line, the compiler complains that “Sending ‘session’ risks causing data races”. Extended error message: Sending main actor-isolated 'session' to @concurrent instance method 'translate' risks causing data races between @concurrent and main actor-isolated uses I’ve downloaded Apple’s sample code (at the top of linked webpage), it compiles fine as-is on Xcode 26.4, but fails with the same error
4
0
270
3w
Reply to Calling a Objc method directly from C
Calling Objective-C directly from C is certainly possible and can simplify your codebase by eliminating intermediate layers. Additionally, using Grand Central Dispatch (GCD) to manage thread safety and dispatch tasks to Objective-C contexts is a sound approach. Below, I'll outline how you can achieve this, maintaining thread safety and leveraging GCD effectively. Direct Objective-C Function Call from C Assuming you have an Objective-C method you want to call directly from C, you can use the Objective-C runtime functions to achieve this. Here's a step-by-step guide: Objective-C Method Declaration First, ensure your Objective-C method is declared properly. For example: @interface Renderer : NSObject (void)mtlEnd; @end C Function to Call Objective-C Method You can define a C function that uses the Objective-C runtime to call the mtlEnd method: #include void mtlEnd(MTRenderContext mt_ctx) { // Retrieve the class of the render context Class rendererClass = mt_ctx->mt_render_funcs.mtlObj.isa; // Get the selecto
Topic: Programming Languages SubTopic: General Tags:
3w
Reply to A blank keyboard appear in safari view controller
Encountering a blank keyboard in a SafariViewController on iPadOS 26+ can be frustrating, especially for enterprise applications. Here are some potential causes and solutions to help you diagnose and fix the issue: Potential Causes Compatibility Issues with iPadOS 26+: Recent changes in iPadOS might affect how SafariViewController handles keyboard presentation, particularly for enterprise apps. View Controller Presentation Style: The way the SafariViewController is presented might interfere with its ability to properly display the keyboard. Conflicting Settings or Permissions: Enterprise settings or restrictions might inadvertently affect keyboard functionality within web views. Web Content or JavaScript Issues: Specific content or scripts on the webpage might interfere with keyboard initialization or rendering. Safe Area Insets or Layout Issues: Incorrect handling of safe area insets or layout constraints might cause the keyboard to appear blank or off-screen. Solutions and Workarounds Ensure Proper Presenta
Topic: Safari & Web SubTopic: General Tags:
3w
SPM Failed to verified fingerprint for SSH url since Tahoe 26.3
Hi there, I recently updated to the latest version of macOS Tahoe 26.3. Since then, Xcode is not able to resolve my Swift Package dependencies anymore. We use SSH for all our Github hosted packages. When package resolution is running, we randomly have Failed to verify SSH fingerprint on some remote package. Nothing has changed and it worked perfectly with Tahoe 26.2. The SSH have been reconfigured and known hosts have been verified. Is something changed between those 2 versions or is it a bug ?
15
0
2k
3w
fullScreenCover & Sheet modifier lifecycles
Hello everyone, I’m running into an issue where a partial sheet repeatedly presents and dismisses in a loop. Setup The main screen is presented using fullScreenCover From that screen, a button triggers a standard partial-height sheet The sheet is presented using .sheet(item:) Expected Behavior Tapping the button should present the sheet once and allow it to be dismissed normally. Actual Behavior After the sheet is triggered, it continuously presents and dismisses. What I’ve Verified The bound item is not being reassigned in either the parent or the presented view There is no .task, .onAppear, or .onChange that sets the item again The loop appears to happen without any explicit state updates Additional Context I encountered a very similar issue when iOS 26.0 was first released At that time, moving the .sheet modifier to a higher parent level resolved the issue The problem has now returned on iOS 26.4 beta I’m currently unable to reproduce this in a minimal sample project, which makes it unclear whether: this i
1
0
122
3w
vImageBuffer_InitWithCGImage fails with Xcode 26 but succeeds with Xcode 15I am
I am attempting to load a jpeg image into a vImage_Buffer. I am just trying to get the data in an ARGB format. This code works fine in the Xcode 15 build , but fails with kvImageInvalidParameter error from vImageBuffer_InitWithCGImage in the Xcode 26 build. This code is written in ObjectiveC++. Here is a code fragment: int CDib_ARGB::Load(LPCSTR pFilename) { int rc = 0; if (NULL == m_pRaw_vImage_Buffer) { NSString *pNS_filename = [[NSString alloc]initWithUTF8String:pFilename]; NSImage *pNSImage = [[NSImage alloc] initWithContentsOfFile:pNS_filename]; if (nil == pNSImage) rc = -1; else { int width = pNSImage.size.width; int height = pNSImage.size.height; if (pNSImage.representations) { NSImageRep *imageRep; int jj; width = 0; height = 0; for (jj = 0; jj < pNSImage.representations.count; jj++) { imageRep = pNSImage.representations[jj]; if (imageRep.pixelsWide > width) width = imageRep.pixelsWide; if (imageRep.pixelsHigh > height) height = imageRep.pixelsHigh; } } NSSize imageSize = NS
13
0
429
3w
Reply to Driver Activation failure error code 9. Maybe Entitlements? Please help
Kevin, First, I wanted to apologize for not replying for a full month, as well as thank you very much for your reply. I was pulled away from this project for a couple weeks, and when I got back I was still spinning my wheels getting the driver installed. I only today found my issue, which wasn't something you could have helped with since I hadn't thought to include the correct context in my original comment. I only found the issue after careful log monitoring in the Console app during the install process as my main installer app was running. It turns out that my bundle ID was too long. It was 67 characters and, apparently the maximum is 63. Seems like an arbitrarily short max in this day and age, and you'd think both XCode and the Developer Portal would catch that, but that's what it was. When I redid my bundle IDs more succinctly (and all my permissions on the Apple Developer Portal), I was able to successfully install/register/enable the driver. I have granted it permission in System Settings, it s
Topic: App & System Services SubTopic: Drivers Tags:
3w
Reply to How to enable MIE on MacOS
On macOS with Apple Silicon, Memory Integrity Enforcement (MIE) combined with Arm Memory Tagging Extension (MTE) can be a fantastic way to spot heap memory issues. While stack sanitizer support for MTE is generally easier to set up, enabling heap tagging usually requires some specific settings or environment variables. These might not be as well-documented or easily accessible as on other platforms like Linux. Here are a few ways you might try to enable heap tagging with MTE on macOS: Environment Variables: Apple’s documentation and developer tools might not list environment variables for controlling MTE heap tagging as clearly as they do for some other sanitizers. However, you can often find what you need by experimenting with variables that are usually used for debugging and runtime settings. Some common variables to try include: MallocStackLogging: This is mainly for logging the stack, but sometimes related environment variables can affect how the memory allocator works. DYLD_INSERT_LIBRARIES: You might tr
Replies
Boosts
Views
Activity
3w
Xcode cloud
I'm facing an issue with Xcode Cloud. Every branch I push to my GitLab repository is not appearing as selectable when I try to create a build with my workflow. Additionally, if I try to update the workflow from Xcode, it crashes every time I save the changes. Any help would be appreciated. Translated Report (Full Report Below) ------------------------------------- Process: Xcode [32110] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 26.2 (24553) Build Info: IDEApplication-24553000000000000~2 (17C52) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.apple.dt.Xcode [58945] User ID: 501 Date/Time: 2026-02-19 13:11:54.9987 -0600 Launch Time: 2026-02-19 13:03:37.7725 -0600 Hardware Model: Mac16,5 OS Version: macOS 26.2 (25C56) Release Type: User Crash Reporter Key: 61D7E2DA-E724-EFE2-6A01-25079BFCA2D1 Incident Identifier: B3D4A277-7CB5-4696-A00F-057929659F41 Sleep/Wake UUID: 2D4F6C41-716C-4B47-8D40-
Replies
4
Boosts
0
Views
176
Activity
3w
Reply to Xcode 26.3 RC - Claude Agent returns "Your request couldn't be completed"
Try 'logging' in with your API key. Xcode : Settings : Intelligence : Providers : Anthropic after downloading the Claude Agent. I wasn't able to use my free account by signing in but it works (for now) when I entered my API key
Replies
Boosts
Views
Activity
3w
Cannot Add Claude Account to Xcode
I keep getting a fails to open page message when I try to sign in using my Claude ai Pro account. The request was for an http url instead of an https url.
Replies
7
Boosts
0
Views
138
Activity
3w
Translation framework use in Swift 6
I’m trying to integrate Apple’s Translation framework in a Swift 6 project with Approachable Concurrency enabled. I’m following the code here: https://developer.apple.com/documentation/translation/translating-text-within-your-app#Offer-a-custom-translation And, specifically, inside the following code .translationTask(configuration) { session in do { // Use the session the task provides to translate the text. let response = try await session.translate(sourceText) // Update the view with the translated result. targetText = response.targetText } catch { // Handle any errors. } } On the try await session.translate(…) line, the compiler complains that “Sending ‘session’ risks causing data races”. Extended error message: Sending main actor-isolated 'session' to @concurrent instance method 'translate' risks causing data races between @concurrent and main actor-isolated uses I’ve downloaded Apple’s sample code (at the top of linked webpage), it compiles fine as-is on Xcode 26.4, but fails with the same error
Replies
4
Boosts
0
Views
270
Activity
3w
Reply to The APP was not awakened after start a liveactivity
when the liveactivity has showed on lock screen. Your App has launched by system,you can use Xcode to step into Debug->Attach to Process->Your Process.
Replies
Boosts
Views
Activity
3w
Using .mp3 files in Swift Playgrounds project
Hello, I have an issue with importing some .mp3 files into a swift playground project (in Xcode, not in the Playground app). They worked fine in the Xcode project, but for some reason playgrounds isn't able to find them. I imported them the exact same way as I did in the Xcode project.
Replies
4
Boosts
0
Views
1.4k
Activity
3w
Reply to Calling a Objc method directly from C
Calling Objective-C directly from C is certainly possible and can simplify your codebase by eliminating intermediate layers. Additionally, using Grand Central Dispatch (GCD) to manage thread safety and dispatch tasks to Objective-C contexts is a sound approach. Below, I'll outline how you can achieve this, maintaining thread safety and leveraging GCD effectively. Direct Objective-C Function Call from C Assuming you have an Objective-C method you want to call directly from C, you can use the Objective-C runtime functions to achieve this. Here's a step-by-step guide: Objective-C Method Declaration First, ensure your Objective-C method is declared properly. For example: @interface Renderer : NSObject (void)mtlEnd; @end C Function to Call Objective-C Method You can define a C function that uses the Objective-C runtime to call the mtlEnd method: #include void mtlEnd(MTRenderContext mt_ctx) { // Retrieve the class of the render context Class rendererClass = mt_ctx->mt_render_funcs.mtlObj.isa; // Get the selecto
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
3w
Reply to A blank keyboard appear in safari view controller
Encountering a blank keyboard in a SafariViewController on iPadOS 26+ can be frustrating, especially for enterprise applications. Here are some potential causes and solutions to help you diagnose and fix the issue: Potential Causes Compatibility Issues with iPadOS 26+: Recent changes in iPadOS might affect how SafariViewController handles keyboard presentation, particularly for enterprise apps. View Controller Presentation Style: The way the SafariViewController is presented might interfere with its ability to properly display the keyboard. Conflicting Settings or Permissions: Enterprise settings or restrictions might inadvertently affect keyboard functionality within web views. Web Content or JavaScript Issues: Specific content or scripts on the webpage might interfere with keyboard initialization or rendering. Safe Area Insets or Layout Issues: Incorrect handling of safe area insets or layout constraints might cause the keyboard to appear blank or off-screen. Solutions and Workarounds Ensure Proper Presenta
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
3w
SPM Failed to verified fingerprint for SSH url since Tahoe 26.3
Hi there, I recently updated to the latest version of macOS Tahoe 26.3. Since then, Xcode is not able to resolve my Swift Package dependencies anymore. We use SSH for all our Github hosted packages. When package resolution is running, we randomly have Failed to verify SSH fingerprint on some remote package. Nothing has changed and it worked perfectly with Tahoe 26.2. The SSH have been reconfigured and known hosts have been verified. Is something changed between those 2 versions or is it a bug ?
Replies
15
Boosts
0
Views
2k
Activity
3w
fullScreenCover & Sheet modifier lifecycles
Hello everyone, I’m running into an issue where a partial sheet repeatedly presents and dismisses in a loop. Setup The main screen is presented using fullScreenCover From that screen, a button triggers a standard partial-height sheet The sheet is presented using .sheet(item:) Expected Behavior Tapping the button should present the sheet once and allow it to be dismissed normally. Actual Behavior After the sheet is triggered, it continuously presents and dismisses. What I’ve Verified The bound item is not being reassigned in either the parent or the presented view There is no .task, .onAppear, or .onChange that sets the item again The loop appears to happen without any explicit state updates Additional Context I encountered a very similar issue when iOS 26.0 was first released At that time, moving the .sheet modifier to a higher parent level resolved the issue The problem has now returned on iOS 26.4 beta I’m currently unable to reproduce this in a minimal sample project, which makes it unclear whether: this i
Replies
1
Boosts
0
Views
122
Activity
3w
vImageBuffer_InitWithCGImage fails with Xcode 26 but succeeds with Xcode 15I am
I am attempting to load a jpeg image into a vImage_Buffer. I am just trying to get the data in an ARGB format. This code works fine in the Xcode 15 build , but fails with kvImageInvalidParameter error from vImageBuffer_InitWithCGImage in the Xcode 26 build. This code is written in ObjectiveC++. Here is a code fragment: int CDib_ARGB::Load(LPCSTR pFilename) { int rc = 0; if (NULL == m_pRaw_vImage_Buffer) { NSString *pNS_filename = [[NSString alloc]initWithUTF8String:pFilename]; NSImage *pNSImage = [[NSImage alloc] initWithContentsOfFile:pNS_filename]; if (nil == pNSImage) rc = -1; else { int width = pNSImage.size.width; int height = pNSImage.size.height; if (pNSImage.representations) { NSImageRep *imageRep; int jj; width = 0; height = 0; for (jj = 0; jj < pNSImage.representations.count; jj++) { imageRep = pNSImage.representations[jj]; if (imageRep.pixelsWide > width) width = imageRep.pixelsWide; if (imageRep.pixelsHigh > height) height = imageRep.pixelsHigh; } } NSSize imageSize = NS
Replies
13
Boosts
0
Views
429
Activity
3w
Reply to Can't get USBSerialDriverKit driver loaded
Ok so for some reason the provisioning profile includes the usb entitlement for vendorID= and I thought because I requested for a specific vendor id that I only get that. So after putting into the vendor id field in my usb entitlement in Xcode they now match and it works. Strange....
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
3w
Reply to Driver Activation failure error code 9. Maybe Entitlements? Please help
Kevin, First, I wanted to apologize for not replying for a full month, as well as thank you very much for your reply. I was pulled away from this project for a couple weeks, and when I got back I was still spinning my wheels getting the driver installed. I only today found my issue, which wasn't something you could have helped with since I hadn't thought to include the correct context in my original comment. I only found the issue after careful log monitoring in the Console app during the install process as my main installer app was running. It turns out that my bundle ID was too long. It was 67 characters and, apparently the maximum is 63. Seems like an arbitrarily short max in this day and age, and you'd think both XCode and the Developer Portal would catch that, but that's what it was. When I redid my bundle IDs more succinctly (and all my permissions on the Apple Developer Portal), I was able to successfully install/register/enable the driver. I have granted it permission in System Settings, it s
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
3w
Reply to Can't get USBSerialDriverKit driver loaded
Found the solution it seems to be missing CFBundle... keys even though Xcode auto generated parts of it and then it thought its a no code dext. Next problem it has an included embedded provisioning profile but the console shows its missing the entitlement that is included in the embedded provisioning profile...
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
3w