Welcome to the Apple Developer Forums:

Find answers, ask questions, and share comments on development topics with fellow developers and Apple engineers. 

To get started, search for keywords (like “app distribution”), standard tags (like [SwiftUI]), or WWDC tags (like [WWDC21]).

Learn different ways to search and use the forums

See all WWDC21 tags

Posts

Sort by:
Post not yet marked as solved
4 Views

You do not have permission to open the application “Brother Scanner”.

Hello, I am looking for a solution for an issue with Image Capture on BigSur. When I am opening Image Capture popup with message "You do not have permission to open the application “Brother Scanner”" opens. I saw a couple of possible solutions over the internet, but none of them worked. I saw that many people had this issues with different apps, but I haven't found any solution to app which is a system one. Any idea where "Brother Scanner" app is located? Anyone can help with that? Big Sur 11.5 (20G71) on MacBook Pro (15-inch, 2017)
Asked
by anchaj.
Post not yet marked as solved
5 Views

HLS text track captions displaying at the wrong time

I have a video player application and while playing an HLS video on AVPlayer, I noticed that the muxed VTT subtitles are not showing up at the correct time. For example, using AVPlayerItemLegibleOutput I can see that a text that was supposed to show at 24:37.107 is actually displaying at 24:36.406. What I would like to know is if there's anything that I can do to identify why that is happening and what would cause AVPlayer to lose sync for the embedded captions.
Asked
Post not yet marked as solved
6 Views

Unmatched parens in Archive process generated file

Apologies, I am a beginner in this. I’m trying to archive my iOS app but keep getting this error: Command PhaseScriptExecution failed with a nonzero exit code It lists an error based on unmatched parentheses in a generated file,  <project>.build/Script-CEC03A37266E7CBC00D5745A.sh: line 4: unexpected EOF while looking for matching `"' That file contains the following: #!/bin/sh buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion "$PRODUCT_SETTINGS_PATH") buildNumber=$(($buildNumber + 1)) /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$PRODUCT_SETTINGS_PATH" As you can see, the 2nd line has an odd parens(“). I’ve tried making the 2nd line  buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$PRODUCT_SETTINGS_PATH") …which didn't work, the file gets overwritten.  Running MacOS 11.5, Xcode 12.5.1 Thank you for any help.
Asked
Post not yet marked as solved
12 Views

The app store team is not happy with our app

Hello. We have sugested couple versions of our app to them and now they have sent us here for more clarifications. We were hoping someone can share some knowledge on the terms and conditions of uploading a "good" app. This is our app proposal: Apple support Hello good day. We have come to the conclusion there is no need for us to have any codes in the app. We would like to share with the users an app, for sharing poetry, notes, quotes, stories and other ethical writen content. Mostly a place to express they're unique creativity. The suggestion we have is an app with a easy to use interface,  where they will find latest content uploaded, a search button, a history button (based on the device identity), contect creation option. The content upload is available to everyone. The uniqueness of this app is given by the: simpleness of the interface and easiness to be accessed by elder creative individuals who are looking for a safe and secured place to share theyr stories to the younger generations (who will be happily learning from them) easy reach for recently search content easy posting with minimum data usage non invasive and non tiering eye catching colors and commercials no fees and money requirements from the users who are using the app. Here we attach a basic hand drawn schetc. We would like to know what are the major points we lack, for the app to be aproved. Thanks
Asked
by Dantalpos.
Post not yet marked as solved
10 Views

Building Archive in Xcode (12.5.1) for Intel only architecture

I am building a scientific app (MacOS) that has a lot of C code being called by swift that needs to be built for X86 architecture. I have built the app and sent it to an M1 Mac computer, where Rosetta worked properly and the app was translated to arm64 seamlessly. However, now I am submitting the app to the App Store and I don't know how to get Xcode to create an archive that doesn't compile for both Apple Silicon and Intel. The option in the target build settings is simply (Standard Architectures (Apple Silicon, Intel)). Am I missing something on how to just have it archive for Intel processors? Thanks in advance
Asked
by jflygare.
Post not yet marked as solved
13 Views

Apple Watch Bluetooth

Hello, can we add bluetooth on cantol center for fast turn on/off? i see on cellular the have that option to turn on/off bluetooth from control center can i put that option on no cellular apple watch or the new update make to do that?
Asked
by 2KisHERE.
Post not yet marked as solved
8 Views

Catalyst Keychain functions return errSecInteractionNotAllowed while clearly unlocked

We have a Mac Catalyst app which uses the keychain to store secrets. We’ve received a report from a user that the app ran fine for a number of days, but has recently started failing to store OR retrieve that secret and displays an in-app alert to that effect. Top line is that both SecItemAdd and SecItemCopyMatching return errSecInteractionNotAllowed, though they have been working just fine previously. I know that on iOS this issue can be the result of the device being locked while the app operates in the background. But the user is actively using the app when this happens (ergo the device should be unlocked). Is there something more about keychains on macOS that I’m missing? Is this something particular to Catalyst? We haven’t been able to reproduce it. Any help would be appreciated! From an actual solution to suggestions for reproducing the bug to suggestions on differences between macOS and iOS in this respect. The secret in question is stored with the following dictionary: let insertQuery: [String:Any] = [ kSecClass as String: kSecClassGenericPassword, kSecValueData as String: Data(secret.utf8), // `secret` being a String with the secret’s value kSecAttrService as String: serviceTag, // `serviceTag` being a String with the name of the secret kSecAttrAccessible as String: kSecAttrAccessibleWhenUnlockedThisDeviceOnly ] let insertQueryCFValue = query as CFDictionary let status = SecItemAdd(insertQueryCFValue, nil) Looking up the secret goes like this: let findQuery: [String: Any] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrService as String: serviceTag, // As above kSecMatchLimit as String: kSecMatchLimitOne, kSecReturnAttributes as String: true, kSecReturnData as String: true ] let findQueryCFValue = findQuery as CFDictionary var item: CFTypeRef? let status = SecItemCopyMatching(findQueryCFValue, &item) In both code snippets status == errSecInteractionNotAllowed.
Asked
by willft.
Post not yet marked as solved
6 Views

iCloud Notes: Bug (?) rendering scanned doc embedded in a Note

Hi, for over a year, documents scanned from within Notes from an iPhone do not render on iCloud on Windows 10 desktop. Just a grey box. I've tried Chrome and Firefox browsers. Renders fine on my iPhone. image URL: https://cvws.icloud-content.com/B/AdC2Qi6aif2MVfvJVLe2HaOSQD_zAaImNE-Z9l-0qgWR8zJ69eNGSyDW/$%7Bf%7D?o=Ai0ljeS4_NmRlHgV3ebQaR2HINPTQLkmicIKLMfg0tzf&v=1&x=3&a=CAogvZena-uvdBdLsJ4UqaCt7GPO-t7FabjqlatkcUB7gecSbRCfoN6iri8Yn_25pK4vIgEAUgSSQD_zWgRGSyDWaiZpv8QRPdD3l8Wf91zsKO4xdTOnAa9u-Ah2lR7DLfeMX3oWlAZoPXImRU1bYWz2-c6f4jw0kTVuSTWzWo7VcBcuMnbZuxYV7ZWJwb56V9U&e=1627332181&fl=&r=e30cc063-0064-4953-a581-2dbe7dbe7734-1&k=iV4_MWdPlnjxjHGv04TMtQ&ckc=com.apple.notes&ckz=Notes&p=36&s=1Unel1NS7FILccuxTjeLKUlDHVk
Asked
by Adammmmmm.
Post not yet marked as solved
9 Views

object always facing the camera during the AR experience.

Hey. Anyone have experience build AR quick look from Reality Composer. How can I set the object always facing the camera during the AR experience. For now I can only do scene start trigger which only play once. Is there any way we can keep it alway facing the camera? Thank.
Asked
by DDHTOM.
Post not yet marked as solved
12 Views

App Store Connect "An error has occurred. Try again later."

When accessing App Store Connect page with App Manager role no apps showed there. Only error text: "An error has occurred. Try again later." What can be done to resolve this?
Asked
Post not yet marked as solved
31 Views

Resolve DNS With Network Provided DNS Server

Hello all, I was wondering if there was a way to have Private Relay resolve DNS queries with the network-provided DNS server instead of the current DNS server Private Relay uses. We are fine with traffic being hidden but would only like to see DNS queries send by clients in order to log and block malicious domains. What actions would we need to take on our network to block the Private Relay DNS server in order to make requests go to the network-provided DNS server? Thanks, Ironbolt89
Asked
by RayjanP.
Post marked as solved
51 Views

Could not cast value of type (0x10ca9be10) to 'NSString' (0x7fff86d8bbb0)

Hello good afternoon to everyone. I hope you are doing very well despite the situation we are going through. I tell you my problem. I am trying to save in an array, a series of data that is selected from a tableView through a JSON. That is, the tableView shows some data available to select, the ones that are selected I want to save them in an array but when I select a data in the tableView my app crashes and shows me a breakpoint "Thread 1: signal SIGABRT" And in the console I get this: Could not cast value of type 'MallConcierge.DetallesIntereses' (0x10ca9be10) to 'NSString' (0x7fff86d8bbb0). I hope you can help me, I attach the classes from where I download the data, the details and the class where I connect the tableView. InteresesModelo.swift (in this class is where I download the data in JSON) import UIKit protocol InteresesModeloProtocol: class{ func interesesDownload (interest: NSArray) } class InteresesModelo: NSObject { weak var delegate: InteresesModeloProtocol! let urlPath = "http://localhost:8888/mallconcierge/API-movil/interests.php" func interestDownload(){ let url: URL = URL(string: urlPath)! let defaultSession = Foundation.URLSession(configuration: URLSessionConfiguration.ephemeral) URLCache.shared.removeAllCachedResponses() let task = defaultSession.dataTask(with: url){ (data, response, error) in if error != nil{ print("Error al descargar datos") }else{ print("Datos descargados") self.parseJSON(data!) } } task.resume() } func parseJSON(_ data:Data){ var jsonResult = NSArray() do{ jsonResult = try JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions.allowFragments) as! NSArray }catch let error as NSError{ print(error) } var jsonElement = NSDictionary() let detalles = NSMutableArray() for i in 0 ..< jsonResult.count{ jsonElement = jsonResult[i] as! NSDictionary let detalle = DetallesIntereses() let idInteres = jsonElement["idInteres"] let nombreInteres = jsonElement["interesNombre"] detalle.idInteres = idInteres as? String detalle.nombreInteres = nombreInteres as? String detalles.add(detalle) } DispatchQueue.main.async(execute: { ()-> Void in self.delegate.interesesDownload(interest: detalles) }) } } DetallesIntereses.swift import UIKit class DetallesIntereses: NSObject { var idInteres: String? var nombreInteres: String? override init() { } init(idInteres: String, nombreInteres:String) { self.idInteres = idInteres self.nombreInteres = nombreInteres } override var description: String{ return "idInteres: \(idInteres), nombreInteres: \(nombreInteres)" } } InteresesViewController.swift import UIKit class InteresesViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, InteresesModeloProtocol { var selectIntereses = [String]() var feedInterests: NSArray = NSArray() // var selectInterests: DetallesIntereses = DetallesIntereses() var items=[String]() @IBOutlet var listaInteresesTableView: UITableView! func interesesDownload(interest: NSArray) { feedInterests = interest self.listaInteresesTableView.reloadData() } override func viewDidLoad() { self.listaInteresesTableView.isEditing = true self.listaInteresesTableView.allowsMultipleSelectionDuringEditing = true self.listaInteresesTableView.delegate = self self.listaInteresesTableView.dataSource = self let interesesModelo = InteresesModelo() interesesModelo.delegate = self interesesModelo.interestDownload() super.viewDidLoad() // Do any additional setup after loading the view. } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return feedInterests.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "celInterests", for: indexPath) as! InteresesTableViewCell let interest: DetallesIntereses = feedInterests[indexPath.row] as! DetallesIntereses cell.lblNombreIntereses!.text = interest.nombreInteres return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { self.selectDeselectCell(tableView: listaInteresesTableView, indexPath: indexPath) print("Seleccionado") } func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) { self.selectDeselectCell(tableView: listaInteresesTableView, indexPath: indexPath) print("Deseleccionado") } func selectDeselectCell(tableView: UITableView, indexPath: IndexPath){ self.selectIntereses.removeAll() if let arr = listaInteresesTableView.indexPathsForSelectedRows{ for index in arr{ selectIntereses.append(feedInterests[indexPath.row] as! String) } } print(selectIntereses) } @IBAction func seleccionarIntereses(_ sender: Any){ print(selectIntereses) } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. } */ } The JSON [ { "idInteres": "1", "interesNombre": "Moda Mujer" }, { "idInteres": "3", "interesNombre": "Moda Hombre" }, { "idInteres": "4", "interesNombre": "Belleza" }, { "idInteres": "5", "interesNombre": "Relojes y Joyería" }, { "idInteres": "6", "interesNombre": "Hogar/Interiorismo" }, { "idInteres": "7", "interesNombre": "Gastronomía" }, { "idInteres": "8", "interesNombre": "Entretenimiento" }, { "idInteres": "9", "interesNombre": "Wellness" } ] I hope you can help me, please. I thank you all
Asked
by rockyto.
Post not yet marked as solved
21 Views

Watch Rejecting an app to install from iPhone watch app

I am using Mac visual studio Xamarin to develop my application. I have two application project (myapp-x and myapp-y) with me, both the application have watch application as well. I can install myapp-x in my watch from watch app in iPhone it get install and I can use it freely but I am trying to install myapp-y, it showing up installing from watch app but after the installing finish watch doesn't show up the application and watch app is showing to install the app again. I tried to install it again but it seems watch is rejecting the application to install for myapp-y where as myapp-x works completely fine.
Post not yet marked as solved
24 Views

Cannot use instance member 'videoName' within property initializer; property initializers run before 'self' is available

Need URGENT help !! I'm quite new to SwiftUI and I'm running into this problem as I'm trying to display a video using videoName from Model. In the player = AVPlayer(...)(line 4), instead of finding the resource by the string "squats", I want to use videoName from Model. If I replace them I get the error "Cannot use instance member 'videoName' within property initializer; property initializers run before 'self' is available". Can anyone please help me? This code is part of my Fitness App which is the core project of my Dissertation, hence "URGENT". Here is my code: struct ExercisingSessionView: View {          let exerciseName: String     let videoName: String          @State var player = AVPlayer(url: URL(fileURLWithPath: Bundle.main.path(forResource: "squats", ofType: "mov")!))     @State var isplaying = false     @State var showcontrols = false        var body: some View {                  CustomVideoPlayer(player: $player)             .frame(width: 390, height: 219)             .onTapGesture {                 self.showcontrols = true                              }     }          struct CustomVideoPlayer : UIViewControllerRepresentable {                  @Binding var player: AVPlayer                  func makeUIViewController(context: UIViewControllerRepresentableContext) -> AVPlayerViewController {                          let controller = AVPlayerViewController()             controller.player = player             controller.showsPlaybackControls = false             return controller         }                  func updateUIViewController(_ uiViewController: AVPlayerViewController, context: UIViewControllerRepresentableContext) {                      }     } }
Asked