macOS 11.2.1
File was created by Migration Assistant directly in Trash
~/.Trash/delete/Delete/Containers/com.apple.mail/Data/DataVaults
Empty Trash throws multiple ‘in use’ errors beginning at ‘Data’ and moving up nested folders
Running First Aid in Recovery Mode does not change anything.
This is what Apple Support documents recommend.
Yes, I have renamed upper 2 folders…
I have successfully assigned ‘Read/Write’ to my user account (which is an admin account) to all folders
Finder says ‘You have unknown access’ to ‘DataVaults’
Cannot move any folder out of Trash
Cannot 'chown' any item in the hierarchy
Use of ’sudo’ does not alter results
How do I get rid of this?
Steve
Post
Replies
Boosts
Views
Activity
Folks;
I've had an app in the Mac App Store for some time. I used a test account setup in App Store Connect to test this. Let's call this testAccount1. Everything worked as expected.
For various reasons I have eliminated that account in App Store Connect.
Now I need to perform more sandbox testing against this app.
I have setup a new account in App Store Connect.
Let's call this testAccount2.
BTW: macOS 11.2 Beta (20D5042d) on Transition Kit (A12Z Bionic) with Xcode 12.3
Used Xcode to perform a 'clean'
Used Finder to remove the ~/Library/Containter/'appName' folder.
When I launch the app in Xcode and reach the appropriate point I perform 'exit(173)'
This results in a prompt to sign into the App Store which I do by providing TestAccount2.
So far so good.
Now when I attempt to purchase an In-App Purchase I am again prompted to Sign in to the App Store. This window contains a text field to enter an AppleID. This field is pre-populated with TestAccount1!!!
scenario 1: over-ride the pre--populated AppleID with TestAccout2.
in this case I am then prompted to enter the password.
after entering the password I receive a prompt to 'Sign in to App Store'
this window does not contain a text field to enter an AppleID (only 'Cancel' or 'Buy')
On the 4th click it errors out .... " Code=306 "Reached max retry count"
scenario 2: accept the pre-poulated AppleID
NOTE:this AppleID is not valid - I have deleted this from App Store Connect
after entering the password the normal in-app prompts appear
after confirming the purchase I receive : "You are not authorized to make purchases of this InApp in Sandbox at this time."
Bottom Line:
I cannot test with a new Sandbox account
I cannot test with an invalid Sandbox account
Can someone please clarify how I am supposed to test in Mac App Store Sandbox?
Please!
Steve
Folks;
Running on a Developer Transition Kit - (A12Z) macOS 11.2 - Xcode 12.3
I have built a free to download Mac App which has a variety of in-app purchases; some are auto-renewing subscriptions, some are non-consumable.
(all of these in-app purchases have been approved by Apple)
I am experiencing difficulty testing in the sandbox.
I have logged out of my user account in the Mac App Store.
I have removed the existing Container folder from user’s Library folder.
I have created a brand new testing account in App Store Connect.
I have done a clean and build in Xcode.
When I then run the app I am prompted to ‘Sign in to use this application on this computer’.
(“AppName” was purchased using the App Store on another computer….)
I enter the new AppleID I just set up in App Store Connect and then I am prompted for a password.
After I supply the password the app crashes:
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
dyld: Using shared cache: 775BB65E-F213-3A39-ACF0-7343BCDE1E6C
Library not loaded: @executable_path/../Frameworks/……..
Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/AppName-hcuqdwzeykfjvqfdldsnjiocbxtj/Build/Products/Debug/AppName.app/Contents/MacOS/AppName
Reason: image not found
If I immediately re-run the application at this point I get a successful launch....
As part of my app’s normal launch I process the receipt.
During this successful re-launch the receipt is found and is correctly processed. It correctly determines that no in-app purchases have yet been made.
In the app code I successfully perform an SKProductRequest (I receive the correct information back).
Based on this SKProductRequest success I then attempt to make an in-app purchase which uses the product information from the SKProductRequest
I am prompted to ‘Sign in to the App Store’
(If you have an Apple ID, sign in with it here. [Environment: Sandbox]) Buttons: Cancel & Buy - there is a textfield to enter an Apple ID
(the pre-filled in Apple ID is NOT the Apple ID I submitted during the initial launch….
When I click the ‘Buy’ I am prompted for the password.
When I supply the password I then prompted with a different dialog window ‘Sign In to the App Store’
(If you have an Apple ID, sign in with it here. [Environment: Sandbox]) Buttons: Cancel & Buy - no textfield to enter an Apple ID
If I click the ‘Buy’ button, the dialog window disappears for a second or two and then re-appears
After the 4th such 'Buy' click I see an error logged by SKPaymentQueue:
<SKPaymentQueue: 0x600001a13b80>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "Unhandled exception"
UserInfo={NSUnderlyingError=0x600001612700 {Error Domain=AMSErrorDomain Code=306 "Reached max retry count"
UserInfo={NSLocalizedDescription=Reached max retry count, NSLocalizedFailureReason=Task reached max retry count (3 / 3);}},
NSLocalizedFailureReason=An unknown error occurred, NSLocalizedDescription=Unhandled exception}
Can anyone provide some clarity as to what I am doing wrong? Any thoughts appreciated!!
Steve
Using 10.15.7 and Xcode 12.0
I've had an app for years which reads data off of the general pasteboard. This app is no longer behaving as it once did...
// a standard service entry point- (void) xyzService:(NSPasteboard *)pboard userData:(NSString *)userData error:(NSString **)error; { NSData *rtfData=[pboard dataForType:NSPasteboardTypeRTF]; if (rtfData!=nil) {... }...}
This used to reliably report the rtf data on the current pasteboard.
Now rtfData is a 0 byte non null Data object.
Has there been some change that I am just completely unaware of? Why would this just stop working?
NOTE: NSPasteboardTypeString still returns the usual response....
Thank-You for any help here!
Now using 10.15.7 and Xcode 12.0
Have had an app which reads data off the general pasteboard. This app is no longer behaving as it once did...
// a standard service entry point (void) xyzService:(NSPasteboard *)pboard userData:(NSString *)userData error:(NSString **)error; {
NSData *rtfData=[pboard dataForType:NSPasteboardTypeRTF];
if (rtfData!=nil) {
...
}
...
}
This used to reliably report the rtf data on the current pasteboard.
Now rtfData is a 0 byte non null Data object.
Has there been some change that I am just completely unaware of? Why would this just stop working?
Thank-You for any help here!
macOS 10.15.6 - Xcode 11.7
This app has been in App Store for over a year.
The code in question here has been working and tested.
It no longer functions as before...
Attempting to test a brand new install using a sandbox account on a Mac.
Receipt validation is run in main.m with:
...
return NSApplicationMain(argc, (const char **)argv);
}
} @catch (NSException *e) {
exit(173);
}
Delete the appropriate folder in ~/../Containers
Clean - Build - Run
When Run the exception is trapped and the prompt for sandbox credentials is shown. Upon completion of the credentials I receive the 'app is damaged and cannot be opened...'
I have logged out, I have rebooted, I have tried with a different sandbox account - all to no avail.
Any thoughts would be deeply appreciated!
Thanks for your time!
Steve
Using Xcode 11.6; Swift; deploying to iOS.
The app has a ~250M SQLite database as a core resource.
The database is built up by importing a dozen .txt files. This process takes considerable time.
I have used the simulator to build up the database. I then obtained the .sqlite file from the macOS filesystem and include it in the iOS app Resources.
Since this database will undergo changes as the app is used, during first use the .sqlite file id copied to the .applicationSupportDirectory.
The original file in the mainBundle remains useful in the event that the user wishes to 'reset to factory'.
All of this is working fine and as expected.
My concern is the 2x usage of the users storage:
250M in mainBundle + 250M in .applicationSupport....
I have tried using Swift [data].compressed(using: .lz4) and .decompressed() ... The .compressed() works as expected and results in a ~65M file.. BUT the .decompressed() never finishes and never errors - it simply runs until the process is killed... Are there known issues with .sqlite files?
Is there a better strategy?
I really would like to understand the best practice for deploying a large .sqlite file without using 2x the storage...
Any feedback is appreciated.
Will the Translate capability for Siri be available through an API?
A very quick look through Dev Docs in Xcode 12 didn't turn anything so I'm guessing not. So devs are till stuck with Google Translate within their apps.....
Any links which contradict this hypothesis would be appreciated...
Will Apple respond to all DTK applicants regardless of outcome? e.g. will someone be informed that they will not be receiving the DTK?
Is there any guidance on when the final outcome of applications will be known?
I've been rummaging aroud trying to figure out best path to reading a barcode on iOS.
I see related code in both Vision and AVFoundation..
Anyone have thoughts on why I would choose one over the other?
Thank-You
How is it decided when an app clip is shown? Is there documentation explaining this?
If there is contention in a given context between 2 or more App Clips how is it decided which App Clip is presented?
a background SKProductsRequest that has been working for nearly a year is suddenly coming back via- (void) request:(SKProductsRequest *)request didFailWithError:(NSError *)error {Request:<SKProductsRequest: 0x60000030df20> ERROR: Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={AMSStatusCode=502, NSLocalizedDescription=Invalid Status Code, NSLocalizedFailureReason=The response has an invalid status code}Anybody have any useful thoughts here?
I have a macOS app that uses compiled AppleScript to enage with Microsoft Outlook.This app used to function correctly and is currently approved for sale in the Mac App Store.Now in development on macOS 10.15.5 with Xcode 11.5 I am getting this:NSAppleScriptErrorAppName = "Microsoft Outlook";
NSAppleScriptErrorBriefMessage = "Not authorized to send Apple events to Microsoft Outlook.";
NSAppleScriptErrorMessage = "Not authorized to send Apple events to Microsoft Outlook.";
NSAppleScriptErrorNumber = "-1743";
NSAppleScriptErrorRange = "NSRange: {51, 13}";I have the entitlement set:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>com.microsoft.outlook</string>
</array>
</plist>I have the explanation in the info.plist:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<string>WhoDo uses AppleEvents to create contacts in Outlook and optionally open Outlook after creating a contact.</string>
</plist>I have checked (and set & reset) the Privacy preference in System Preferences.Has something changed in Catalina that I am missing here!This used to work just fine??Thanks for any thoughts!Steve
I have a macOS application (10.15.4 Xcode 11.4.1) that has all the necessary entitlements to execute AppleScript against 'Contacts'.The script works correctly but I am experiencing a 9 second interval to execute this trivial script:tell application "Contacts" to return the id of the first person whose selected is trueI have experimented with executing this as a compiled script or as [[[NSAppleScript alloc] initWithSource:@"..."];I see the same time interval either way.So two questions:1) Why would the time be the same if it had already been compiled?2) Why on earth does it take that long to execute?Any thoughts appreciated!
I have a macOS app which works with the CNContacts framwork.Everything is functioning as expected.I have had a recent request to add functionality which would be best served by opening the 'Contacts' application to a specific contact.I have in the past had this work:[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"addressbook://%@", currentContact.identifier]]];What I observe in Catalina is that this works correctly ONLY IF 'Contact's is not running at the time this is executed.If 'Contacts' IS running when this is executed then a spurious empty 'Contacts' window is opened on top of the current view.Anyone have any useful thoughts?Thanks,Steve