Post

Replies

Boosts

Views

Activity

Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
I have been able to fix the crash reported above by adding /usr/lib/swift to 'Runpath Search Paths'. I noticed that Xcode implicitly sets this path in my other small test project even though the corresponding entry in the build settings is empty. In my main project this did not happen. It would be nice if the app would print something meaningful instead of cryptically crashing. Normally if there is an issue with dynamic libraries a message is printed that the library could not be loaded. Here nothing of that sort happened.
Sep ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
I did a bit more digging in the disassembly and found that the error message passed to swift::fatalError() is "Failed to look up symbolic reference at %p - offset %d - symbol %s in %s\n" The final parameter is the executable path. The second last parameter is the following string: "symbolic _____Sg ScP" I get the feeling that the swift compiler attempts to bind to a symbol which the objc compiler didn't export. On the objC side the call simply looks the following: [object method:^() {}];
Sep ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
I tried that and it compiles but I get a crash exactly where the Swift function attempts to call the completion handler: 0x10a7f36cd <+93>: callq 0x10a7f3920 ; Swift._runTaskForBridgedAsyncMethod(__owned @Sendable () async -> ()) -> () at <compiler-generated> #1 0x00007ff814974f85 in pthread_kill () #2 0x00007ff814895b19 in abort () #3 0x00007ff82623dc21 in swift::fatalErrorv () #4 0x00007ff82623dcab in swift::fatalError () #5 0x00007ff826270746 in swift::ResolveAsSymbolicReference::operator() () #6 0x00007ff8262a3a32 in swift::Demangle::__runtime::Demangler::demangleSymbolicReference () #7 0x00007ff82629fd78 in swift::Demangle::__runtime::Demangler::demangleType () #8 0x00007ff8262777c7 in swift_getTypeByMangledNameImpl () #9 0x00007ff826272a8b in swift_getTypeByMangledName () #10 0x00007ff826272d87 in swift_getTypeByMangledNameInContextImpl () #11 0x000000010a7f34ab in __swift_instantiateConcreteTypeFromMangledName () #12 0x000000010a7f393c in _runTaskForBridgedAsyncMethod(_:) ()
Sep ’24
Reply to Notarytool doesn't recognise my zip as a zip
We are having the same problem. Since altool notarization will be removed this fall we need a functional workaround soon. In our case the only reason we zip our .app is to send for notarization because altool and notarytool don't accept .app. We distribute only an installer which pulls/updates the .app from our servers. So what is the solution/workaround now? What's the status of the bug report anyway? The link provided above doesn't work for me (feedback not found).
Jul ’23
Reply to App Store rejection (keystrokes access)
We have resolved the problem. I am presenting details here in case other developers run into the same problem. First, not every Mac shows the same symptoms. We were unlucky to start testing with a Mac Mini (10.15) that did not trigger the keystrokes dialog which made it impossible for us to debug. Further tests with other Macs were successful and allowed us to localise the problem. In our case the offending code was located in an older version of SDL (2.0.8). The problem has been fixed in later versions, the two relevant commits are: Commit 1 - https://github.com/spurious/SDL-mirror/commit/8ace14e8244b7bc82881b7ee437ee3b17ab86985#diff-8779326b1912bdedc731ffe4bf485dc8 Commit 2 - https://github.com/spurious/SDL-mirror/commit/1ceddc5a20b954f7e4110e2cec2403576faf71ab#diff-906b3479f92876240ca6d12bbd1299f8 The first commit contains the actual fix for the privacy problem and the second is a correction, included here in case someone wants to patch older SDL versions instead of upgrading.
Jun ’20
Reply to App Store rejection (keystrokes access)
Hello eskimoYou are correct, disabling Hardened Runtime did not solve the problem.We are also not able to reproduce the dialog. I have installed the failing package on a 10.15 system where the application has never run before. It did not trigger the dialog. This means we are unable to progress.
Jun ’20