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
2 Views

Wifi connectivity

How to connect to wifi using bssid or channel ? airport command does not work.
Asked
by Shishir_1.
Post not yet marked as solved
2 Views

App transfer to another iOS Developer Account

Accordingly with app transfer guide “If you transfer an app that uses Apple Pay, the merchant ID is not transferred along with the app. However, when you submit an update, a new merchant ID must be created on the recipient’s account.” Is it correct that after migration (finish process in AppStoreConnect) ApplePay will continue to work and only during release on new account we have to generate new Merchant ID, Apple Pay Payment Processing Certificate and Merchant Identity Certificate? And what happens with ApplePay in old app versions after deployment new certificates? App transfer guide describes migration of main app target, but our app also contains share, action, widget, notification service extensions. Is it possible to transfer all these extensions too?
Asked
by AlexKar.
Post not yet marked as solved
4 Views

cannot create index on recordName in cloudkit dashboard

in Cloudkit Dashboard, I select Record Type, Edit Indexes, then I select Add Basic Index. I see createTime, createdBy, eTag, modTime, modifiedBy, recordID. I do not see recordName. Without creating index on recordName, I cannot query the record in cloudKit Dashboard. How to create index on recordName??
Asked
by vihrao.
Post not yet marked as solved
8 Views

Swift, How to write [Any] to file and read back in?

I have some data that I extract some information from/ Generally it consists of a header containing some mixed format data (text and integer) followed by several lines of mixed format (Int, Double) information. EX: Header: " VERSION C3    EARTH     VARIABLE 1 (XYZ)       *T**0   1007 TERMS" from which I parse out ["C3", "EARTH", 1, 0, 1007] this is followed by 1007 lines containing numbers similar to: [3310, 232, 0, 0, 11, -21,  2,  0,  0,  0, -1,  0,  0,  1, -0.00000001572, -0.00000001245, 0.00000002005, 4.16423892775, 6303.67498687370] The input is all textual and to speed things up needs to be saved as binary data for input. That's the easy part -- read it in and parse it into arrays of type Any. Plists are too slow. Here is little code fragment of what I am trying to do: var targetFile: Data = Data() // read source file data (there is a try-catch here ignored in the code fragment)      let inputData = String ( contentsOf:  sourceFileUrl )      sourceFileByLines = inputData.components( separatedBy: "\n" ) // multiple headers followed by multiple lines of data, repeated // header loop starts here getKeyInfomationFromHeaderLine ( line: sourceFileByLines! [ nextline ], theVersion: &version, body: &aBody , currentVariable: &variable, aT0Power: &t0Power, aTermCount: &termCount ) var headerValues: [Any] = [String(version), String(aBody), variable, t0Power, termCount] targetfile += Data ( bytes: &headerValues, count: headerValues.count * MemoryLayout<[Any]>.stride ) // Start loop to process term data line. // Build binary line      for i in 0...13 { nextLineBinary [ i ] = Int ( nextLineSource [ i ] )! } for i in 14...18 {          nextLineBinary [ i ] = Double ( nextLineSource [ i ] )! } targetfile += Data ( bytes: &nextLineBinary, count: nextLineBinary.count * MemoryLayout<[Any]>.stride ) // increment & decrement loop control-variables // End loop for data lines // End loop for headers All the variables are defined and the loops are proper and run to completion. But when I read the data into an [[Any]] array the data is confused (extra data is found, especially in the header values). So the question is how should I be encoding, writing, reading, decoding and storing that data? Any suggestions appreciated. TIA, ClarkW
Asked
by ClarkW.
Post not yet marked as solved
10 Views

Worry about that Private relay address(Beta) have problems.

Worry about that Private relay address(Beta) have problems. I created about 30 address and received many emails. Some address is connected with third party' s account, for example google, Yahoo, blog, shopping, payment app and so on. When you use private relay address ONLY for receive informations from any service or products, this address work well and convenient in secure and protected your privacy.  But if you need to reply to incoming mail, Mail header send to the receiver all information which includes original Apple Id cloud address. Because Mail Header is designed so from the beginning of history of the internet.  If it happen to need any support of certain service by mail (even you use contact form on the web), you need to answer to the massage for going on. But you should not to reply by mail app, because private relay address system is not designed for such situations. So when I receive support mail through private relay in secure and protected, I come back to the form on the web or Homepage to reply. How this service will update in the future I will check. I hope to we can clear such cases well.
Asked
by gensgens.
Post not yet marked as solved
10 Views

Appstore connect stuck on appstoreconnect.apple.com/review_agree

I created a new Apple ID and created a new apple developers account however when I try logging into App Store connect it gets stuck at review_agree. on inspecting the console I found out that this was the error it was throwing ailed to load resource: the server responded with a status of 401 () https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ui/log can you help me out please
Asked
Post not yet marked as solved
8 Views

TVOS 15 AirPlay Problem

Hi, after an automatic update to my AT4, my airplay speakers (airport express + Ampli) is not working properly now. Bad synchro between vidéo and sound. Trying to set that in the settings but it doesn’t work. anybody has the same problem?
Asked
by Oki46.
Post not yet marked as solved
25 Views

Loggin with Apple ID: Unexpectedly found nil while unwrapping an Optional value

Hi, I am integrating the login with Apple but I get an error that crashes the application. When running the app with the iOS simulator, these problems do not appear, but with the physical device they do. Apparently this method does not give me user data on a physical device. I realize because the console shows this error: Fatal error: Unexpectedly found nil while unwrapping an Optional value. And reviewing more in detail I see that I receive a nil to get the name, surname and email of the user in a physical device. But in the simulator, I repeat, if I get this user data. I attach the part of the code where the problem is presented and also the breakpoint where it is pointed out to me. func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {     switch authorization.credential{     case let credentials as ASAuthorizationAppleIDCredential: let nombre = credentials.fullName?.givenName print("El nombre: ", nombre!)     let apellido = credentials.fullName?.familyName     print("El apellido: ", apellido!)       let mail = credentials.email               var enviaCorreo: String = ""               if mail == nil{                         enviaCorreo = "no"                 }else{         print("Mail: ", mail!)         enviaCorreo = mail!       }               camposAppleID(mail: enviaCorreo, nombre: nombre!, apellido: apellido!)               break             default:       break     }   }     } I hope you can help me. Thank you very much for your attention. Greetings.
Asked
Post not yet marked as solved
16 Views

Any way to prevent Xcode editors resizing on every launch?

I'm using Xcode 13, but the problem has happened since at least Xcode 11. I prefer a three-editor layout. Each editor equal width. This is easy to achieve: close all but one editor, then click the 'Add Editor' button twice. Each window is equal width. But EVERY time I close and relaunch my project, the editor windows resize. The middle editor will be 2/3 the size of the editor space, the editor on the left will be about 1/5th the width and the editor on the right will be a tiny sliver. So every time I open the project I have to close the editors, then re-add two editor windows to get them to equal size. Is there ANY way to have Xcode actually save the window and editor layouts between launches?
Asked
by MrTemple.
Post not yet marked as solved
15 Views

2 screen time bugs (im 13 dont judge)

So 2 bugs i have been finding with the screen time that really annoy me is that 1. why does the screen time on my phone go even when im not using it! My parent has set an hour on my phone every day and that hour goes while im at school and the timer should stop when i turn my phone off. And the 2nd thing is how do i fix my phone to turn off the screen time when changes have been made and they are not applying. My parent has turned off screen time and yet it is still on my phone and on the parents phone it says its disabled.
Asked
Post not yet marked as solved
31 Views

SwiftUI Email message body - line or carriage return?

Hi all, I am trying to get the "Time on: 1244" "Time in: 1248" and "Fuel on board: 1.9" to show up on separate lines in the email message body generated by my SwiftUI App. I tried using a "+" between each but that didn't work... MailView(result: self.$result, newSubject: "Arrival Report - TEST", newMsgBody: "Time on: (onTime)" + "Time in: (inTime)" + "Fuel on board: (fuelRemaining)")       Any suggestions? Thanks for your time.
Asked
by Ignace61.
Post not yet marked as solved
23 Views

Is there a way to increase FPS for already existed video?

I want to make slow motion video more smoother, so as I understand I need to increase FPS for it. As I know we can use ffmpeg library for it, but is there a native way to increase FPS for video?
Asked
by Anton.Ye.
Post not yet marked as solved
13 Views

Request failed with http status code 503

Hi, I was able to create subscriptions in my container with the following code, but now for some unknown reason, I can't create one anymore, and instead I get the error message in the title above. Thanks so much for any assistance you may be able to extend!!! Ed func subscribe() {           // Only proceed if you need to create the subscription.     guard !UserDefaults.standard.bool(forKey: "didCreateClassTableSubscription")       else { return }                   // Define a predicate that matches records with a tags field     // that contains the word 'Swift'.     //let predicate = NSPredicate(format: "TRUEPREDICATE")     //let predicate = NSPredicate(format: "tags CONTAINS %@", "Swift")     let predicate = NSPredicate(format: "userRef == %@", RYH.userRef)               // Create a subscription and scope it to the 'FeedItem' record type.     // Provide a unique identifier for the subscription and declare the     // circumstances for invoking it.     let subscription = CKQuerySubscription(recordType: "ClassTable",                         predicate: predicate,                         subscriptionID: "ClassTableCreate",                         options: .firesOnRecordCreation)     // Further specialize the subscription to only evaluate     // records in a specific record zone.     //subscription.zoneID = recordZone.zoneID               // Configure the notification so that the system delivers it silently     // and, therefore, doesn't require permission from the user.     let notificationInfo = CKSubscription.NotificationInfo()     notificationInfo.shouldSendContentAvailable = true     subscription.notificationInfo = notificationInfo               // Save the subscription to the server.     let operation = CKModifySubscriptionsOperation(       subscriptionsToSave: [subscription], subscriptionIDsToDelete: nil)     operation.modifySubscriptionsCompletionBlock = { subscriptions, deleted, error in               if let error = error {                 // Handle the error.         self.errorMsg = "RYHTVC.subscribe.error1. "         self.errorMsg += error.localizedDescription as Any as! String         self.queryError(self.errorMsg)                 } else {                 // Record that the system successfully creates the subscription         // to prevent unnecessary trips to the server in later launches.         UserDefaults.standard.setValue(true, forKey: "didCreateClassTableSubscription")       }     }               // Set an appropriate QoS and add the operation to the private     // database's operation queue to execute it.     let ryhDB = CKContainer(identifier: RYH.containerIdentifier).publicCloudDatabase     operation.qualityOfService = .utility     ryhDB.add(operation)   }
Asked
by uncleebby.
Post not yet marked as solved
24 Views

How to move between field on Xcode

I am in the process of building Loop in Xcode and cannot understand how to move around in there. I cannot see all of the typing on the laptop, so I tried to use the arrow keys and the tab key, but neither of these work. Any help would be greatly appreciated. I'm sure the tag I selected doesn't have anything to do with what I am asking, but I had to select a tag. First time on here.
Asked
Post not yet marked as solved
19 Views

Neural Style Transfer with videos

Good morning everybody, I am looking for an API to apply Neural Style transfer to a video. You can easily do it using Xcode or Create ML but I was not able to find an API to do it inside an app. There is an API to do it for photos using a CVPixelBuffer (or an image / image URL) but I cannot find anything related to a video URL. Does anyone have ever tried Neural Style transfer with videos? If yes, could you please let me know how you were able to do it Thank you in advance for your help
Asked
by Alexis-M.