Post

Replies

Boosts

Views

Activity

Is it OK to link libraries from /usr/lib?
I compiled a dynamic library for macOS (open source) When I checked with otool -L abc.dylib it shows that it links several other libraries from /usr/lib/ Is it OK, or Apple may remove these libraries in future versions of macOS? /usr/lib/libz.1.dylib /usr/lib/libiconv.2.dylib /usr/lib/libSystem.B.dylib /usr/lib/libbz2.1.0.dylib /usr/lib/libobjc.A.dylib
0
0
794
Mar ’21
Notarization of two apps - wrong result
When I notarize two apps the same time I get wrong DMG image for second app. I use a command for App1 and then for App2: xcrun altool --notarize-app --primary-bundle-id app1id -u my@email.com -p xxxxxxx --file App1.dmg xcrun altool --notarize-app --primary-bundle-id app2id -u my@email.com -p xxxxxxx --file App2.dmg Then I get an email with a successful notarization, I call xcrun stapler staple App1.dmg xcrun stapler staple App2.dmg DMG with App1 is correct. Signed and notarized. But after stapling DMG with App2 is wrong - it includes App2 and App1 (!) and DMG has increased file size! Of course, I've sent for a notarization only a single App2 in a DMG. What I'm doing wrong? This problem doesn't appear if I send App2 for notarization AFTER successful notarization of App1 and stapling DMG image. macOS 11.1 Big Sur, Apple DTK.
2
0
980
Feb ’21
Localization problem in NSOpenPanel
My app is cross-platform and I don't use Xcode project. All localization inside app is performed with an internal code and works fine. There is a problem with localization in NSOpenPanel and NSSavePanel. They always appear on English and don't use macOS current language (French) of an user. I added the following code to Info.plist : <key>CFBundleLocalizations</key> <array>    <string>en</string>    <string>fr</string> </array> But NSOpenPanel still appears on English. I checked macOS TextEdit app which shows NSOpenPanel correctly with current OS language. Its Info.plist doesn't set any CFBundleLocalizations records. How this app tells macOS what language should be used for NSOpenPanel?
4
0
1.5k
Jan ’21