Post

Replies

Boosts

Views

Activity

Device "..." isnt' registered in your developer account
Hi, I'm using Xcode 15.4. (always export as "Ad Hoc" with automatic signing) and just ran into a weird problem when I tried to run my app with the "play" button on a new iOS 18 iPhone: The build fails every time with the following error message in the "Signing & Capabilities" tab: Device "..." isnt' registered in your developer account. I added the iPhone's UDID to my developer account yesterday but I'm still getting the same error today. There's a "Register Device" button below the error message and when I click it, there are two new errors: There is a problem with the request entity: A device with number '...' already exists on this team. Provisioning profile "iOS Team Provisioning Profile: ...." doesn't include the currently selected device "...." (Identifier ...) The "try again" button below the first part doesn't do anything. How do I fix this?
1
0
644
Jun ’25
Temporarily switch from background thread to main thread (and back?)
I've got a function that runs on a background thread and downloads files: func downloadFiles(remoteFolder rf:String, localFolder lf:String, completion: @escaping (_ success:Bool, _ err: String) -> Void) { DispatchQueue.global(qos:.background).async { ... DispatchQueue.main.async { completion(successBool, errorMsg) } } } It's called by my main ViewController: myDownloadClass.downloadFiles(remoteFolder: rf, localFolder: lf, completion: { (success, error) in ... //More stuff here } Is there a way to temporarily switch back to the main thread (and with that also to the VC) in downloadFiles, so I can add the name of the file that's next in the download list to an e.g. UIAlertController but without tripping off everything that should be done after downloading everything actually finished ("More stuff here")? I'm using Xcode 13 with Swift 5 and iOS 13.
2
0
3.1k
Nov ’21
Device "..." isnt' registered in your developer account
Hi, I'm using Xcode 15.4. (always export as "Ad Hoc" with automatic signing) and just ran into a weird problem when I tried to run my app with the "play" button on a new iOS 18 iPhone: The build fails every time with the following error message in the "Signing & Capabilities" tab: Device "..." isnt' registered in your developer account. I added the iPhone's UDID to my developer account yesterday but I'm still getting the same error today. There's a "Register Device" button below the error message and when I click it, there are two new errors: There is a problem with the request entity: A device with number '...' already exists on this team. Provisioning profile "iOS Team Provisioning Profile: ...." doesn't include the currently selected device "...." (Identifier ...) The "try again" button below the first part doesn't do anything. How do I fix this?
Replies
1
Boosts
0
Views
644
Activity
Jun ’25
Temporarily switch from background thread to main thread (and back?)
I've got a function that runs on a background thread and downloads files: func downloadFiles(remoteFolder rf:String, localFolder lf:String, completion: @escaping (_ success:Bool, _ err: String) -> Void) { DispatchQueue.global(qos:.background).async { ... DispatchQueue.main.async { completion(successBool, errorMsg) } } } It's called by my main ViewController: myDownloadClass.downloadFiles(remoteFolder: rf, localFolder: lf, completion: { (success, error) in ... //More stuff here } Is there a way to temporarily switch back to the main thread (and with that also to the VC) in downloadFiles, so I can add the name of the file that's next in the download list to an e.g. UIAlertController but without tripping off everything that should be done after downloading everything actually finished ("More stuff here")? I'm using Xcode 13 with Swift 5 and iOS 13.
Replies
2
Boosts
0
Views
3.1k
Activity
Nov ’21