I'm trying to convert iOS application with support for iPhones and iPads to a mac Catalyst enabled application. I was able to build it successfully, but I'm unable to run it.
It crashes every time with the following error retrieved from Console.
OS Version:						Mac OS X 10.15.7 (19H2)
Report Version:				12
Bridge OS Version:		 4.6 (17P6610)
Anonymous UUID:				3228F646-0337-CCB2-D4B3-41A73C8D5C68
Sleep/Wake UUID:			 F1A5472C-EBEC-4CBC-8FEA-8EE8257398D2
Time Awake Since Boot: 78000 seconds
Time Since Wake:			 1400 seconds
System Integrity Protection: enabled
Crashed Thread:				0
Exception Type:				EXC_CRASH (Code Signature Invalid)
Exception Codes:			 0x0000000000000000, 0x0000000000000000
Exception Note:				EXC_CORPSE_NOTIFY
kernel messages:
VM Regions Near 0 (cr2):->
		__TEXT								 0000000100000000-0000000100038000 [	224K] r-x/r-x SM=COW	
Thread 0 Crashed:
0	 ???													 0x0000000100079000 _dyld_start + 0
Thread 0 crashed with X86 Thread State (64-bit):
	rax: 0x0000000000000000	rbx: 0x0000000000000000	rcx: 0x0000000000000000	rdx: 0x0000000000000000
	rdi: 0x0000000000000000	rsi: 0x0000000000000000	rbp: 0x0000000000000000	rsp: 0x00007ffeefbff368
	 r8: 0x0000000000000000	 r9: 0x0000000000000000	r10: 0x0000000000000000	r11: 0x0000000000000000
	r12: 0x0000000000000000	r13: 0x0000000000000000	r14: 0x0000000000000000	r15: 0x0000000000000000
	rip: 0x0000000100079000	rfl: 0x0000000000000200	cr2: 0x0000000000000000
	
Logical CPU:		 0
Error Code:			0x00000000
Trap Number:		 0
Binary Images:
			 0x100000000 -				0x100037fff +??? (0) <F1126CDD-A67C-3FAA-8727-863815CDC5D7> (null)
			 0x100078000 -				0x100109f47 +??? (750.6) <1D318D60-C9B0-3511-BE9C-82AFD2EF930D> (null)
External Modification Summary:
	Calls made by other processes targeting this process:
		task_for_pid: 0
		thread_create: 0
		thread_set_state: 0
	Calls made by this process:
		task_for_pid: 0
		thread_create: 0
		thread_set_state: 0
	Calls made by all processes on this machine:
		task_for_pid: 174379
		thread_create: 0
		thread_set_state: 195
VM Region Summary:
ReadOnly portion of Libraries: Total=1196K resident=0K(0%) swapped_out_or_unallocated=1196K(100%)
Writable regions: Total=8404K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8404K(100%)
																VIRTUAL	 REGION
REGION TYPE												SIZE		COUNT (non-coalesced)
===========										 =======	=======
STACK GUARD											 56.0M				1
Stack														 8192K				1
__DATA														 248K				3
__DATA_CONST												52K				2
__LINKEDIT												 416K				3
__TEXT														 808K				2
shared memory												8K				2
===========										 =======	=======
TOTAL														 65.5M			 14
I've verified that the provisioning profile is valid and App ID contains Catalyst. The app embeds packet tunnel extension which has its own target. Signing for both targets is managed manually.
Can someone help me shed light on the cause of this crash? I asked other experienced mac devs in my company but they don't understand it either.
Post
Replies
Boosts
Views
Activity
I'm converting an iOS/iPad app to mac Catalyst. This app has a VPN feature built-in. It uses NEVPNManager to configure and start a VPN connection. Everything works ok on iOS, but once I try to connect with mac version the connection isn't established.
I found some strange logs in the console. One keychain error:
App (null): Failed to copy content, SecKeychainItemCopyContent returned The contents of this item cannot be retrieved.
App (null): SecKeychainItemFreeContent returned The contents of this item cannot be retrieved.
One kernel/sandbox error:
Sandbox: App(30269) deny(1) mach-lookup com.apple.networking.captivenetworksupport
And one NESMIKEv2VPNSession failed attempt to initialise a tunnel:
NESMIKEv2VPNSession[Primary Tunnel:App Wi-Fi Protection:5713FD9D-3998-4273-9C8B-6B5F82D86696:(null)] in state NESMVPNSessionStateStarting: plugin NEVPNTunnelPlugin(com.apple.NetworkExtension.IKEv2Provider[1462]) disconnected with reason Plugin failed
I made sure that everything in the app capabilities matches those in the provisioning profile.
Following capabilities are enabled:
Keychain Sharing Personal VPN Network Extension App Sandbox Is there a way how to get rid of errors mentioned above?
Is it even possible to create a VPN connection using NEVPNManager and NEVPNProtocolIKEv2 with mac Catalyst?
Complete logs are in the attachment.
app_log - https://developer.apple.com/forums/content/attachment/4ec9da98-28f9-44d7-9e8a-a7865d66b66f
nesessionmanager_log - https://developer.apple.com/forums/content/attachment/7fad9aed-404d-4c15-846c-ac82a384ed9a
Is my UNNotificationServiceExtension subclass instantiated per each call of didReceive(_ request: UNNotificationRequest ... or can one instance handle multiple calls of didReceive(_ request: UNNotificationRequest ...?I couldn't find any specific information regarding this behavior in the official documentation.
I'm using the newest version of XCode together with iOS 16.0.3. I'm trying to implement an everyday use case - a LazyVStack inside a ScrollView. On my iPhone 13 Pro which has a 120Hz display I'm not able to get a buttery smooth scroll without stuttering and jumping even for this simple example:
ScrollView {
LazyVStack {
ForEach(1...100, id: \.self) { value in
Text("Some long text which wraps to 2 lines because why not, .....!!!! \(value)")
}
}
}
Is it a known issue of iOS 16?