Post

Replies

Boosts

Views

Activity

How to write defaults value from a file as bytes?
How to save content of a file into via defaults in such a way that they are handled as -data type? Something like (just a naive idea, might not direct to the right approach): % FILEDATA=... # read abc.xyz into a variable % defaults write mydomain mykey -data "$FILEDATA" # save into user data I. e., when I call defaults read on that key I get: % defaults read mydomain mykey {length = 400, bytes = 0xdcf2dbbb cb4343d7 ec4324ae 1234de18 ... 289f4567 ec4324ae } Later in an obj-c app, the data are read using: NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; NSData *data = [userDefaults dataForKey:@"mykey"];
1
0
491
Oct ’21
Gatekeeper does not allow a bundle to run before manually running spctl --assess of contained dylib files
Hi,I am creating a plug-in written in a combination of Objective-C and Swift. As such, the bundle contains the following structure:/Contents/Frameworks/libswiftCore.dylib (and few other Swift's dylib files)/Contents/Info.plist/Contents/MacOS/MainProductBinary/Contents/Resources/ - contains pdfs, nibs etc.1. I've codesigned and notarized each *.dylib file individually2. I've codesigned and notarized the bundle as a whole3. I've packed the bundle and transfered via web (so it becomes quarantined) to a fresh Catalina virtual machime4. I've installed the third-party host application for which the our product is a plug-in onto the Catalina virtual machine5. I've placed the plug-in into a folder where the host application expects itWhen I start the host application, Gatekeeper complaines that it cannot check the bundle for malvare.I manually assess the *.dylib files using a Terminal using the commands bellow:for filename in MyPlugin.bundle/Contents/Frameworks/*.dylib; do spctl --assess --verbose=4 --type install "$filename" doneAfter running these commands, Gatekeeper becomes satisfied and allows the plug-in to run when I start the host application.However, I'm not a supporter of an idea to force users to run these commands before installing the plug-in.Additional notes:- Running spctl --assess --type install on the whole bundle before manually assessing the *.dylib files reports "rejected". However, running the same command after manually assessing the *.dylib files reports "accepted".What should I do to make Gatekeeper satisfied without the need to run these commands?
27
0
5.1k
Feb ’20
sctl -a reports Rejected even Notarization Status reports Approved
I am creating a plug-in package written in objc/swift to a third-party macOS app (both are distributed outside of the App Store).1. I managed to get the package signed up with a Developer ID Application certificate and have it timestampted.codesign -dv --verbose=4reportsAuthority=Developer ID Application: () Timestamp=andcodesign --verify --deep --strict --verbose=2reports "--validated" on each swift library (the main plug-in executable is not listed) and ends the output with--prepared:<bundled swift libraries> --validated:<bundled swift libraries> valid on disk satisfies its Designated Requirement2. I have zipped the package, sent it to notarization and got an e-mail that the notarization succeeeded.xcrun altool --notarization-history 0reports success 0 Package Approved3. However, if I try to assess the package via a sctl tool, it reports Rejected.spctl --assess --verbose=4 --type installreports: rejected source=Unnotarized Developer IDAny ideas what is wrong / how to fix it?macOS 10.14.6Xcode 11.3.1
10
0
4.0k
Feb ’20
Apple Developer Program for multiple companies
Hi,I am missing details about how the Apple Developer Program subscription works.How is the Apple Developer Program bound to an Apple Account? Its 1:1 or indirect (1:n, n:1, n:n)?For example, if I would like to subscribe two entities to the Apple Developer Program, can i use the same Apple Account or do I need to use a separate Apple Account for each of the subscription?Who can manage the Apple Developer Program subscription? Only the Apple Account which originally purchased it or I can give appropriate permissions to additional accounts as well? What if I move out from that entity and I need to transfer/pass the subscription to someone else?Thanks.
0
0
319
Dec ’19