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
Ok, just found another thread which actually provides functional workarounds: https://developer.apple.com/forums/thread/727123 Replacing ditto with zip works for us. For anyone considering doing the same please read the other thread as it contains additional infos which may be important in other cases.
Topic: Code Signing SubTopic: Notarization Tags:
Jul ’23
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).
Topic: Code Signing SubTopic: Notarization Tags:
Jul ’23