Posts

Post not yet marked as solved
8 Replies
1.3k Views
We have not been able to launch any of the applications we build using the most recent build tools and platform. To be specific, this problem occurs with Xcode 13.4.1 or newer on macOS Monterey 12.6 (possibly earlier as well) with a Silicon processor. On a similar Intel machine, there is no issue. The symptom is as follows: If the application is built entirely in Xcode and not copied anywhere, it does launch successfully (same thing applies if it is moved into another location). But if it is copied somewhere else, its icon just bounces forever and nothing else happens. Apparently the program launcher (launchd, I suppose) is for some reason unable to launch the application, or it refuses to do so. Even so, no complaints are found in the log file for launchd. We usually build our applications using command line build tools and a specially crafted scripts for putting files into the application bundle, code signing and notarising. It is of course critical for us that we can put together and distribute our applications to machines running on a Silicon processor, so any help will be greatly appreciated. The problem is easily reproduced. Simply create an application from the macOS App template in Xcode. Then locate the app bundle somewhere beneath the folder ~/Library/Developer/, and copy it to another location on the machine. You will not be able to launch the copy of the application.
Posted Last updated
.
Post not yet marked as solved
0 Replies
261 Views
I want to trigger mouse right click actions whenever the user hits the mouse button while pressing the control key. This has until now been accomplished by replacing a mouse click event with the control key modifier with a mouse right click event inside a specialisation of the NSApplication method nextEventMatchingMask:untilDate:inMode:dequeue:: //When current event matches mouse click with ctrl key pressed create mouse right click event event = [NSEvent mouseEventWithType:NSEventTypeRightMouseDown ...] //Discard current event and replace it with the new event [_currentEvent release]; _currentEvent = event; [event retain]; This works, but manipulating _currentEvent directly is no longer allowed. I then tried to use the following to discard the current event and replace it: [self postEvent:event atStart:YES]; [self discardEventsMatchingMask:mask beforeEvent:event]; Although the new event does get inserted into the queue, the original event is still there. So can you tell med what I am missing? Or should this not be handled in the NSApplication subclass at all? Thank you very much in advance!
Posted Last updated
.
Post not yet marked as solved
8 Replies
6.9k Views
HelloWe have a number of X11 applications, which are linked against shared libraries from XQuartz. To be able to notarize our applications, we have signed out applications with "hardened runtime", i.e. enforcing "library validation" of all used libraries.The libraries from XQuartz are a bit old, but they are codesigned with a Developer ID, e.g.Executable=/opt/X11/lib/libXt.6.dylibIdentifier=libXt.6Format=Mach-O universal (i386 x86_64)CodeDirectory v=20200 size=3079 flags=0x0(none) hashes=92+2 location=embeddedSignature size=8927Authority=Developer ID Application: Apple Inc. - XQuartz (NA574AWV7E)Authority=Developer ID Certification AuthorityAuthority=Apple Root CATimestamp=29 Oct 2016 at 09.59.52Info.plist=not boundTeamIdentifier=NA574AWV7ESealed Resources=noneInternal requirements count=1 size=168Our Developer ID is of course different from the Developer ID of XQuartz, and unfortunately this means that we are not able to load the libraries at run-time, getting errors like:dyld: Library not loaded: /opt/X11/lib/libXt.6.dylib Referenced from: /Applications/NG-tsrv37io/CciFiles/extlib64/libgsdisp.9.26.dylib Reason: no suitable image found. Did find: /opt/X11/lib/libXt.6.dylib: code signature in (/opt/X11/lib/libXt.6.dylib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDsIs there any solution to this problem?Thanks in advance!RegardsClaus
Posted Last updated
.
Post not yet marked as solved
2 Replies
402 Views
We have been used to generate a customized installer package (actually a .zip file) on site for the customer to install. It contains non-standard information such as server URL, system name etc., which is information that is not known when we ship our code.Now with code signing and notarization, it is not possible to modify the standard bundle. Or are there any exceptions to this rule? And if not, is there a recommended way of dealing with such issues?Thanks in advance!RegardsClaus Moltke-Leth
Posted Last updated
.
Post not yet marked as solved
4 Replies
613 Views
Apple has announced that notarization will not become required until January 1, 2020. But it would be very valuable to be able to know in advance if our applications will still run when the notarization requirements have taken effect - and on which operating system versions.So is it possible to put the system into a special "notarization required" mode, where the system behaves as if Apple has fully enabled all notarization requirements?Thanks in advance!RegardsClaus Moltke-Leth
Posted Last updated
.