Welcome to the Apple Developer Forums

Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics.

For questions about using Apple hardware and services, visit Apple Support Communities

Posts

Sort by:
Post not yet marked as solved
0 Replies
5 Views
Please, advise any solution for the further problem: terminal responds to any command 'Killed: 9', even if I try to do suggested command for updating (on the screenshot). Mac M1 and its the newest OS Ventura 13.2.1.
Posted
by
Post not yet marked as solved
0 Replies
7 Views
Hi, I'm trying to use ShareArrayBuffer with Audio Worklets but it does not seem to work. It works fine with Chrome. The Share Array Buffer sample from here, works well with Chrome, but not with Safari. https://googlechromelabs.github.io/web-audio-samples/audio-worklet/design-pattern/shared-buffer/ There's no error indicated in the JS Console, either. This seems related to the following WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=237144 But that is marked as been resolved. Tried using the Safari Technology Preview (v 165) - but that has even bigger problems. It does not even recognize AudioWorkletNode class! Am I missing something? Thanks. Devendra.
Posted
by
Post not yet marked as solved
0 Replies
8 Views
I have a simple problem, but I’m not able to solve it in an easy way, so I suspect I’m doing something wrong. I have a simple view-based NSTableView, which is a dragging source. The data being dragged are provided to the pasteboard using the standard data source method - [NSObject tableView:writeRowsWithIndexes:toPasteboard:]. When rows of the table view are dragged, AppKit automatically creates a dragging image consisting of the visual copy for all dragged rows and all columns of the table view. If I want only particular columns, I can override -[NSTableView dragImageForRowsWithIndexes:tableColumns:event:offset:] and include only the columns I want in the dragged image. Since -[NSObject tableView:writeRowsWithIndexes:toPasteboard:]is rendered deprecated as of macOS 11, I want to use the alternative (which also supports multiple item dragging) -[NSObject tableView:pasteboardWriterForRow:]. However, when I use this method, AppKit creates a dragging image consisting of the visual copy for all dragged rows, BUT ONLY the column where the drag started. Overriding -[NSTableView dragImageForRowsWithIndexes:tableColumns:event:offset:] has no effect, as in this case that method isn’t being called at all. So the question is, how do I influence the dragging image creation in the latter case? I haven’t found in docs anything related to that (except for the method mentioned above, but not being called in this case). Implementing data source method -[NSObject tableView:updateDraggingItemsForDrag:] doesn’t help, as it’s really intended to change the dragging image after the dragging has started and at the time it’s called for the first time, the AppKit created image is already there and visible. I know I can (try to) subclass NSTableView and override NSDraggingSource methods (and call super at the end of each override to make sure the data source object is being messaged as well) but I hope there's a simpler and shorter solution. Thanks a lot for any solution, hint or a suggestion. -- Dragan
Posted
by
Post not yet marked as solved
0 Replies
9 Views
Hi, We are a research team that is just beginning to use SensorKit to collect data for our research. Currently, We've gotten far enough through the process of setting up and using sensorKit to be able to start collecting data through the OS and we've created an SRFetchRequest, but we're just unsure of how to actually go about retrieving the data in a usable form and being able to write it to a file or upload it to a server. We're specifically lost when it comes to SRFetchResult and what to do with that. If anyone was able to provide an example from their own code/somewhere we can find an example, or anything that might help, that would be greatly appreciated. Thank you!
Posted
by
Post not yet marked as solved
0 Replies
9 Views
Good afternoon, it is possible to consume some information from the iphone, such as MEC / IMEI / SERIAL NUMBER, via dotnet maui (C#)? I'm developing an application, where I need to validate the user's session
Posted
by
Post not yet marked as solved
0 Replies
14 Views
I am using expo to create the build package for my app by using eas build => ios. I purchased the subscription for apple developer account (individual) on Thursday the 19th march (2 days ago). But still I am not being able to continue. Is it because of the 48hour awaiting timestamp or could it be other things? Bear in mind I still see the "Purchase your membership"
Posted
by
Post not yet marked as solved
0 Replies
21 Views
The feature is to upload photos via AWS and the keys are obtained from our respective servers to upload a photo in case the keys are expired. As per logs the app crashes in newProcessS3Upload line in the below func. Please find the complete stack trace in the attachment. crash_log.txt func newRetrieveS3Credentials(uploadObject:NSDictionary) { let type = uploadObject.object(forKey: "type") as? NSNumber ?? 0 guard let signatureUploadRequest:URLRequest = self.retrieveSignatureUploadURLRequest() else{ return } let defaultSession:URLSession = URLSession.shared let dataTask = defaultSession.dataTask(with: signatureUploadRequest, completionHandler: { data, response, error in if let httpResponse = response as? HTTPURLResponse, let data = data { if httpResponse.statusCode == 200 { do { let responseDictionary = try JSONSerialization.jsonObject(with: data, options: .fragmentsAllowed) as? [String: Any] self.newCredentialsRetrieved(credentialsDict: responseDictionary ?? [:]) DispatchQueue.global().asyncAfter(deadline: .now() + 1.0) { self.newProcessS3Upload(uploadObject: uploadObject) } } catch let jsonError{ self.log.i("S3Manager: Json serialzation error: \(String(describing: jsonError))") } } else { self.log.i("S3Manager: Error with S3 JSON request: \(error.debugDescription)") let delegate = uploadObject.object(forKey: "delegate") if let delegate = delegate as? S3Observer{ self.delegate = delegate } if type.intValue == UploadType.SIGNATURE_TYPE.rawValue { DispatchQueue.global(qos: .userInitiated).async { DispatchQueue.main.async { self.delegate?.signatureFailedToUpload?(forStop: self.uploadSignature?.stopId, withError: error.debugDescription) } } }else if type.intValue == UploadType.ITEM_PHOTO_TYPE.rawValue && ((self.delegate?.responds(to: #selector(S3Observer.errorOccured(_:)))) != nil) { self.delegate?.errorOccured?(error) } self.log.i("S3Manager: Unknown S3 upload Error: \(error.debugDescription)") } } }) dataTask.resume() } The crash log is as follows: Crashed: com.apple.root.default-qos 0 WISE Driver 0x14e4a4 S3Manager.newProcessS3Upload(uploadObject:) + 4331070628 (S3Manager.swift:4331070628) 1 WISE Driver 0x1520c4 partial apply for closure #1 in closure #1 in S3Manager.newRetrieveS3Credentials(uploadObject:) + 4331086020 (<compiler-generated>:4331086020) 2 WISE Driver 0x1409a8 thunk for @escaping @callee_guaranteed () -> () + 4331014568 (<compiler-generated>:4331014568) 3 libdispatch.dylib 0x3f88 _dispatch_client_callout + 20 4 libdispatch.dylib 0x7418 _dispatch_continuation_pop + 504 5 libdispatch.dylib 0x1aa58 _dispatch_source_invoke + 1588 6 libdispatch.dylib 0x6f54 _dispatch_queue_override_invoke + 500 7 libdispatch.dylib 0x15a6c _dispatch_root_queue_drain + 396 8 libdispatch.dylib 0x16284 _dispatch_worker_thread2 + 164 9 libsystem_pthread.dylib 0xdbc _pthread_wqthread + 228 10 libsystem_pthread.dylib 0xb98 start_wqthread + 8 com.apple.main-thread 0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388 3 libsystem_kernel.dylib 0x12ec mach_msg + 24 4 CoreFoundation 0x7aac4 __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7bd08 __CFRunLoopRun + 1232 6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612 7 GraphicsServices 0x1368 GSEventRunModal + 164 8 UIKitCore 0x3a1668 -[UIApplication _run] + 888 9 UIKitCore 0x3a12cc UIApplicationMain + 340 10 WISE Driver 0x46ac main + 14 (main.m:14) 11 ??? 0x1f5294960 (Missing) Your help is greatly appreciated. Thanks, DebWisesystems
Posted
by
Post not yet marked as solved
0 Replies
12 Views
A valid provisioning profile for this executable was not found. I have an ad-hoc app that has worked properly for a couple of months. The BundleID, Certificate and Provisioning File are all valid and up-to-date but this morning the app will not open and users are saying they receive a message: "[APP] is No Longer Available". I tried loading the app on my phone and below is the log files. It is acting as if the Provisioning file is not available or valid, but it is fine. I checked to see if the Developer ID Notary Service is down, but all systems are online. Any thoughts? LOG: default 11:19:40.329288-0400 appconduitd 0x16aeef000 -[ACXAvailableApplicationManager applicationsUninstalledWithAppRecords:]_block_invoke: Got removal notice for app com.OCCH.MIXUS but we didn't know about it. default 11:19:40.329483-0400 installcoordinationd -[IXSDataPromise cancelForReason:client:]: <IXSPromisedTransferToPath(0x100f08f40) Name:App Asset: com.OCCH.MIXUS Creator:InstallCoordination Simple SPI UUID:B073FE63-5E0A-4FE1-A704-8E78F9F39C67 PercentComplete:1.000000 IsComplete:Y DiskUsageBytes:0> : canceled by client 17 for reason Error Domain=IXUserPresentableErrorDomain Code=14 "This app was not installed because its integrity could not be verified." UserInfo={NSUnderlyingError=0x100d0d820 {Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.I8nL9u/extracted/Payload/MIXUS.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)" UserInfo={NSLocalizedDescription=Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.I8nL9u/extracted/Payload/MIXUS.app : 0xe8008015 (A valid provisioning profile for this executable was not found.), LegacyErrorString=ApplicationVerificationFailed, SourceFileLine= default 11:19:40.329557-0400 installcoordinationd -[IXSDataPromise decommission]: Decommissioning <IXSPromisedTransferToPath(0x100f08f40) Name:App Asset: com.OCCH.MIXUS Creator:InstallCoordination Simple SPI UUID:B073FE63-5E0A-4FE1-A704-8E78F9F39C67 PercentComplete:0.000000 IsComplete:N DiskUsageBytes:0>
Post not yet marked as solved
0 Replies
14 Views
We're using ASWebAuthenticationSession to kickstart the auth flow in our Mac app. Most of the time when we start the auth session, Chrome is launched and authentication flow proceeds as expected (because Chrome is the default browser). On the same machine with same configuration, some times Safari is launched. What might be wrong ?
Posted
by
Post not yet marked as solved
1 Replies
17 Views
My goal is to use TestFlight and CloudKit. I have purchased and received the invoice. The problem is, in the developer.apple.com, the UI still says "Complete your purchase now". Clicking the blue link will refer to a page with a button "Purchase" and clicking the button will lead me to "Complete Your Order" page which ask for credential and it says "Your order will be charged in U.S. dollars". My assumption is that either the system is delayed or there is something wrong. Is this normal?
Posted
by
Post not yet marked as solved
0 Replies
16 Views
I need to get at the files of an app (one that I developed). It's sitting there on the home screen of my iPad, and I can run it. But in the "Devices and Simulators" window in Xcode, in the "Installed Apps" list, it's not there. That list is how I would normally get the "container" so I can see the files. Why would an app that is obviously on the device not be in the list? Is there another way to get the container/files?
Posted
by
Post not yet marked as solved
0 Replies
14 Views
Run the sample code as doc https://developer.apple.com/documentation/mattersupport?changes=latest_minor import MatterSupport let request = MatterAddDeviceRequest( topology: .init(ecosystemName: "Acme SmartHome", homes: [ .init(displayName: "Default Acme Home"), ]) ) do { try await request.perform() print("Successfully set up a device!") } catch { print("Failed to set up a device with error: \(error)") } it runs but stuck in the scene below, never get the callback. Another issue about MatterSupport, when integrated with objective-c the bridge file(eg xx-Swift.h) turn out to show error: Cannot find interface declaration for 'MatterAddDeviceExtensionRequestHandler', superclass of 'MatterAddDeviceHandler' Xcode Version 14.2 (14C18) My code: // // MatterHelper.swift // xx // // Created by Robin on 2023/3/21. // import Foundation import MatterSupport @available(iOS 16.1, *) class MatterHelper: NSObject { @objc class func commission() { let request = MatterAddDeviceRequest( topology: .init(ecosystemName: "RRRRRR", homes: [ .init(displayName: "R11111"), .init(displayName: "R222222") ]) ) Task.init { do { try await request.perform() print("Successfully set up a device!") } catch { print("Failed to set up a device with error: \(error)") } } } } @available(iOS 16.1, *) class MatterAddDeviceHandler: MatterAddDeviceExtensionRequestHandler { override func validateDeviceCredential(_ deviceCredential: MatterAddDeviceExtensionRequestHandler.DeviceCredential) async throws { print("validateDeviceCredential \(deviceCredential)") } override func selectThreadNetwork(from threadScanResults: [MatterAddDeviceExtensionRequestHandler.ThreadScanResult]) async throws -> MatterAddDeviceExtensionRequestHandler.ThreadNetworkAssociation { print("selectThreadNetwork \(threadScanResults)") return ThreadNetworkAssociation.defaultSystemNetwork } override func commissionDevice(in home: MatterAddDeviceRequest.Home?, onboardingPayload: String, commissioningID: UUID) async throws { print("Home: \(String(describing: home)) " + "payload: \(onboardingPayload) " + "commissionID: \(commissioningID)") } } Many thanks for your help.
Posted
by
Post not yet marked as solved
0 Replies
17 Views
Good morning, I'm developing an app using ionic+capacitor techs and I'm trying to make deep links work on the in-app browser but have had no success. Can anyone please help me with this? Please.
Posted
by
Post not yet marked as solved
0 Replies
20 Views
While updating attribute text height and width also updating. Due to that, the text is jumping to the end. After that it was showing remain text in next line.
Posted
by
Post not yet marked as solved
1 Replies
23 Views
Is it possible to get the height (Z location) of an iOS device based on sensor data? I've continuously added the accelerometer data up to infer the location but it results in a cascading error, and the inferred location of the phone "drifts" when the phone is placed still. I want to build an app where users measure the height of something by first zeroing the phone on the floor and then raising the phone to the height of the object, like placing it on the table.
Posted
by
Post not yet marked as solved
0 Replies
16 Views
Hello, The shortcut for "Jump to Definition in Next Editor" doesn't open the definition in the next editor when there is a multiple choices for the definition (eg. choose between the class and the class init method). The destination is then opened in the same editor. Thanks
Posted
by

Pinned Posts

Categories

See all