This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and join us in fostering a supportive community.

All subtopics

Post

Replies

Boosts

Views

Activity

Make Developer Forums Better!
Too many irrelevant posts come up when I attempt to search for something. There should be an easy button or something to earmark posts as something irrelevant- something that shouldn't come up in a search. I'm looking for something in Xcode 15 and frequently the top posts in the search are 10 years old and don't have any relevance whatsoever to the solution to my problem.
1
0
31
3h
Connecting to EAP-PEAP Networks via NEHotspotConfigurationManager
I need to programatically connect to a Enterprise Network with security type EAP-PEAP. NEHotspotEAPSettings *eapSettings = [[NEHotspotEAPSettings alloc] init]; eapSettings.username = username; eapSettings.password = password; eapSettings.supportedEAPTypes = [NSArray arrayWithObjects:[NSNumber numberWithInteger:NEHotspotConfigurationEAPTypeEAPPEAP], nil]; //Inner authentication eapSettings.ttlsInnerAuthenticationType = NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAPv2; eapSettings.outerIdentity = @""; //Server name of the network eapSettings.trustedServerNames = @[@"servername"]; if (@available(iOS 11.0, *)) { // Create Hotspot Configuration NEHotspotConfiguration *configuration = [[NEHotspotConfiguration alloc] initWithSSID:ssid eapSettings:eapSettings]; NSLog(@"WIFIManager, NEHotspotConfiguration initialized"); [[NEHotspotConfigurationManager sharedManager] applyConfiguration:configuration completionHandler:^(NSError * _Nullable error) { NSLog(@"WIFIManager, NEHotspotConfiguration Configured"); if (error != nil) { NSLog(@"WIFIManager, NEHotspotConfiguration Error: %@", error); if (error.code == NEHotspotConfigurationErrorAlreadyAssociated) { resolve(@(YES)); } else { reject(@"connection_error", @"Failed to connect to Wi-Fi", error); } } else { resolve(@(YES)); NSLog(@"WIFIManager, NEHotspotConfiguration Success"); } }]; }else { reject(@"ios_error", @"Not supported in iOS<11.0", nil); } } This is the code I have tried to connect to the network. It is always giving a true-negative result. As the documentation states, does NEHotspotConfigurationManager supports EAP-PEAP with MSCHAPv2 inner authentication? If it does, is it the correct way of implementing it? Is there any other way to connect to EAP-PEAP networks using Swift or Objective C?
0
0
1
10h
IOS 18 BETA 4 Update Issues with Google Maps in Carplay
There is definitely a glitch with the latest update of iOS 18 Beta4 with Google Maps in carplay mode. Google Maps on the car screen is almost responsive. It does not recognize your home or work address. While there might be a workaround to get to your destination. Use Siri to get directions, but speak the full address and tell it to give directions using Google Maps. For e.g. "Hey Siri, get me directions to "XX LOCATION" using Google Maps" You can use Apple Maps and Waze. But its hard for people to use another navigation app rather than using what they are used to. I find Google Maps really easy to use and handy, and now, with the latest update of Google Maps you can update live incidents, accidents, slowdowns and traffic reports from your dashboard
1
0
110
18h
Reducing Memory Usage in DeviceActivityMonitor: Help Needed
Hi everyone, I am a beginner in Swift and I am currently using DeviceActivityMonitor to develop an app for parents to control their children's app usage time. During the development process, I found that the DeviceActivityMonitor has a 6MB memory limit in the background, and my app exceeds this limit after running for a long time. I would like to know how to reduce the memory usage of DeviceActivityMonitor in the background, or where I can check the memory usage of DeviceActivityMonitor and see which variables are consuming memory. Additionally, I want to know if a new instance of the DeviceActivityMonitor class is created every time it is called? Thank you for your help!
0
0
74
1d
Lagging Video Feed Using VNGeneratePersonSegmentationRequest in macOS Camera Extension App
I'm developing a macOS application using Swift and a camera extension. I'm utilizing the Vision framework's VNGeneratePersonSegmentationRequest to apply a background blur effect. However, I'm experiencing significant lag in the video feed. I've tried optimizing the request, but the issue persists. Could anyone provide insights or suggestions on how to resolve this lagging issue? Details: Platform: macOS Language: Swift Framework: Vision code snippet I am using are below `class ViewController: NSViewController, AVCaptureVideoDataOutputSampleBufferDelegate { var frameCounter = 0 let frameSkipRate = 2 private let visionQueue = DispatchQueue(label: "com.example.visionQueue") func captureOutput(_ output: AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) { frameCounter += 1 if frameCounter % frameSkipRate != 0 { return } guard let pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer) else { return } let ciImage = CIImage(cvPixelBuffer: pixelBuffer) performPersonSegmentation(on: ciImage) { [self] mask in guard let mask = mask else { return } let blurredBackground = self.applyBlur(to: ciImage) let resultImage = self.composeImage(with: blurredBackground, mask: mask, original: ciImage) let nsImage = ciImageToNSImage(ciImage: resultImage) DispatchQueue.main.async { [self] in // Update your NSImageView or other UI elements with the composite image if needToStream { if (enqueued == false || readyToEnqueue == true), let queue = self.sinkQueue { enqueued = true readyToEnqueue = false if let _ = image, let cgImage = nsImage.cgImage(forProposedRect: nil, context: nil, hints: nil) { enqueue(queue, cgImage) } } } } } } private func performPersonSegmentation(on image: CIImage, completion: @escaping (CIImage?) -> Void) { let request = VNGeneratePersonSegmentationRequest() request.qualityLevel = .fast // Adjust quality level as needed request.outputPixelFormat = kCVPixelFormatType_OneComponent8 let handler = VNImageRequestHandler(ciImage: image, options: [:]) visionQueue.async { do { try handler.perform([request]) guard let result = request.results?.first as? VNPixelBufferObservation else { completion(nil) return } let maskPixelBuffer = result.pixelBuffer let maskImage = CIImage(cvPixelBuffer: maskPixelBuffer) completion(maskImage) } catch { print("Error performing segmentation: \(error)") completion(nil) } } } private func composeImage(with blurredBackground: CIImage, mask: CIImage, original: CIImage) -> CIImage { // Invert the mask to blur the background let invertedMask = mask.applyingFilter("CIColorInvert") // Ensure mask is correctly resized to match original image let resizedMask = invertedMask.transformed(by: CGAffineTransform(scaleX: original.extent.width / invertedMask.extent.width, y: original.extent.height / invertedMask.extent.height)) // Blend the images using the mask let blendFilter = CIFilter(name: "CIBlendWithMask")! blendFilter.setValue(blurredBackground, forKey: kCIInputImageKey) blendFilter.setValue(original, forKey: kCIInputBackgroundImageKey) blendFilter.setValue(resizedMask, forKey: kCIInputMaskImageKey) return blendFilter.outputImage ?? original } private func ciImageToNSImage(ciImage: CIImage) -> NSImage { let cgImage = context.createCGImage(ciImage, from: ciImage.extent)! return NSImage(cgImage: cgImage, size: ciImage.extent.size) } private func applyBlur(to image: CIImage) -> CIImage { let blurFilter = CIFilter.gaussianBlur() blurFilter.inputImage = image blurFilter.radius = 7.0 // Adjust the blur radius as needed return blurFilter.outputImage ?? image } }`
1
0
49
1d
Sequoia Beta 3 on Mac Studio M1 Ultra - After Enabling FileVault, Only Guest User Login is Possible and Only Safari is Usable
Hello Community and Dear Apple Developer Community, I shouldn’t have done it… I was already using Sequoia Beta 3 on my Mac Studio. Everything was running stable, and I had been able to work productively with it for a while (weeks). Recently, I decided to enable FileVault. Said and done, but unfortunately, something went wrong: since then, I can no longer log in with my normal user account (which has admin rights). Instead, only the guest user appears on the login screen (and no other account appears even when hovering over it). When I log in as this guest user, it behaves differently than usual. Only Safari can be started, and the only other things I can do are shut down or restart the system. Something has gone seriously wrong with the beta, I would say. Of course, I know I use a beta at my own risk, but I would still very much like to get back to working properly on my Mac without having to reinstall everything. Who can help? I’ve always managed to solve issues myself so far, but in this case, I’m not sure where to start. I can still open a terminal from the recovery utilities and see the SSD utilization, etc. I can also navigate the file system to a basic extent, but I don’t see any entries under Applications or Users with ‘ls -la’, probably because the file systems are mounted with ‘nobrowse’. A current mount entry of the actual boot disk looks like this: /dev/disk3s1 on /Volumes/Macintosh HD (apfs, sealed, local, read-only, journaled, nobrowse) My questions are: 1. Is it sufficient to mount the drives with different options to access them properly again? 2. How do I solve the “only Safari” problem of the guest user? 3. How can I re-enable my existing real user (especially since it is an admin)? 4. Can I disable FileVault from the recovery terminal? If so, how? 5. Would a Sequoia boot stick help me? For Silicon Macs, it is supposedly not that simple but doable. It’s also important to note that I have no access to any GUI, as I can only log in as a guest user with Safari. However, I still have other Macs to fall back on (including a MacBook Air M1). If anyone knows something about my problem, I would appreciate constructive responses. Has anyone else had similar experiences with the Sequoia Beta (now Public Beta)? Thank you for your help, Marcus
0
0
135
2d
App rejected as spam
Hi, my app just got rejected as spam and not sure how to fix this. I have seen other posts suggesting to schedule a call with the App Store team which I already did and waiting for that call. my app is ia dating app combined with wearable technology and there’s a patent for it so definitely not a copy of another app. I would really appreciate any insight on how to overcome this objection from the appt store team. thank you!
1
0
131
3d
Error 2009 or 1110
Hello, I recently updated to this version of Beta iOS 18. But I realized that the operating system is not ready yet and decided to roll back. The phone was successfully updated to iOS 17. But there was a problem with the iPad. Error 2009 appears in iTunes. And in 3uTools 1110. After reading the recommendations on the Internet, I tried updating the iPad through different computers, changing the wires, clearing the iPad memory to factory settings. But nothing gave a successful result. Has anyone encountered this problem? What should I do?
1
0
147
6d
Why is Add Emitter to Node not happening immediately?
Why is Add Emitter to Node not happening immediately? Within an extension to GameViewController I have: func addEmitterToNode(_ particleName: String, _ theNode:SKSpriteNode) { if let emitter = SKEmitterNode(fileNamed: particleName) { emitter.name = "emitter" emitter.position = CGPoint(x: 0, y: 0) // = at center theNode.addChild(emitter) } } // addEmitterToNode Here is the func (extension to GameViewController) wherein I call the above. The problem is the explosion sound plays but the smoke particle emitter is not immediately added. func increaseSpeed() { if thisSpeed > maxSpeed { pauseGame() // sets myTrain.isPaused = true playSound(theSoundName: "explosion") addEmitterToNode("smokeParticle.sks", myTrain) trainHasCrashed = true } } // increaseSpeed What I do not understand is that the following within GameScene's sceneDidLoad, the smoke particle emitter is added = override func sceneDidLoad() { if itsGameViewController.trainHasCrashed { itsGameViewController.addEmitterToNode("smokeParticle.sks", myTrain) } }
4
0
181
1w
Apple Pencil 2nd generation
I am suffering an issue with my 45 day old Apple Pencil 2nd Gen. The double tap feature to change between pen and eraser stops working after few minutes of usage even though the battery of the Apple Pencil remains 100%. I have to connect it back to my iPad for 10-15 minutes for it to work but it stops working again after few minutes. Can anyone help me fix this issue?
1
0
155
1w