Post

Replies

Boosts

Views

Activity

LazyVStack inside ScrollView performance issues on iOS 16
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?
0
1
1.2k
Oct ’22
mac Catalyst VPN fails to connect
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
1
0
1.2k
Nov ’20
mac Catalyst, EXC_CRASH (Code Signature Invalid), Xcode 12.1
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:&#9;&#9;&#9;&#9;&#9;&#9;Mac OS X 10.15.7 (19H2) Report Version:&#9;&#9;&#9;&#9;12 Bridge OS Version:&#9;&#9; 4.6 (17P6610) Anonymous UUID:&#9;&#9;&#9;&#9;3228F646-0337-CCB2-D4B3-41A73C8D5C68 Sleep/Wake UUID:&#9;&#9;&#9; F1A5472C-EBEC-4CBC-8FEA-8EE8257398D2 Time Awake Since Boot: 78000 seconds Time Since Wake:&#9;&#9;&#9; 1400 seconds System Integrity Protection: enabled Crashed Thread:&#9;&#9;&#9;&#9;0 Exception Type:&#9;&#9;&#9;&#9;EXC_CRASH (Code Signature Invalid) Exception Codes:&#9;&#9;&#9; 0x0000000000000000, 0x0000000000000000 Exception Note:&#9;&#9;&#9;&#9;EXC_CORPSE_NOTIFY kernel messages: VM Regions Near 0 (cr2):-> &#9;&#9;__TEXT&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0000000100000000-0000000100038000 [&#9;224K] r-x/r-x SM=COW&#9; Thread 0 Crashed: 0&#9; ???&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000100079000 _dyld_start + 0 Thread 0 crashed with X86 Thread State (64-bit): &#9;rax: 0x0000000000000000&#9;rbx: 0x0000000000000000&#9;rcx: 0x0000000000000000&#9;rdx: 0x0000000000000000 &#9;rdi: 0x0000000000000000&#9;rsi: 0x0000000000000000&#9;rbp: 0x0000000000000000&#9;rsp: 0x00007ffeefbff368 &#9; r8: 0x0000000000000000&#9; r9: 0x0000000000000000&#9;r10: 0x0000000000000000&#9;r11: 0x0000000000000000 &#9;r12: 0x0000000000000000&#9;r13: 0x0000000000000000&#9;r14: 0x0000000000000000&#9;r15: 0x0000000000000000 &#9;rip: 0x0000000100079000&#9;rfl: 0x0000000000000200&#9;cr2: 0x0000000000000000 &#9; Logical CPU:&#9;&#9; 0 Error Code:&#9;&#9;&#9;0x00000000 Trap Number:&#9;&#9; 0 Binary Images: &#9;&#9;&#9; 0x100000000 -&#9;&#9;&#9;&#9;0x100037fff +??? (0) <F1126CDD-A67C-3FAA-8727-863815CDC5D7> (null) &#9;&#9;&#9; 0x100078000 -&#9;&#9;&#9;&#9;0x100109f47 +??? (750.6) <1D318D60-C9B0-3511-BE9C-82AFD2EF930D> (null) External Modification Summary: &#9;Calls made by other processes targeting this process: &#9;&#9;task_for_pid: 0 &#9;&#9;thread_create: 0 &#9;&#9;thread_set_state: 0 &#9;Calls made by this process: &#9;&#9;task_for_pid: 0 &#9;&#9;thread_create: 0 &#9;&#9;thread_set_state: 0 &#9;Calls made by all processes on this machine: &#9;&#9;task_for_pid: 174379 &#9;&#9;thread_create: 0 &#9;&#9;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%) &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;VIRTUAL&#9; REGION REGION TYPE&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;SIZE&#9;&#9;COUNT (non-coalesced) ===========&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; =======&#9;======= STACK GUARD&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 56.0M&#9;&#9;&#9;&#9;1 Stack&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 8192K&#9;&#9;&#9;&#9;1 __DATA&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 248K&#9;&#9;&#9;&#9;3 __DATA_CONST&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;52K&#9;&#9;&#9;&#9;2 __LINKEDIT&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 416K&#9;&#9;&#9;&#9;3 __TEXT&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 808K&#9;&#9;&#9;&#9;2 shared memory&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;8K&#9;&#9;&#9;&#9;2 ===========&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; =======&#9;======= TOTAL&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 65.5M&#9;&#9;&#9; 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.
3
0
1.6k
Nov ’20