Posts

Post not yet marked as solved
1 Replies
1.2k Views
Before Big Sur, there was a property list at /System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist that contained a list of all of the standard files/locations that Time Machine would exclude from a backup. That file seems to have disappeared and I have been unable to find an equivalent. Furthermore, the tmutil isexcluded (i.e. NSURLIsExcludedFromBackupKey/CSBackupIsItemExcluded) does not reliably report these locations as excluded. So is there still a publicly accessible way of discovering the standard locations excluded by Time Machine?
Posted
by dawn2dusk.
Last updated
.
Post marked as solved
3 Replies
1.1k Views
I have a helper app that must, occasionally, run as root. I've spent the last year added a bunch of functionality in Swift and testing it on Big Sur without any problem. I just now tried installing it on High Sierra (10.13.6), and when the helper is launch as the regular user is runs just fine. But when launched as root, I get dyld: warning, LC_RPATH @executable_path/../Frameworks in /Users/USER/Library/Application Support/MyApp/Helper.app/Contents/MacOS/Helper being ignored in restricted program because of @executable_path dyld: Library not loaded: @rpath/libswiftCore.dylib   Referenced from: /Users/USER/Library/Application Support/MyApp/Helper.app/Contents/MacOS/Helper   Reason: image not found Abort trap: 6 So what do I need to do to get the Swift runtime libraries to load?
Posted
by dawn2dusk.
Last updated
.
Post marked as solved
6 Replies
1.4k Views
Big Sur finally retired the (depreciated) hdiutil flatten and hdiutil unflatten commands. In its place is the hdiutil udifrez which writes legacy resources to a UDIF disk image. However, no matter what I've tried, it breaks our distribution disk images. Specifically, what our release scripts used to do was this (simplified version): This process starts with the application to release (PRODUCT_CLIENT_APP) and an existing Disk Image file (PROTO_IMAGE_SRC) that's all pretty (has a custom background, window size, ...). The prototype disk image is duplicated, mounted, and the release app is copied onto it: cp -f "${PROTO_IMAGE_SRC}" "${PROTO_IMAGE_WORK}" hdiutil attach "${PROTO_IMAGE_WORK}" cp -R "${PRODUCT_CLIENT_APP}" "${PROTO_VOLUME_DIR}" The image is then unmounted and compressed hdiutil detach "${PROTO_DEVICE}" hdiutil convert "${PROTO_IMAGE_WORK}" -format UDCO -o "${DMG_RELEASE_SIGNED}" Here's where the license was attached. The disk image was converted to a forked disk image file, the resource file was compiled and attached, and then converted back to a flat disk image file. hdiutil unflatten "${DMG_RELEASE_SIGNED}" Rez -a "${BUILD_TOOLS_DIR}/software_license.r" -o "${DMG_RELEASE_SIGNED}" hdiutil flatten "${DMG_RELEASE_SIGNED}" The completed disk image is then signed and uploaded for notarization: codesign --sign "${DMG_SIGN_IDENTITY}" --verbose=3 "${DMG_RELEASE_SIGNED}" xcrun altool --notarize-app --primary-bundle-id "${PRIMARY_BUNDLE_IDENTIFIER}" -f "${DMG_RELEASE_SIGNED}" ... After noterization is complete, the signed image is stapled and verified: cp "${DMG_RELEASE_SIGNED}" "${DMG_RELEASE_FINAL}" stapler staple --verbose "${DMG_RELEASE_FINAL}" spctl --assess --type open --context context:primary-signature --verbose=2 "${DMG_RELEASE_FINAL}" This all used to work just fine, until the flatten and unflatten commands went away. Since the hdiutil udifrez -rsrcfork option is either unimplemted or broken, we tried using the hdiutil udifrez -xml option. Since the XML file for this command isn't documented anywhere, we created one using the udifderez command using the license resources from a previous release. Armed with this XML file, I replaced the (unflatten/Rez/flatten) license attachment step with this: hdiutil udifrez -xml "${BUILD_TOOLS_DIR}/software_license.xml" '' "${DMG_RELEASE_SIGNED}"  (note the extra, blank, argument because there's apparently another bug—or documentation failure—in udifrez, and if omitted the command fails) Everything proceeds swimmingly, through the signing and stapling, except the resulting file is broken. When you open the disk image the SLA appears. Agree to the license, you're presented with a failure dialog: 									Warning The following disk images couldn't be opened Image							Reason release_2.2.3.dmg	image data corrupt If I leave out the single hdiutil udifrez -xml ... step, everything works (except that there's no attached license agreement). I can't attach the license before the disk image is compressed, because it's the wrong format. I can't attach the license after the disk image is signed or stapled, for obvious reasons. So we're stuck. I can't find any way of attaching a SLA to a signed and notarized distribution disk image, using the current set of tools, without breaking the disk image.
Posted
by dawn2dusk.
Last updated
.
Post marked as solved
3 Replies
1.3k Views
Does anyone know if Apple has posted a technical comparison or summary of the differences between Intel and ARM processor capabilities/limitations? Specifically, I have code that de-serializes a custom stream of data. Right now, this can result in non-word-aligned fetches and stores of word and double word values. 68K CPUs used to choke on this, but all modern 64-bit Intel processors handle it just fine. What about ARM? Also curious to know if 64-bit fetches and stores are always atomic.
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
3 Replies
326 Views
Subject says it all: where do I download the Mojave installer? I've tried to be good about capturing and saving installers for each OS, since Apple is now in the annoying habit of hiding installers for older OSes, but I seem to have lost my copy of the macOS 10.15 installer. I searched developer.apple.com, and the developer download area, and the app stores, and everywhere else I could think of and ... nothing.
Posted
by dawn2dusk.
Last updated
.
Post marked as solved
2 Replies
1.5k Views
I have an app that recently started building/running under Catalina and its simple state preservation/restoration code has suddenly stopped working.The code archives an array of custom objects into an NSData blob that gets saved somewhere. Later, that data is decoded back into the array which is used to restore the state.Distilling the problem, I've created the following example:#define SECURE 1 #if !SECURE // The unsecure example UnsecureObject* bonnie = [UnsecureObject new]; bonnie.property = @"Bonnie Elizabeth Parker"; UnsecureObject* clyde = [UnsecureObject new]; clyde.property = @"Clyde Champion Barrow"; NSArray<unsecureobject*>* rootObject = @[ bonnie, clyde ]; #endif #if SECURE // Secure example SecureObject* francis = [SecureObject new]; francis.property = @"Francis Crick"; SecureObject* james = [SecureObject new]; james.property = @" James Watson"; NSArray<secureobject*>* rootObject = @[ francis, james ]; #endif // Encode an array of objects into a data blob NSError* error = nil; NSData* data = [NSKeyedArchiver archivedDataWithRootObject:rootObject requiringSecureCoding:SECURE error:&error]; if (error!=nil) @throw error; // Decode the data back into an array NSArray* roundTrip = [NSKeyedUnarchiver unarchivedObjectOfClass:NSArray.class fromData:data error:&error]; if (error!=nil) @throw error;This works fine in Mojave. In Catalina, the unarchivedObjectOfClass method results in an error:(lldb) po error Error Domain=NSCocoaErrorDomain Code=4864 "value for key 'NS.objects' was of unexpected class 'SecureObject'. Allowed classes are '{( NSArray )}'." UserInfo={NSDebugDescription=value for key 'NS.objects' was of unexpected class 'SecureObject'. Allowed classes are '{( NSArray )}'.}I thought it might be a new "secure coding" requirement, but as you can see the problem occurs regardless of whether the objects in the graph support secure coding or note.Any suggestions?(And BTW, where did the documentation for secure coding go? I distinctly remember, years ago, an extensive guide on secure coding describing exactly how to use it and its coding requirements. Now, no matter what I search for, I can only find the legacy "archive and serialization" guide that makes no mention of NSSecureCoding. And, of course, the NSSecureCoding API page explains almost nothing.)
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
2 Replies
1.2k Views
Title says it all.Running latest Xcode and macOS.Has anyone experienced this or know how to fix it?The crash report would indicate an invalid object reference ... possibly just a bug in locationd?Process: locationd [4787] Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/locationd Identifier: locationd Version: 2245.8.12 Code Type: X86-64 (Native) Parent Process: launchd_sim [4764] Responsible: locationd [4787] User ID: 501 Date/Time: 2019-01-01 12:29:25.294 -0700 OS Version: Mac OS X 10.14.2 (18C54) Report Version: 12 Anonymous UUID: 18819405-9D95-F126-019B-AF35B63A3A05 Time Awake Since Boot: 10000 seconds System Integrity Protection: enabled Crashed Thread: 11 Dispatch queue: CLSimulationControllerSilo Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000ffffffff Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [4787]
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
6 Replies
3.9k Views
During the Mojave beta, I manually submitted our app for notarization and, after a few corrections, it worked!Now I'm trying to fit the notarization process into our release build workflow and it's failing. Every executable in the package is getting rejected with the message "The executable requests the com.apple.security.get-task-allow entitlement."I've looked all over Xcode and our project settings and I can't find this entitlement anywhere.Is this something I need to turn off, and if so how?Notes: the successful tests were done in the Mojave beta using Xcode version 10, while the new build scripts are running in High Sierra and Xcode version 10.0 (10A255). Also, the submissions are being uploaded using the altool.
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
0 Replies
460 Views
I'm trying to test the new noterization tool, but when I execute xcrun from the Terminal it says it needs to install the command tools. I agree, but then immediately get a dialog that says:"Can't download the software because of a network problem"I've got a hard-wired Internet connection, the same one I used to download the Xcode beta, and everything else Internet releated appears to be working just fine. However, I will point out that I've also been unable to get any Mojave updates to work, as I get a similar error that there was a "download problem."So at this point I'm stumped.Any suggestions?
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
4 Replies
1.8k Views
I'm the author of a backup utility. In our testing with Mojave, we've discovered a handful of files, directories, and extended attributes that can't be read ... even by root.Specifically,Cannot read the following files:/Library/Preferences/com.apple.TimeMachine.plist/Users/amber/Library/Preferences/com.apple.AddressBook.plistCannot read the extended attributes of the following items:/Library/Application Support/com.apple.TCC/Users/amber/Library/Application Support/AddressBook/Users/amber/Library/Calendars/Users/amber/Library/Safari/Users/amber/Library/Suggestions/Users/amber/Library/PersonalizationPortrait/Users/amber/Library/CookiesIn all cases, the error returned was 1 (EPERM, "Operation not permitted").(a) Is the expected behavour for Mojave?(b) Is this documented somewhere (I couldn't find any mention of this in the release notes)(c) Is there a way around this?
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
3 Replies
1k Views
So I noticed this in my account settings: "Note: You can enable mobile push notifications after logging into the Jive Mobile app. Get the app now for IOS or Android."So I download the Jive app, but I can't seem to set it up. The app opens to a screen with "Jive URL", an input text field that says "Required", a disabled button named "continue" and a right arrow.There's no clue or explnation for any of this, nor is there a link to help. I went to the jivesoftware.com website, but honestly can't find anything useful.So does anyone know if I can use this with the developer forums?
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
2 Replies
4.0k Views
Xcode make it way too easy to create new signing identites.In trying to fix a disk image signing problem, I now have several Developer ID Application certificates. This is causing the script that signs our distribution DMG file to fail. The commandcodesign --sign "${CODE_SIGN_IDENTITY}" --verbose=3 "${DMG_FINAL}" >> "${TRANSCRIPT}" 2>&1produces the output:Developer ID Application: ambiguous (matches "Developer ID Application: James (XXXXXXXXH54U)" and "Developer ID Application: James (XXXXXXXXH54U)" in /Users/james/Library/Keychains/login.keychain-db)It would seem that the obvious solution would be to simply delete the extranious certificates, but you can't seem to do that in Xcode. (The "Delete" menu item is always disabled.) I'm hesitent to delete anything directly from Keychain, becuase the last time I tried that it totally wrecked Xcode to the point that I had to delete everthing from Keychain and issue all new certificates.Does anyone know how to resolve this?
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
2 Replies
2.7k Views
Every time my process is about to terminate and close its XPC connections, it logs this message to the console:BUG in libdispatch client: dispatch_mig_server: mach_msg() failed (ipc/send) msg too small - 0x10000008Is this a bug in my program? Any hints or suggestions as to what is causing it?
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
1 Replies
2.7k Views
I just installed the Mojave beta and started some testing. Later today I was notified that there's an update available:The macOS beta (10.14 Beta 18A336e) is installed on a separate partition. I'm trying to perform the update from the booted 10.14 beta.An update is available for your Mac • macOS Mojave Developer Beta 8When I click teh Update Now button, a dialog sheet rolls out (too quickly to read) and is immediately replaced with dialog sheet that says Installation failed An error occurred while installing the selected updates.This is what I find in the Console:default 16:48:11.338220 -0700 softwareupdated Personalization is not required for the running system default 16:48:11.343039 -0700 softwareupdated #47ce241c ACSLocateCachingServer(assetURL=http://swcdn.apple.com/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/macOSUpd10.14.RecoveryHDUpdate.pkg, locateTimeout=30.000, options=(null), callbackQueue=0x0, callback=0x70000c58a6f8) default 16:48:11.350374 -0700 softwareupdated #47ce241c ACSLocateCachingServer -> [new] newURL http://10.0.1.22:50593/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/macOSUpd10.14.RecoveryHDUpdate.pkg?source=swcdn.apple.com, advice { connectTimeout = "0.5"; supportsUrgency = 1; validUntil = "2018-08-22 00:35:26 +0000"; }, error (null), elapsed 0.007/30.000 default 16:48:11.350981 -0700 softwareupdated __NSCFLocalDownloadFile: error 14 opening resume file: (null) error 16:48:11.351229 -0700 softwareupdated Task . finished with error - code: -1002 default 16:48:11.351234 -0700 softwareupdated #79fc6270 ACSLocateCachingServer(assetURL=http://swcdn.apple.com/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/EmbeddedOSFirmware.pkg, locateTimeout=30.000, options=(null), callbackQueue=0x0, callback=0x70000c58a6f8) default 16:48:11.351340 -0700 softwareupdated #79fc6270 ACSLocateCachingServer -> [same] newURL http://10.0.1.22:50593/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/EmbeddedOSFirmware.pkg?source=swcdn.apple.com, advice { connectTimeout = "0.5"; supportsUrgency = 1; validUntil = "2018-08-22 00:35:26 +0000"; }, error (null), elapsed 0.000/30.000 error 16:48:11.351419 -0700 softwareupdated Task . load failed with error [14] default 16:48:11.351850 -0700 softwareupdated __NSCFLocalDownloadFile: error 14 opening resume file: (null) error 16:48:11.352032 -0700 softwareupdated Task . finished with error - code: -1002 default 16:48:11.352085 -0700 softwareupdated #7819cd96 ACSLocateCachingServer(assetURL=http://swcdn.apple.com/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/FirmwareUpdate.pkg, locateTimeout=30.000, options=(null), callbackQueue=0x0, callback=0x70000c58a6f8) default 16:48:11.352188 -0700 softwareupdated #7819cd96 ACSLocateCachingServer -> [same] newURL http://10.0.1.22:50593/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/FirmwareUpdate.pkg?source=swcdn.apple.com, advice { connectTimeout = "0.5"; supportsUrgency = 1; validUntil = "2018-08-22 00:35:26 +0000"; }, error (null), elapsed 0.000/30.000 default 16:48:11.352689 -0700 softwareupdated __NSCFLocalDownloadFile: error 14 opening resume file: (null) error 16:48:11.352884 -0700 softwareupdated Task . finished with error - code: -1002 default 16:48:11.352923 -0700 softwareupdated #3e4e093e ACSLocateCachingServer(assetURL=http://swcdn.apple.com/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/macOSBrain.pkg, locateTimeout=30.000, options=(null), callbackQueue=0x0, callback=0x70000c58a6f8) default 16:48:11.353027 -0700 softwareupdated #3e4e093e ACSLocateCachingServer -> [same] newURL http://10.0.1.22:50593/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/macOSBrain.pkg?source=swcdn.apple.com, advice { connectTimeout = "0.5"; supportsUrgency = 1; validUntil = "2018-08-22 00:35:26 +0000"; }, error (null), elapsed 0.000/30.000 default 16:48:11.353585 -0700 softwareupdated __NSCFLocalDownloadFile: error 14 opening resume file: (null) default 16:48:11.353833 -0700 softwareupdated #4664d281 ACSLocateCachingServer(assetURL=http://swcdn.apple.com/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/FullBundleUpdate.pkg, locateTimeout=30.000, options=(null), callbackQueue=0x0, callback=0x70000c58a6f8) error 16:48:11.353834 -0700 softwareupdated Task . finished with error - code: -1002 default 16:48:11.353944 -0700 softwareupdated #4664d281 ACSLocateCachingServer -> [same] newURL http://10.0.1.22:50593/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/FullBundleUpdate.pkg?source=swcdn.apple.com, advice { connectTimeout = "0.5"; supportsUrgency = 1; validUntil = "2018-08-22 00:35:26 +0000"; }, error (null), elapsed 0.000/30.000 default 16:48:11.354439 -0700 softwareupdated __NSCFLocalDownloadFile: error 14 opening resume file: (null) error 16:48:11.354620 -0700 softwareupdated Task . finished with error - code: -1002 default 16:48:11.354672 -0700 softwareupdated #999b18bb ACSLocateCachingServer(assetURL=http://swcdn.apple.com/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/macOSUpd10.14.pkg, locateTimeout=30.000, options=(null), callbackQueue=0x0, callback=0x70000c58a6f8) default 16:48:11.354790 -0700 softwareupdated #999b18bb ACSLocateCachingServer -> [same] newURL http://10.0.1.22:50593/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/macOSUpd10.14.pkg?source=swcdn.apple.com, advice { connectTimeout = "0.5"; supportsUrgency = 1; validUntil = "2018-08-22 00:35:26 +0000"; }, error (null), elapsed 0.000/30.000 default 16:48:11.355319 -0700 softwareupdated __NSCFLocalDownloadFile: error 14 opening resume file: (null) error 16:48:11.355537 -0700 softwareupdated Task . finished with error - code: -1002 default 16:48:11.355565 -0700 softwareupdated #e63a69aa ACSLocateCachingServer(assetURL=http://swcdn.apple.com/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/SecureBoot.pkg, locateTimeout=30.000, options=(null), callbackQueue=0x0, callback=0x70000c58a6f8) default 16:48:11.355671 -0700 softwareupdated #e63a69aa ACSLocateCachingServer -> [same] newURL http://10.0.1.22:50593/content/downloads/35/00/041-00568/jjts2cvqr064o28x3xf5y3iflt4bif9wac/SecureBoot.pkg?source=swcdn.apple.com, advice { connectTimeout = "0.5"; supportsUrgency = 1; validUntil = "2018-08-22 00:35:26 +0000"; }, error (null), elapsed 0.000/30.000 default 16:48:11.356173 -0700 softwareupdated __NSCFLocalDownloadFile: error 14 opening resume file: (null) error 16:48:11.356346 -0700 softwareupdated Task . finished with error - code: -1002 error 16:48:11.356551 -0700 softwareupdated Task . load failed with error [14] error 16:48:11.356813 -0700 softwareupdated Task . load failed with error [14] error 16:48:11.357099 -0700 softwareupdated Task . load failed with error [14] error 16:48:11.357404 -0700 softwareupdated Task . load failed with error [14] error 16:48:11.357677 -0700 softwareupdated Task . load failed with error [14] error 16:48:11.357973 -0700 softwareupdated Task . load failed with error [14] error 16:48:11.363325 -0700 SoftwareUpdateNotificationManager Error occurred during download: Error Domain=NSPOSIXErrorDomain Code=14 "Bad address" UserInfo={_NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDownloadTask ." ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask .} default 16:48:11.363385 -0700 SoftwareUpdateNotificationManager Skipping posting error notification for download error because we still have an active client Not sure what to do. Next I'll try updating the Mojave installer app on my 10.13 system and try reinstalling the beta partition.
Posted
by dawn2dusk.
Last updated
.
Post not yet marked as solved
4 Replies
2.1k Views
I have a long running process and I'm trying to profile a specific task. I'd like to be able to start Instruments collecting performance data when the task starts, then stop it again as soon as it is finished.Googling, I found the DTPerformanceSession framework, which looked like exactly what I need, but it appears to be obsolete (added in Instruments 4 and no longer documented anywhere).Is there something equivelent for Instruments 9?
Posted
by dawn2dusk.
Last updated
.