Post

Replies

Boosts

Views

Activity

Reply to App crash that build with xcode 15 on ios 13.7, errror #3 0x000000010e5508d4 in ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) ()
I'm having a similar issue. I created a simple xcode app project in objective c. I renamed my appdelegate source file to AppDelegate.mm to accept c++ code then included the following in the applicationDidFinishLaunching method: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application NSLog(@"bf new"); UInt8 * b = new UInt8[512]; NSLog(@"af new"); delete[] b; NSLog(@"af del"); } the app crashes on UInt8 * b = new UInt8[512] alerting me of some memory corruption: Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [518] VM Regions Near 0: --> __TEXT 104be0000-104be4000 [ 16K] r-x/r-x SM=COW /Volumes/*/crash2.app/Contents/MacOS/crash2 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ??? 000000000000000000 0 + 0 1 com.apple.CoreFoundation 0x000000019da365c4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 2 com.apple.CoreFoundation 0x000000019dad85a0 ___CFXRegistrationPost_block_invoke + 52 3 com.apple.CoreFoundation 0x000000019dad850c _CFXRegistrationPost + 456 4 com.apple.CoreFoundation 0x000000019da0507c _CFXNotificationPost + 720 5 com.apple.Foundation 0x000000019e792370 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 6 com.apple.AppKit 0x00000001a023f710 -[NSApplication _postDidFinishNotification] + 340 7 com.apple.AppKit 0x00000001a023f428 -[NSApplication _sendFinishLaunchingNotification] + 236 8 com.apple.AppKit 0x00000001a023c514 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 580 9 com.apple.AppKit 0x00000001a023c0fc -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 780 10 com.apple.Foundation 0x000000019e7bf1c4 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 344 11 com.apple.Foundation 0x000000019e7beffc _NSAppleEventManagerGenericHandler + 96 12 com.apple.AE 0x00000001a36e0850 0x1a36d4000 + 51280 13 com.apple.AE 0x00000001a36e00cc 0x1a36d4000 + 49356 14 com.apple.AE 0x00000001a36d8b80 aeProcessAppleEvent + 520 15 com.apple.HIToolbox 0x00000001a597e62c AEProcessAppleEvent + 68 16 com.apple.AppKit 0x00000001a0236410 _DPSNextEvent + 1836 17 com.apple.AppKit 0x00000001a02349c8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1292 18 com.apple.AppKit 0x00000001a0226814 -[NSApplication run] + 596 19 com.apple.AppKit 0x00000001a01f8240 NSApplicationMain + 1064 20 brando.crash2 0x0000000104be2ff4 main + 44 21 libdyld.dylib 0x000000019d961430 start + 4 This only happens when I build using Xcode 15.0 and run on macOS 11.7.10. Other macOS versions work fine. I believe my issue may be related to yours because your crash is happening in some initialization process.
Nov ’23
Reply to Code Signing With Embedded Provisioning Profiles
I was originally trying to resign the bundle and other components after I modified the info.plist but the signature was invalid. I figured I only needed to resign the bundle and pass --preserve-metadata=identifier,entitlements,requirements in my call. This is my codesign call: codesign -f -v -o kill,runtime --timestamp --preserve-metadata=identifier,entitlements,requirements -s <ID> <Bundle>;
Topic: Code Signing SubTopic: General Tags:
Feb ’22
Reply to DriverKit USB Transport to support multiple devices with different Vendor IDs
Hello Kevin (@DTS Engineer ), I have submitted a entitlement request for multiple vendor ids as you instructed but I am always getting back an entitlement for only one vendor ID. I have a made a feedback assistant: FB16085048 Please let me know if you need more information. Brando
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to DriverKit System Extension not loading at boot time
A user addressed this in my forum. Apparently they submitted a feedback assistant but don't think this behavior changed
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to DriverKit USB Transport to support multiple devices with different Vendor IDs
Kevin, Thank you for your response. My team and I would prefer going down the path for one DEXT supporting multiple devices as it is the design choice we like the most. With that being said, how would I create one entitlement request for the USB Transport for two vendor IDs when the form only accepts one?
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to NSTextField changes its text color when users click on it under dark theme
This is happening to me too on macos 14.4.1, Xcode 15.2
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to App crash that build with xcode 15 on ios 13.7, errror #3 0x000000010e5508d4 in ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) ()
I'm having a similar issue. I created a simple xcode app project in objective c. I renamed my appdelegate source file to AppDelegate.mm to accept c++ code then included the following in the applicationDidFinishLaunching method: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application NSLog(@"bf new"); UInt8 * b = new UInt8[512]; NSLog(@"af new"); delete[] b; NSLog(@"af del"); } the app crashes on UInt8 * b = new UInt8[512] alerting me of some memory corruption: Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [518] VM Regions Near 0: --> __TEXT 104be0000-104be4000 [ 16K] r-x/r-x SM=COW /Volumes/*/crash2.app/Contents/MacOS/crash2 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ??? 000000000000000000 0 + 0 1 com.apple.CoreFoundation 0x000000019da365c4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28 2 com.apple.CoreFoundation 0x000000019dad85a0 ___CFXRegistrationPost_block_invoke + 52 3 com.apple.CoreFoundation 0x000000019dad850c _CFXRegistrationPost + 456 4 com.apple.CoreFoundation 0x000000019da0507c _CFXNotificationPost + 720 5 com.apple.Foundation 0x000000019e792370 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64 6 com.apple.AppKit 0x00000001a023f710 -[NSApplication _postDidFinishNotification] + 340 7 com.apple.AppKit 0x00000001a023f428 -[NSApplication _sendFinishLaunchingNotification] + 236 8 com.apple.AppKit 0x00000001a023c514 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 580 9 com.apple.AppKit 0x00000001a023c0fc -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 780 10 com.apple.Foundation 0x000000019e7bf1c4 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 344 11 com.apple.Foundation 0x000000019e7beffc _NSAppleEventManagerGenericHandler + 96 12 com.apple.AE 0x00000001a36e0850 0x1a36d4000 + 51280 13 com.apple.AE 0x00000001a36e00cc 0x1a36d4000 + 49356 14 com.apple.AE 0x00000001a36d8b80 aeProcessAppleEvent + 520 15 com.apple.HIToolbox 0x00000001a597e62c AEProcessAppleEvent + 68 16 com.apple.AppKit 0x00000001a0236410 _DPSNextEvent + 1836 17 com.apple.AppKit 0x00000001a02349c8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1292 18 com.apple.AppKit 0x00000001a0226814 -[NSApplication run] + 596 19 com.apple.AppKit 0x00000001a01f8240 NSApplicationMain + 1064 20 brando.crash2 0x0000000104be2ff4 main + 44 21 libdyld.dylib 0x000000019d961430 start + 4 This only happens when I build using Xcode 15.0 and run on macOS 11.7.10. Other macOS versions work fine. I believe my issue may be related to yours because your crash is happening in some initialization process.
Replies
Boosts
Views
Activity
Nov ’23
Reply to DiskArbitration and APFS container recognition
I'm also interested in getting the child APFS volume/container bsd disk name given an APFS physical bsd disk name. Were you able to figure this out?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’23
Reply to Using Security Scoped Bookmarks on a folder that was recreated
Standard practice here is to present the standard open panel asking the user to locate the item, configuring is so that it defaults to where you expect the item to be. Thank you for this perspective!
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Code Signing With Embedded Provisioning Profiles
I was originally trying to resign the bundle and other components after I modified the info.plist but the signature was invalid. I figured I only needed to resign the bundle and pass --preserve-metadata=identifier,entitlements,requirements in my call. This is my codesign call: codesign -f -v -o kill,runtime --timestamp --preserve-metadata=identifier,entitlements,requirements -s <ID> <Bundle>;
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to Code Signing With Embedded Provisioning Profiles
I guess a better case scenario would be if I copied over a bundle to a new location on my machine and modify its info.plist to change the bundle version, would I need to recreate the embedded provisioning profile?
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22