Post

Replies

Boosts

Views

Activity

WidgetKit extenstion
Hi, I'm trying to create a macOS widget for my application. I'm following the official Apple documentation. When trying to run the widget, I get the following error: The operation could not be completed. (CHSErrorDomain error 1103.) Is there a list somewhere that explains the error codes? I thought we were past error codes in modern software development...
8
2
1.9k
Sep ’23
SwiftUI problem in existing project
I want to start and integrate SwiftUI in an existing project. For starters I've added a SwiftUI file. There's a problem with the preview of this file, it is paused. When I hit the resume button, I see that an error occurs: remark: Incremental compilation has been disabled: it is not compatible with whole module optimization Command CompileSwiftSources failed with a nonzero exit code Above it, there are no hints to what this nonzero exit code could be, or what is causing it. Does anyone have a pointer for me on how to resolve this? Needless to say that the preview works fine in a new project.
0
0
429
May ’22
App Store Receipt generation problem
I've got an app for which I want to validate the Mac App Store receipt. As I understand it, in case there is no receipt, the application should exit with exit code 173. That is what I implemented. Normally what should happen next is, that I am prompted for a sandbox username and password. These credentials are then used to get a new receipt from the App Store. The problem is that I am not prompted for a username. The only thing that happens is that I get the following error: “<AppName>” is damaged and can’t be opened. Delete “<AppName>” and download it again from the App Store. The internet (and this forum too) has quite some instances of this problem. In some cases it is the macOS version that is to blame, in my case it probably is not, since I'm running on 12.2.1. So after digging through the console, I found this line, that puzzles me: default 21:05:16.537045+0100 appstoreagent AMSURLRequestEncoder: [C579757A] Encoding request for URL: https://sandbox.itunes.apple.com/commerce/device/addPushNotificationType { account = <ACAccount: 0x7ff1c492c070 type = iTunesStore.sandbox | backingID = 22BFC0A5-D3E2-4412-8915-E7E5FFA8CE87 | username = jimi@smashbits.nl | altDSID = 001234-10-ff0bd4b9-72fc-4f56-8a98-032977bf5a37 | DSID = 840396218 | active = (null) | storefront = appstore.sandbox:143452-10,13> mediaType = com.apple.AppleMediaServices.accountmediatype.appstore } What is of interest here is that a sandbox user is used, see the username = jimi@smashbits.nl part. The problem is that this user does not exist anymore. Does anyone know how to reset the appstoreagent or any of the services involved in retrieving a receipt, so that I am prompted again for a username? I can then use a valid sandbox user and hopefully have a receipt generated to get to some actual programming.
1
0
851
Mar ’22