Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,375 results found

Post

Replies

Boosts

Views

Activity

Reply to Picker text wrapping
Could you show the code where you populate the picker ? And screenshots ? Maybe you have to set the cell explicitly as here: func pickerView(pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusingView view: UIView!) -> UIView { var label : UILabel if view == nil { label = UILabel(frame: CGRect(x: 0, y: 0, width: 0, height: UIFont.systemFontOfSize(UIFont.systemFontSize()).lineHeight * 2 * UIScreen.mainScreen().scale)) label.textAlignment = NSTextAlignment.Center label.numberOfLines = 2 // For you should be 1 label.lineBreakMode = NSLineBreakMode.ByWordWrapping label.autoresizingMask = UIViewAutoresizing.FlexibleWidth } else { label = view as UILabel } label.text = line1 + n + line2 return label; } Get details here: https://stackoverflow.com/questions/1865002/uipickerview-with-multiline-uilabel
Topic: UI Frameworks SubTopic: SwiftUI
2w
AlarmKit Fixed Schedule Going off at Midnight
I am getting bug reports from users that occasionally the AlarmKit alarms scheduled by my app are going off exactly at midnight. In my app, users can set recurring alarms for sunrise/sunset etc. I implement this as fixed schedule alarms over the next 2-3 days with correct dates pre-computed at schedule time. I have a background task which is scheduled to run at noon every day to update the alarms for the next 2-3 days. Are there any limitations to the fixed schedule which might be causing this unintended behavior of going off at midnight?
6
0
329
2w
macos 26 - socket() syscall causes ENOBUFS "No buffer space available" error
As part of the OpenJDK testing we run several regression tests, including for Java SE networking APIs. These APIs ultimately end up calling BSD socket functions. On macos, starting macos 26, including on recent 26.2 version, we have started seeing some unexplained but consistent exception from one of these BSD socket APIs. We receive a ENOBUFS errno (No buffer space available) when trying to construct a socket(). These exact same tests continue to pass on many other older versions of macos (including 15.7.x). After looking into this more, we have been able to narrow this down to a very trivial C code which is as follows (also attached): #include #include #include #include #include static int create_socket(const int attempt_number) { const int fd = socket(AF_INET6, SOCK_STREAM, 0); if (fd < 0) { fprintf(stderr, socket creation failed on attempt %d, due to: %sn, attempt_number, strerror(errno)); return fd; } return fd; } int main() { const unsigned int num_times = 250000; for (unsigned int i =
7
0
771
2w
Reply to Issues with TCP Socket Management and Ghost Data on ESP32 (Swift)
[quote='887740022, Gabriel_Heidemann, /thread/826000?answerId=887740022#887740022, /profile/Gabriel_Heidemann'] According to them, these strings are originating from the app. [/quote] To quote House [1], “everybody lies” (-: Fortunately, you don’t have to take their word for it. Fire up an RVI packet trace and look at what the iOS device is actually sending. If you see the gibberish there, you know that you need to dig deeper into your code. If not, you have evidence to take to your hardware team. Oh, and just FYI, if you’re working on a Wi-Fi based accessory, I have a bunch of hints and tips on that front in Extra-ordinary Networking > Working with a Wi-Fi Accessory. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] https://en.wikipedia.org/wiki/House_(TV_series)
2w
Issues with TCP Socket Management and Ghost Data on ESP32 (Swift)
Hi everyone, I'm developing an iOS app using Swift (Foundation, Network, and Combine) that communicates via TCP with a weighing scale. The scale uses an internal ESP32 module acting as a Wi-Fi Access Point (no internet access) specifically for data transmission. The app connects to this network and opens a socket to receive weight data and send command strings. I’m currently facing two main issues: Socket Management: The socket isn't closing properly. Occasionally, the app opens multiple simultaneous connections instead of maintaining a single one. Since the ESP32 has a client limit, these ghost connections eventually hang the communication module. Invalid Outbound Data: The connection drops frequently because the scale receives invalid strings from the app. My logs show strange character sequences (like gggggggggfdhj or vfgdddddddddddtty) being sent involuntarily. I haven't programmed these strings, and they cause the scale to terminate the session due to protocol violations. How can I ensure proper
5
0
243
2w
Push notifications not delivered over Wi-Fi with includeAllNetworks = true regardless of excludeAPNS setting
We have a VPN app that uses NEPacketTunnelProvider with includeAllNetworks = true. We've encountered an issue where push notifications are not delivered over Wi-Fi while the tunnel is active in a pre-MFA quarantine state (tunnel is up but traffic is blocked on server side), regardless of whether excludeAPNS is set to true or false. Observed behavior Wi-Fi excludeAPNS = true - Notifications not delivered Wi-Fi excludeAPNS = false - Notifications not delivered Cellular excludeAPNS = true - Notifications delivered Cellular excludeAPNS = false - Notifications not delivered On cellular, the behavior matches our expectations: setting excludeAPNS = true allows APNS traffic to bypass the tunnel and notifications arrive; setting it to false routes APNS through the tunnel and notifications are blocked (as expected for a non-forwarding tunnel). On Wi-Fi, notifications fail to deliver in both cases. Our question Is this expected behavior when includeAllNetworks is enabled on Wi-Fi, or is this a known issue / bug with APN
7
0
552
2w
Reply to 2+ months blocked on error 7000. Apple's "correct escalation path" is broken.
Hey Brad, Since all work at my company has ground to a halt due to the status code 7000 issue, I did some deep-diving on other people's experience with this problem. And to my shock I discovered something: No one has ever posted online that this problem was resolved for them. There's hundreds of posts about Team ID not yet configured for notarization and not a single follow-up success story. Not here, reddit, github communities, etc. We have lots of evidence that many people have encountered this problem, and no evidence that anyone has overcome it. I wrote a thread about it here: https://developer.apple.com/forums/thread/826413
Topic: Code Signing SubTopic: Notarization Tags:
2w
Apple-Hosted Asset Pack Support in App Review
Does the App Review process have access to Apple-Hosted Asset Packs during review? My app uses Asset Packs to offer a library of data to the end-user (with a workaround, if unavailable), but I am frequently seeing the workaround screen in App Review with errors I haven't seen elsewhere. The latest error I encountered (via the App Review team's feedback) was: A server with the specified hostname could not be found. thrown from (to my belief) AssetPackManager.shared.ensureLocalAvailability. This is unexpected to me, as both this code as well as the asset packs have already been released and are working reliably in production. Has anyone else experienced these issues?
8
0
686
2w
LAContext and its usage in context of Local Authentication
While working with Local Authentication framework, specifically LAContext class I found myself with few contradictions to documentation, and although I believe that those differences are rather positive than negative, either documentation is lacking behind or those APIs are not working as intended - which I believe is combination of both. 1. Local Authentication 1.1 Biometry type, and associated with it hash With introduction of LADomainState one can extract underlying biometry type along it's (current) state hash this way: @available(iOS 18, macOS 15, *) func postIOS18() { let context = LAContext() let biometryType = context.domainState.biometry.biometryType // (1) let biometryStateHash = context.domainState.biometry.stateHash // (2) } prior to receiving above APIs, we would retrieve such information something along those lines: func preIOS18() { let context = LAContext() let policy: LAPolicy // ... var error: NSError? _ = context.canEvaluatePolicy(policy, error: error) // (3) // ... (Handle error -
2
0
337
2w
AUV3 effects in Swift Playground iPad - info.plist
Hi everyon. I‘d like to ask If there’s a way of including info.plist into swift playground on the iPad. I’m currently developing a daw on the iPad, I can see and use Apple’s auv3 plugins but can’t see third party apps like fab filter etc installed on the iPad. I think it’s needs inter app or auv3 entitlement. Is there a work around? I have attached my code for auv3 section. if anyone is interested , here is a video of my progress so far https://youtu.be/_2-L3oowfd0?si=cbr_9vYc3DOXV3R1 AUV3Diagnostic.swift
1
0
148
2w
Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
Thank you for your quick response. Attached 3 decrypted stack traces. Some sensitive data is hidden log_1.txt log_2.txt log_3.txt 2. We are seeing crashes on versions of iOS 26.2 inclusive and above. I assume that it occurs on all versions of iOS 26.x 3. We download the file, check that the url is valid and the file exists. Part of the code is indicated below guard url.isFileURL, url.pathExtension == pdf else { completion(false) return } guard fileManager.fileExists(atPath: url.path) else { completion(false) return } let interactionController = UIDocumentInteractionController(url: url) interactionController.delegate = self let success = interactionController.presentPreview(animated: true) We are seeing this on a small number of users, so far it is not a critical percentage. At the moment, we cannot estimate which part of the attempts to open files is failing and which is successful. We expect technical improvements from APPLE and hope for an early fix.
Topic: UI Frameworks SubTopic: UIKit Tags:
2w
Reply to Liquid Glass toolbar behavior changed in iOS 26.3/26.4?
To clarify - the two images above are from the same app. First image is 26.2 where the toolbar buttons are tinted based on the background. Second image is 26.4 where the toolbar buttons are tinted based on the appearance mode (light/dark - matching the sheet)
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
2w
Reply to Picker text wrapping
Could you show the code where you populate the picker ? And screenshots ? Maybe you have to set the cell explicitly as here: func pickerView(pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusingView view: UIView!) -> UIView { var label : UILabel if view == nil { label = UILabel(frame: CGRect(x: 0, y: 0, width: 0, height: UIFont.systemFontOfSize(UIFont.systemFontSize()).lineHeight * 2 * UIScreen.mainScreen().scale)) label.textAlignment = NSTextAlignment.Center label.numberOfLines = 2 // For you should be 1 label.lineBreakMode = NSLineBreakMode.ByWordWrapping label.autoresizingMask = UIViewAutoresizing.FlexibleWidth } else { label = view as UILabel } label.text = line1 + n + line2 return label; } Get details here: https://stackoverflow.com/questions/1865002/uipickerview-with-multiline-uilabel
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
2w
AlarmKit Fixed Schedule Going off at Midnight
I am getting bug reports from users that occasionally the AlarmKit alarms scheduled by my app are going off exactly at midnight. In my app, users can set recurring alarms for sunrise/sunset etc. I implement this as fixed schedule alarms over the next 2-3 days with correct dates pre-computed at schedule time. I have a background task which is scheduled to run at noon every day to update the alarms for the next 2-3 days. Are there any limitations to the fixed schedule which might be causing this unintended behavior of going off at midnight?
Replies
6
Boosts
0
Views
329
Activity
2w
Reply to AlarmKit Fixed Schedule Going off at Midnight
I have refactored my code using your approach @ekurutepe and still get users complaining about the same issue (random or midnight alarms). There are also some people complaining that they uninstalled the app but still receive the alarms.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Reply to AlarmKit alarm occasionally fires at exactly 12:00 AM
Thanks for details @Hakoniwa . I have refactored my code many times and still get users complaining about the same issue (random or midnight alarms). There are also some people complaining that they uninstalled the app but still receive the alarms.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
macos 26 - socket() syscall causes ENOBUFS "No buffer space available" error
As part of the OpenJDK testing we run several regression tests, including for Java SE networking APIs. These APIs ultimately end up calling BSD socket functions. On macos, starting macos 26, including on recent 26.2 version, we have started seeing some unexplained but consistent exception from one of these BSD socket APIs. We receive a ENOBUFS errno (No buffer space available) when trying to construct a socket(). These exact same tests continue to pass on many other older versions of macos (including 15.7.x). After looking into this more, we have been able to narrow this down to a very trivial C code which is as follows (also attached): #include #include #include #include #include static int create_socket(const int attempt_number) { const int fd = socket(AF_INET6, SOCK_STREAM, 0); if (fd < 0) { fprintf(stderr, socket creation failed on attempt %d, due to: %sn, attempt_number, strerror(errno)); return fd; } return fd; } int main() { const unsigned int num_times = 250000; for (unsigned int i =
Replies
7
Boosts
0
Views
771
Activity
2w
Reply to Could not launch app on watchOS downloaded from TestFlight
I've since heard of two other popular apps affected. There aren't all that many Apple Watch apps compared to the number of iPhone apps, and this may only be affecting ones that are set to run independently of their iPhone counterpart (so an even smaller percentage).
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
Reply to Issues with TCP Socket Management and Ghost Data on ESP32 (Swift)
[quote='887740022, Gabriel_Heidemann, /thread/826000?answerId=887740022#887740022, /profile/Gabriel_Heidemann'] According to them, these strings are originating from the app. [/quote] To quote House [1], “everybody lies” (-: Fortunately, you don’t have to take their word for it. Fire up an RVI packet trace and look at what the iOS device is actually sending. If you see the gibberish there, you know that you need to dig deeper into your code. If not, you have evidence to take to your hardware team. Oh, and just FYI, if you’re working on a Wi-Fi based accessory, I have a bunch of hints and tips on that front in Extra-ordinary Networking > Working with a Wi-Fi Accessory. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] https://en.wikipedia.org/wiki/House_(TV_series)
Replies
Boosts
Views
Activity
2w
Issues with TCP Socket Management and Ghost Data on ESP32 (Swift)
Hi everyone, I'm developing an iOS app using Swift (Foundation, Network, and Combine) that communicates via TCP with a weighing scale. The scale uses an internal ESP32 module acting as a Wi-Fi Access Point (no internet access) specifically for data transmission. The app connects to this network and opens a socket to receive weight data and send command strings. I’m currently facing two main issues: Socket Management: The socket isn't closing properly. Occasionally, the app opens multiple simultaneous connections instead of maintaining a single one. Since the ESP32 has a client limit, these ghost connections eventually hang the communication module. Invalid Outbound Data: The connection drops frequently because the scale receives invalid strings from the app. My logs show strange character sequences (like gggggggggfdhj or vfgdddddddddddtty) being sent involuntarily. I haven't programmed these strings, and they cause the scale to terminate the session due to protocol violations. How can I ensure proper
Replies
5
Boosts
0
Views
243
Activity
2w
Push notifications not delivered over Wi-Fi with includeAllNetworks = true regardless of excludeAPNS setting
We have a VPN app that uses NEPacketTunnelProvider with includeAllNetworks = true. We've encountered an issue where push notifications are not delivered over Wi-Fi while the tunnel is active in a pre-MFA quarantine state (tunnel is up but traffic is blocked on server side), regardless of whether excludeAPNS is set to true or false. Observed behavior Wi-Fi excludeAPNS = true - Notifications not delivered Wi-Fi excludeAPNS = false - Notifications not delivered Cellular excludeAPNS = true - Notifications delivered Cellular excludeAPNS = false - Notifications not delivered On cellular, the behavior matches our expectations: setting excludeAPNS = true allows APNS traffic to bypass the tunnel and notifications arrive; setting it to false routes APNS through the tunnel and notifications are blocked (as expected for a non-forwarding tunnel). On Wi-Fi, notifications fail to deliver in both cases. Our question Is this expected behavior when includeAllNetworks is enabled on Wi-Fi, or is this a known issue / bug with APN
Replies
7
Boosts
0
Views
552
Activity
2w
Reply to 2+ months blocked on error 7000. Apple's "correct escalation path" is broken.
Hey Brad, Since all work at my company has ground to a halt due to the status code 7000 issue, I did some deep-diving on other people's experience with this problem. And to my shock I discovered something: No one has ever posted online that this problem was resolved for them. There's hundreds of posts about Team ID not yet configured for notarization and not a single follow-up success story. Not here, reddit, github communities, etc. We have lots of evidence that many people have encountered this problem, and no evidence that anyone has overcome it. I wrote a thread about it here: https://developer.apple.com/forums/thread/826413
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
2w
Apple-Hosted Asset Pack Support in App Review
Does the App Review process have access to Apple-Hosted Asset Packs during review? My app uses Asset Packs to offer a library of data to the end-user (with a workaround, if unavailable), but I am frequently seeing the workaround screen in App Review with errors I haven't seen elsewhere. The latest error I encountered (via the App Review team's feedback) was: A server with the specified hostname could not be found. thrown from (to my belief) AssetPackManager.shared.ensureLocalAvailability. This is unexpected to me, as both this code as well as the asset packs have already been released and are working reliably in production. Has anyone else experienced these issues?
Replies
8
Boosts
0
Views
686
Activity
2w
LAContext and its usage in context of Local Authentication
While working with Local Authentication framework, specifically LAContext class I found myself with few contradictions to documentation, and although I believe that those differences are rather positive than negative, either documentation is lacking behind or those APIs are not working as intended - which I believe is combination of both. 1. Local Authentication 1.1 Biometry type, and associated with it hash With introduction of LADomainState one can extract underlying biometry type along it's (current) state hash this way: @available(iOS 18, macOS 15, *) func postIOS18() { let context = LAContext() let biometryType = context.domainState.biometry.biometryType // (1) let biometryStateHash = context.domainState.biometry.stateHash // (2) } prior to receiving above APIs, we would retrieve such information something along those lines: func preIOS18() { let context = LAContext() let policy: LAPolicy // ... var error: NSError? _ = context.canEvaluatePolicy(policy, error: error) // (3) // ... (Handle error -
Replies
2
Boosts
0
Views
337
Activity
2w
AUV3 effects in Swift Playground iPad - info.plist
Hi everyon. I‘d like to ask If there’s a way of including info.plist into swift playground on the iPad. I’m currently developing a daw on the iPad, I can see and use Apple’s auv3 plugins but can’t see third party apps like fab filter etc installed on the iPad. I think it’s needs inter app or auv3 entitlement. Is there a work around? I have attached my code for auv3 section. if anyone is interested , here is a video of my progress so far https://youtu.be/_2-L3oowfd0?si=cbr_9vYc3DOXV3R1 AUV3Diagnostic.swift
Replies
1
Boosts
0
Views
148
Activity
2w
Reply to NSInvalidArgumentException while sharing in UIDocumentInteractionController
Thank you for your quick response. Attached 3 decrypted stack traces. Some sensitive data is hidden log_1.txt log_2.txt log_3.txt 2. We are seeing crashes on versions of iOS 26.2 inclusive and above. I assume that it occurs on all versions of iOS 26.x 3. We download the file, check that the url is valid and the file exists. Part of the code is indicated below guard url.isFileURL, url.pathExtension == pdf else { completion(false) return } guard fileManager.fileExists(atPath: url.path) else { completion(false) return } let interactionController = UIDocumentInteractionController(url: url) interactionController.delegate = self let success = interactionController.presentPreview(animated: true) We are seeing this on a small number of users, so far it is not a critical percentage. At the moment, we cannot estimate which part of the attempts to open files is failing and which is successful. We expect technical improvements from APPLE and hope for an early fix.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
2w