Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Xcode 16 | xcodebuild fails when providing -destination 'platform=iOS Simulator,name=iPhone 16,arch=x86_64'
Hello. In the Xcode 15 we were using this command in the terminal to run our tests on the Rosetta Simulator: xcodebuild -workspace CoreLibraries.xcworkspace -scheme CoreLibraries -destination 'platform=iOS Simulator,name=iPhone 15,arch=x86_64' test` In the Xcode 16 the same command doesn't work anymore. It produces the error: xcodebuild: error: Unable to find a device matching the provided destination specifier: { platform:iOS Simulator, arch:x86_64, OS:latest, name:iPhone 16 } Unsupported device specifier option. The device “iPhone 16” does not support the following options: arch Please supply only supported device specifier options. Running test directly from the Xcode UI using iPhone 16 (Rosetta) still works fine. Does anyone know how to modify the xcodebuild command to make it work again?
15
0
6.2k
Jun ’25
Reply to How to get a 2D floor plan with dimensions from RoomPlan
@dev24984 I do have same issue. floor.walls are not in same order, and there are inner walls. floor.polygonCorners is not oriented the same way (transform.eulerAngles.z and .y is 0) I attempted algoritm to calculate the distance of each wall, and between each polygonCorners , to try to match them If I find the matching wall, I get the angle to apply. I still use the floor.transform.position to position the floor correctly. -> distances are not exactly the same, so I have to do several pass to find the matching wall, with a difference increasing (0.01) -> it works as along as the walls are not identical else orientation can be 180 degres wrong and sometimes it fail entirely (round room) So unsure this is the way, unless I attempt to match inner walls as well. Else another idea could be to figure out the outer walls of the rooms, gather each translated end point, and make a surface out of it. if only apple has properly filled its transform for the floor :(
Topic: Graphics & Games SubTopic: SceneKit Tags:
Jun ’25
Reply to Use Java codebase with multiplatform SwiftUI app
Is there a way to package the Java code to work on iOS and mani macOS without having to complicate the project to the point where it would be easier to rewrite the Java code in Swift and have to work harder to update the app on each platform separately? No, there is not. Perhaps this would be an opportunity to try an AI solution to translate from Java to Swift.
Jun ’25
Reply to Unify Native iOS Utility Apps into a Single Modular AI-Enhanced App (Apple Assist)
Proposal: Unify Native Utility Apps into One Modular, AI-Enhanced App – Apple Assist Hello Apple Developer Community, I’m an independent developer and researcher, and I’d like to share a proposal that could enhance usability, accessibility, and UI/UX cohesion across iOS, iPadOS, and watchOS. 🎯 Core Idea Unify Apple’s native utility apps into a single modular and intelligent experience, provisionally titled Apple Assist. This includes: Calculator Compass Voice Memos Magnifier Measure Weather Translate Apple News 💡 Why Apple Assist? Today, these apps are distributed separately and accessed individually. While functional, this segmentation may be unintuitive for multitasking, accessibility workflows, and contextual usage. Apple Assist would act as a central hub, using a modular interface powered by Apple Intelligence, allowing: Seamless access to key tools in a single space Smart suggestions based on time, location, or context (e.g., auto-open Magnifier in low light) Enhanced accessibility for elderly
Jun ’25
Reply to Xcode 16.4 iOS 18.5 simulator crashes for Apps requiring webkit
For me the option 2 is not working (and option 1 is not really an option as we need to support older iOS versions). I followed the instructions, added the DYLD_FALLBACK_LIBRARY_PATH argument to the Run configuration of my scheme like this: DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift But the app still crashed, and when it logs the dyld config, it prints this: DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/ So it seems my value for DYLD_FALLBACK_LIBRARY_PATH is just ignored. I checked it a thousand times and don't understand what I'm doing wrong. Is this working for other people too? Edit Found the solution, see comments if you run into the same problem.
Jun ’25
How I can localize an array ?
Hello, I am trying to localize my app in other languages. Most of the text are automatically extracted by Xcode when creating a string catalog and running my app. However I realized few texts aren't extracted, hence I find a solution for most of them by adding For example I have some declared variable as var title: String = Continue Hence for them to be trigger I changed the String by LocalizedStringResource which gives var title: LocalizedStringResource = Continue But I still have an issue with some variables declared as an array with this for example @State private var genderOptions = [Male, Female, Not Disclosed] I tried many things however I don't success to make these arrays to be translated as the word here Male, Female and Not Disclosed. I have more array like that in my code and I am trying to find a solution for them to be extracted and be able to be localized Few things I tried that doesn't worked @State private var genderOptions : LocalizedStringResource = [Male, Female, Not Disclosed] @St
2
0
154
Jun ’25
Reply to How I can localize an array ?
Hello, You are right that LocalizedStringResource is the preferred way to pass around a localized string. In your Array example, it really depends on where you intend to use the array. For example, making the type an Array of LocalizedStringResource is valid and each string would get extracted to the String Catalog. However, this may impact the way you use the string in your SwiftUI code. If these are static options, an alternative could be to use an enum: enum Gender: Hashable, Identifiable, CaseIterable { case male case female case notDisclosed var displayName: LocalizedStringResource { switch self { case .male: Male … } } } … Picker(Gender, selection: $selectedGender) { ForEach(Gender.allCases) { gender in Text(gender.displayName) } } OR it may be that you have a dynamic list that the user is able to change, and these are just the default options. If that is the case, it may be easier to simply use String(localized:), which returns a plain String that is pre-localized. For example: @State private var gende
Topic: App & System Services SubTopic: General Tags:
Jun ’25
Reply to Xcode 16.4 iOS 18.5 simulator crashes for Apps requiring webkit
This issue is tracked in WebKit's bug tracker: https://bugs.webkit.org/show_bug.cgi?id=293831 Copying two workarounds listed there: At this time, there are some workarounds that developers can use for testing and debugging in iOS 18.5 simulator: Option 1: Change your app's deployment target to iOS 18.4 or later. Set IPHONEOS_DEPLOYMENT_TARGET = 18.4 in build settings, or use Xcode's UI: Select the app's target in a xcodeproj file, then go to General > Minimum Deployments > iOS and set it to 18.4. Rebuild the app. Option 2: Set DYLD_FALLBACK_LIBRARY_PATH in the app's run action. This will allow you to test in iOS 18.5 simulator while continuing to deploy to older OS versions. Find the simulator runtime's path using xcrun simctl list runtimes -v. It will be a path like /Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime. Add Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift to this path. In Xcode, navigate to the launch ar
Jun ’25
Reply to Technical Inquiry Regarding DriverKit USB Serial Communication Issues on iPadOS
One other suggestion on all this. If you're starting on macOS, the other approach here would be to actually start by using the IOUSBHost Framework (instead of a DEXT) to sort out the basic control/command process, then porting that code into a DEXT. The framework says it: Create host-mode user space drivers for USB devices. ...but that's a very wordy way of saying lets an app directly talk to USB devices. The IOUSB Framework has the same API structure as USBDriverKit and IOKit, so it's relatively straightforward to translate the framework code you write into a DEXT. However, using the framework means: You're code is running in a standard app which you can directly debug. This also removes all DEXT loading issues/friction. Some of the code you'll be writing is code you'll end up writing anyway. For example, the IOKit code used to find the USB device you want to work with is exactly the same code you'd using on iPadOS to find and open your own user client. And, just like I discussed earlier, this code
Topic: App & System Services SubTopic: Drivers Tags:
Jun ’25
Reply to PKPassKitErrorDomain Code 2
I tried to make a new post but the forum doesn't allow it. let's try here..... I'm working on adding a card to Apple Wallet using push provisioning and facing a challenge during the final step. Here’s the overall flow I’m following: I initialize PKAddPaymentPassViewController using a properly configured PKAddPaymentPassRequestConfiguration, including properties such as: encryption scheme payment network cardholder name localized description primary account suffix style I receive the required input parameters and pass them through a service, which returns three base64-encoded strings: activation data, ephemeral public key, and encrypted data. I decode these strings into Data objects and use them to populate a PKAddPaymentPassRequest, then call the handler like this: swift let request = PKAddPaymentPassRequest() request.activationData = ... request.ephemeralPublicKey = ... request.encryptedPassData = ... handler(request) However, instead of completing the process, the user is presented with a message s
Jun ’25
Cannot submit App with "Default Translation Extension"
We developed a Default Translation App following the guide: https://developer.apple.com/documentation/translationuiprovider/preparing-your-app-to-be-the-default-translation-app. However, when submitting to App Store Connect, we encountered the following error: No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found in extension Info.plist . When we attempt to add this key to the Extension's Info.plist, Xcode displays an error: xxx defines either an NSExtensionMainStoryboard or NSExtensionPrincipalClass key, which is not allowed for the extension point com.apple.public.translation-ui-provider .
2
0
172
Apr ’25
Reply to Duplicate apps launched when debugging in Xcode?
Confirmed on Xcode 16.4 (16F6). Bug symptoms are the same as previously mentioned: Xcode frequently launches duplicate processes when schema Run action is performed on a macOS command line tool executable that creates UI windows. It is a bug in Xcode due to following: The bug occurs when Debug executable is set under the Scheme -> Run -> Info tab. When Debug executable is unset, no duplicate processes are launched. No duplicate processes are launched when the executable is launched on terminal. Also confirmed that adding 350 ms delay in program main() is a workaround. For example, using SDL2 add SDL_Delay(350) at the top of the main() function. To Xcode team, let me know if you want a test app for this. Cheers.
May ’25
import python to Xcode
having a little hiccup. Basically SS show the issue im having I then tried to dig on this and came up empty. Here the link [https://developer.apple.com/forums/thread/128049] I was trying this from a playground and after it didn't work I did what the link was saying and that didn't work ether Got this from github and seems to work. How to use Xcode IDE for Python development Open Xcode and start with creating a new project: From the templates, choose Cross-platform > External Build System Give it a name. You can update Organizatin Name and Identifier if you want. Make sure you enter a correct path for Python bin. For Python 3.x it's usually /usr/bin/pythonw . Click Next and save it. Open scheme editor, select Run from the left hand pane, and Info tab from the detail pane. From Executable menu, select Other... and navigate to where your Python executable binary is locate. That's the same location you entered in step 4, e.g. /usr/bin/pythonw . You can also use **** + Command + G and paste the address
7
0
11k
Dec ’21
Support for custom Matter endpoints, clusters and attributes
I am working on an app for a home automation device. If I were using HomeKit exclusively I could add custom services or custom characteristics on standard services and these things would all be reported to my app via HomeKit. There is sample code from Apple that demonstrates how to do this. When a Matter device is commissioned using HomeKit you might expect custom clusters and/or custom attributes in a standard cluster would be translated to appropriate HomeKit services and characteristics, but this doesn't appear to be the case. Is there a way to have HomeKit do this? If not it seems I would need to use Matter directly rather than via HomeKit to access custom features. But if I commission the device using Matter in my app then I understand a new fabric is created and the device would not show in the Home app. Maybe the user needs to commission the device twice, once with my custom app and once with the Home app? That seems like a poor user experience to me. Perhaps that is the price paid for using a
18
0
2.9k
Oct ’25
Reply to CIContext sporadically crashes on macOS 15.4/15.5, iOS 18.4/18.5
Hi, I’ve encountered the exact same crash in my project when calling: CIContext().render(...) Just like the original post, I'm getting: Thread 4: EXC_BAD_ACCESS (code=1, address=...) What I’ve noticed is that the crash completely disappears when I uncheck Debug Executable in the scheme settings. With it disabled, the app runs smoothly without any EXC_BAD_ACCESS at that line. This suggests the crash might be related to debug-mode memory checks or internal CIContext rendering behavior. I’ve double-checked that the CVPixelBuffer, CIImage, and CGColorSpace are all valid before rendering. Would appreciate any insights or explanations from Apple engineers or anyone who has managed to resolve this. Thank you!
Topic: UI Frameworks SubTopic: General Tags:
May ’25
Xcode 16 | xcodebuild fails when providing -destination 'platform=iOS Simulator,name=iPhone 16,arch=x86_64'
Hello. In the Xcode 15 we were using this command in the terminal to run our tests on the Rosetta Simulator: xcodebuild -workspace CoreLibraries.xcworkspace -scheme CoreLibraries -destination 'platform=iOS Simulator,name=iPhone 15,arch=x86_64' test` In the Xcode 16 the same command doesn't work anymore. It produces the error: xcodebuild: error: Unable to find a device matching the provided destination specifier: { platform:iOS Simulator, arch:x86_64, OS:latest, name:iPhone 16 } Unsupported device specifier option. The device “iPhone 16” does not support the following options: arch Please supply only supported device specifier options. Running test directly from the Xcode UI using iPhone 16 (Rosetta) still works fine. Does anyone know how to modify the xcodebuild command to make it work again?
Replies
15
Boosts
0
Views
6.2k
Activity
Jun ’25
Reply to How to get a 2D floor plan with dimensions from RoomPlan
@dev24984 I do have same issue. floor.walls are not in same order, and there are inner walls. floor.polygonCorners is not oriented the same way (transform.eulerAngles.z and .y is 0) I attempted algoritm to calculate the distance of each wall, and between each polygonCorners , to try to match them If I find the matching wall, I get the angle to apply. I still use the floor.transform.position to position the floor correctly. -> distances are not exactly the same, so I have to do several pass to find the matching wall, with a difference increasing (0.01) -> it works as along as the walls are not identical else orientation can be 180 degres wrong and sometimes it fail entirely (round room) So unsure this is the way, unless I attempt to match inner walls as well. Else another idea could be to figure out the outer walls of the rooms, gather each translated end point, and make a surface out of it. if only apple has properly filled its transform for the floor :(
Topic: Graphics & Games SubTopic: SceneKit Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Use Java codebase with multiplatform SwiftUI app
Is there a way to package the Java code to work on iOS and mani macOS without having to complicate the project to the point where it would be easier to rewrite the Java code in Swift and have to work harder to update the app on each platform separately? No, there is not. Perhaps this would be an opportunity to try an AI solution to translate from Java to Swift.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Unify Native iOS Utility Apps into a Single Modular AI-Enhanced App (Apple Assist)
Proposal: Unify Native Utility Apps into One Modular, AI-Enhanced App – Apple Assist Hello Apple Developer Community, I’m an independent developer and researcher, and I’d like to share a proposal that could enhance usability, accessibility, and UI/UX cohesion across iOS, iPadOS, and watchOS. 🎯 Core Idea Unify Apple’s native utility apps into a single modular and intelligent experience, provisionally titled Apple Assist. This includes: Calculator Compass Voice Memos Magnifier Measure Weather Translate Apple News 💡 Why Apple Assist? Today, these apps are distributed separately and accessed individually. While functional, this segmentation may be unintuitive for multitasking, accessibility workflows, and contextual usage. Apple Assist would act as a central hub, using a modular interface powered by Apple Intelligence, allowing: Seamless access to key tools in a single space Smart suggestions based on time, location, or context (e.g., auto-open Magnifier in low light) Enhanced accessibility for elderly
Replies
Boosts
Views
Activity
Jun ’25
Reply to Xcode 16.4 iOS 18.5 simulator crashes for Apps requiring webkit
For me the option 2 is not working (and option 1 is not really an option as we need to support older iOS versions). I followed the instructions, added the DYLD_FALLBACK_LIBRARY_PATH argument to the Run configuration of my scheme like this: DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift But the app still crashed, and when it logs the dyld config, it prints this: DYLD_FALLBACK_LIBRARY_PATH=/Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/ So it seems my value for DYLD_FALLBACK_LIBRARY_PATH is just ignored. I checked it a thousand times and don't understand what I'm doing wrong. Is this working for other people too? Edit Found the solution, see comments if you run into the same problem.
Replies
Boosts
Views
Activity
Jun ’25
How I can localize an array ?
Hello, I am trying to localize my app in other languages. Most of the text are automatically extracted by Xcode when creating a string catalog and running my app. However I realized few texts aren't extracted, hence I find a solution for most of them by adding For example I have some declared variable as var title: String = Continue Hence for them to be trigger I changed the String by LocalizedStringResource which gives var title: LocalizedStringResource = Continue But I still have an issue with some variables declared as an array with this for example @State private var genderOptions = [Male, Female, Not Disclosed] I tried many things however I don't success to make these arrays to be translated as the word here Male, Female and Not Disclosed. I have more array like that in my code and I am trying to find a solution for them to be extracted and be able to be localized Few things I tried that doesn't worked @State private var genderOptions : LocalizedStringResource = [Male, Female, Not Disclosed] @St
Replies
2
Boosts
0
Views
154
Activity
Jun ’25
Reply to How I can localize an array ?
Hello, You are right that LocalizedStringResource is the preferred way to pass around a localized string. In your Array example, it really depends on where you intend to use the array. For example, making the type an Array of LocalizedStringResource is valid and each string would get extracted to the String Catalog. However, this may impact the way you use the string in your SwiftUI code. If these are static options, an alternative could be to use an enum: enum Gender: Hashable, Identifiable, CaseIterable { case male case female case notDisclosed var displayName: LocalizedStringResource { switch self { case .male: Male … } } } … Picker(Gender, selection: $selectedGender) { ForEach(Gender.allCases) { gender in Text(gender.displayName) } } OR it may be that you have a dynamic list that the user is able to change, and these are just the default options. If that is the case, it may be easier to simply use String(localized:), which returns a plain String that is pre-localized. For example: @State private var gende
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Xcode 16.4 iOS 18.5 simulator crashes for Apps requiring webkit
This issue is tracked in WebKit's bug tracker: https://bugs.webkit.org/show_bug.cgi?id=293831 Copying two workarounds listed there: At this time, there are some workarounds that developers can use for testing and debugging in iOS 18.5 simulator: Option 1: Change your app's deployment target to iOS 18.4 or later. Set IPHONEOS_DEPLOYMENT_TARGET = 18.4 in build settings, or use Xcode's UI: Select the app's target in a xcodeproj file, then go to General > Minimum Deployments > iOS and set it to 18.4. Rebuild the app. Option 2: Set DYLD_FALLBACK_LIBRARY_PATH in the app's run action. This will allow you to test in iOS 18.5 simulator while continuing to deploy to older OS versions. Find the simulator runtime's path using xcrun simctl list runtimes -v. It will be a path like /Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime. Add Contents/Resources/RuntimeRoot/System/Cryptexes/OS/usr/lib/swift to this path. In Xcode, navigate to the launch ar
Replies
Boosts
Views
Activity
Jun ’25
Reply to Technical Inquiry Regarding DriverKit USB Serial Communication Issues on iPadOS
One other suggestion on all this. If you're starting on macOS, the other approach here would be to actually start by using the IOUSBHost Framework (instead of a DEXT) to sort out the basic control/command process, then porting that code into a DEXT. The framework says it: Create host-mode user space drivers for USB devices. ...but that's a very wordy way of saying lets an app directly talk to USB devices. The IOUSB Framework has the same API structure as USBDriverKit and IOKit, so it's relatively straightforward to translate the framework code you write into a DEXT. However, using the framework means: You're code is running in a standard app which you can directly debug. This also removes all DEXT loading issues/friction. Some of the code you'll be writing is code you'll end up writing anyway. For example, the IOKit code used to find the USB device you want to work with is exactly the same code you'd using on iPadOS to find and open your own user client. And, just like I discussed earlier, this code
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to PKPassKitErrorDomain Code 2
I tried to make a new post but the forum doesn't allow it. let's try here..... I'm working on adding a card to Apple Wallet using push provisioning and facing a challenge during the final step. Here’s the overall flow I’m following: I initialize PKAddPaymentPassViewController using a properly configured PKAddPaymentPassRequestConfiguration, including properties such as: encryption scheme payment network cardholder name localized description primary account suffix style I receive the required input parameters and pass them through a service, which returns three base64-encoded strings: activation data, ephemeral public key, and encrypted data. I decode these strings into Data objects and use them to populate a PKAddPaymentPassRequest, then call the handler like this: swift let request = PKAddPaymentPassRequest() request.activationData = ... request.ephemeralPublicKey = ... request.encryptedPassData = ... handler(request) However, instead of completing the process, the user is presented with a message s
Replies
Boosts
Views
Activity
Jun ’25
Cannot submit App with "Default Translation Extension"
We developed a Default Translation App following the guide: https://developer.apple.com/documentation/translationuiprovider/preparing-your-app-to-be-the-default-translation-app. However, when submitting to App Store Connect, we encountered the following error: No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found in extension Info.plist . When we attempt to add this key to the Extension's Info.plist, Xcode displays an error: xxx defines either an NSExtensionMainStoryboard or NSExtensionPrincipalClass key, which is not allowed for the extension point com.apple.public.translation-ui-provider .
Replies
2
Boosts
0
Views
172
Activity
Apr ’25
Reply to Duplicate apps launched when debugging in Xcode?
Confirmed on Xcode 16.4 (16F6). Bug symptoms are the same as previously mentioned: Xcode frequently launches duplicate processes when schema Run action is performed on a macOS command line tool executable that creates UI windows. It is a bug in Xcode due to following: The bug occurs when Debug executable is set under the Scheme -> Run -> Info tab. When Debug executable is unset, no duplicate processes are launched. No duplicate processes are launched when the executable is launched on terminal. Also confirmed that adding 350 ms delay in program main() is a workaround. For example, using SDL2 add SDL_Delay(350) at the top of the main() function. To Xcode team, let me know if you want a test app for this. Cheers.
Replies
Boosts
Views
Activity
May ’25
import python to Xcode
having a little hiccup. Basically SS show the issue im having I then tried to dig on this and came up empty. Here the link [https://developer.apple.com/forums/thread/128049] I was trying this from a playground and after it didn't work I did what the link was saying and that didn't work ether Got this from github and seems to work. How to use Xcode IDE for Python development Open Xcode and start with creating a new project: From the templates, choose Cross-platform > External Build System Give it a name. You can update Organizatin Name and Identifier if you want. Make sure you enter a correct path for Python bin. For Python 3.x it's usually /usr/bin/pythonw . Click Next and save it. Open scheme editor, select Run from the left hand pane, and Info tab from the detail pane. From Executable menu, select Other... and navigate to where your Python executable binary is locate. That's the same location you entered in step 4, e.g. /usr/bin/pythonw . You can also use **** + Command + G and paste the address
Replies
7
Boosts
0
Views
11k
Activity
Dec ’21
Support for custom Matter endpoints, clusters and attributes
I am working on an app for a home automation device. If I were using HomeKit exclusively I could add custom services or custom characteristics on standard services and these things would all be reported to my app via HomeKit. There is sample code from Apple that demonstrates how to do this. When a Matter device is commissioned using HomeKit you might expect custom clusters and/or custom attributes in a standard cluster would be translated to appropriate HomeKit services and characteristics, but this doesn't appear to be the case. Is there a way to have HomeKit do this? If not it seems I would need to use Matter directly rather than via HomeKit to access custom features. But if I commission the device using Matter in my app then I understand a new fabric is created and the device would not show in the Home app. Maybe the user needs to commission the device twice, once with my custom app and once with the Home app? That seems like a poor user experience to me. Perhaps that is the price paid for using a
Replies
18
Boosts
0
Views
2.9k
Activity
Oct ’25
Reply to CIContext sporadically crashes on macOS 15.4/15.5, iOS 18.4/18.5
Hi, I’ve encountered the exact same crash in my project when calling: CIContext().render(...) Just like the original post, I'm getting: Thread 4: EXC_BAD_ACCESS (code=1, address=...) What I’ve noticed is that the crash completely disappears when I uncheck Debug Executable in the scheme settings. With it disabled, the app runs smoothly without any EXC_BAD_ACCESS at that line. This suggests the crash might be related to debug-mode memory checks or internal CIContext rendering behavior. I’ve double-checked that the CVPixelBuffer, CIImage, and CGColorSpace are all valid before rendering. Would appreciate any insights or explanations from Apple engineers or anyone who has managed to resolve this. Thank you!
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’25