Posts

Post marked as solved
6 Replies
8.0k Views
Folks;When I run an archived copy of my mac application on a test dev machine (not my main dev box) I see errors in the Console log that trouble me...1) I see this error immediately before any of my code executes!error 16:14:25.839821 -0700 [MYAPPNAME] Couldn't read values in CFPrefsPlistSource<0x6000000ed280> (Domain: [MYAPPBUNDLEID], User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access, detaching from cfprefsdI open my standard defaults (a .plist) in -awakeFromNib like so: NSUserDefaults *ud = [NSUserDefaults standardUserDefaults]; [ud registerDefaults:[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"WhodoMacOSDefaults" ofType:@"plist"]]]; [ud setObject:launch_Date forKey:kKudosLaunchDate];This activity throws 2 of these errors in the console:error 16:14:26.429881 -0700 [MYAPPNAME] attempt to set <private> for key in <private> in non-persistent preferences domain CFPrefsPlistSource<0x6000000ed280> (Domain: [MYAPPBUNDLEID], User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes)Then subsequently every 'set' for NSUserDefaults throw another of these into the console log...Nothing fancy going on in this app: no app groups, no iCloud, no hardened runtime...I don't see a 'user-preference-read' option in the standard entitlement document. Am I missing some basic conguration setting?Is this all just a by-product of running a 'development' archive?Any thoughts appreciated!Steve
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
1 Replies
714 Views
Xcode 13.2 Using CNContact seeing the error in the log: ... [framework] Resetting database at nil path is not allowed .... What does this mean? What causes this to happen? How do I avoid this? Any help appreciated! Steve
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
0 Replies
506 Views
Folks; Is there any reason I only receive 25 items in any MKLocalSearch not matter what the request entails? MacOS 11.6 - Xcode 13.0 Steve
Posted
by SwampDog.
Last updated
.
Post marked as solved
1 Replies
814 Views
Hello Folks; I'm trying to utilize a crash log from App Review. I've uploaded the app with DWARF with dSYM File. When I open the App Review .crash file in Xcode I see this: #0 in __pthread_kill () #1 in pthread_kill () #2 in abort () #3 in abort_message () #4 in demangling_terminate_handler() () #5 in _objc_terminate() () #6 in std::__terminate(void (*)()) () #7 in std::terminate() () #8 in _dispatch_client_callout () #9 in _dispatch_main_queue_callback_4CF () #10 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ () #11 in __CFRunLoopRun () #12 in CFRunLoopRunSpecific () #13 in RunCurrentEventLoopInMode () #14 in ReceiveNextEventCommon () #15 in _BlockUntilNextEventMatchingListInModeWithFilter () #16 in _DPSNextEvent () #17 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] () #18 in -[NSApplication run] () #19 in NSApplicationMain () #20 in 0x10a062000 () #21 in 0x10a062000 () #22 in start () Whereas in Console it looks like this: 0 CoreFoundation 0x00007fff2053783b __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff2026fd92 objc_exception_throw + 48 2 CoreFoundation 0x00007fff205609a2 +[NSException raise:format:arguments:] + 88 3 Foundation 0x00007fff2131e4d2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191 4 AppKit 0x00007fff22d02679 -[NSCell _objectValue:forString:errorDescription:] + 260 5 AppKit 0x00007fff22d024d3 -[NSCell setStringValue:] + 44 6 AppKit 0x00007fff22d7af3e -[NSControl setStringValue:] + 121 7 AppXYZ 0x000000010a069107 AppXYZ + 28935 8 AppXYZ 0x000000010a07eed1 AppXYZ + 118481 9 libdispatch.dylib 0x00007fff20219623 _dispatch_call_block_and_release + 12 10 libdispatch.dylib 0x00007fff2021a806 _dispatch_client_callout + 8 11 libdispatch.dylib 0x00007fff20226b4f _dispatch_main_queue_callback_4CF + 940 12 CoreFoundation 0x00007fff204fa5a8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 13 CoreFoundation 0x00007fff204bc7a2 __CFRunLoopRun + 2755 14 CoreFoundation 0x00007fff204bb61c CFRunLoopRunSpecific + 563 15 HIToolbox 0x00007fff28701a83 RunCurrentEventLoopInMode + 292 16 HIToolbox 0x00007fff287017e5 ReceiveNextEventCommon + 587 17 HIToolbox 0x00007fff28701583 _BlockUntilNextEventMatchingListInModeWithFilter + 70 18 AppKit 0x00007fff22cc3172 _DPSNextEvent + 864 19 AppKit 0x00007fff22cc1945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364 20 AppKit 0x00007fff22cb3c69 -[NSApplication run] + 586 21 AppKit 0x00007fff22c87e6c NSApplicationMain + 816 22 AppXYZ 0x000000010a155a62 AppXYZ + 997986 23 AppXYZ 0x000000010a155afb AppXYZ + 998139 24 libdyld.dylib 0x00007fff203dff3d start + 1 25 ??? 0x0000000000000001 0x0 + 1 So what am trying to understand is how to utilize lines 7 & 8 in the Console. Reading through the Docs (https://developer.apple.com/documentation/xcode/adding-identifiable-symbol-names-to-a-crash-report#Symbolicate-the-Crash-Report-in-Xcode) it seems like I should use 'atos' but its not working out.... For starters there is no 'Binary Architecture' information in the 'Binary Images' section of the .crash file. Can someone point out what I need to do here or clarify my misunderstanding? Thank for any help! Steve
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
1 Replies
583 Views
Using Xcode 12.5.1 I have 2 properties on an object @property NSMutableArray *mutA1; @property NSMutableArray *mutA2; During initialization I do this: self.mutA1 = [NSMutableArray arrayWithCapacity:10]; self.mutA2 = [NSMutableArray arrayWithCapacity:10]; The first assignment works fine but I get an error on the second assignment! Exception NSException * "[<__NSArrayM 0x6000037f1ec0> addObserver:forKeyPath:options:context:] is not supported. Key path: count" 0x00006000037d74e0 What can explain this? I am just stumped!! Thank you for any help! Steve
Posted
by SwampDog.
Last updated
.
Post marked as solved
1 Replies
574 Views
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
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
0 Replies
650 Views
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
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
2 Replies
7.3k Views
When logged into App Store Connect and viewing Users and Access I select Account Holder and then open my AppleID.On the ensuing window I see the possible notifications that I can sign up for.One is entitled 'Developer Response' which has the clarifying text 'Receive an email if a customer edits a review you’ve responded to.'I would like to advocate for a new notification:'Receive an email if a customer creates a review.'Without this notification I must manually check for this activity.Even with one app this seems to me to be an unnecessary use of my limited time.With now several apps this is becoming quite tedious...Please advise if there is a better way to advocate for this useful feature.Steve
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
11 Replies
1.8k Views
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!
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
0 Replies
353 Views
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!
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
2 Replies
809 Views
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.
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
2 Replies
428 Views
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?
Posted
by SwampDog.
Last updated
.
Post not yet marked as solved
0 Replies
523 Views
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...
Posted
by SwampDog.
Last updated
.
Post marked as solved
2 Replies
1.5k Views
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
Posted
by SwampDog.
Last updated
.