Post

Replies

Boosts

Views

Activity

Input location of AVAudioSession are different between iPhone
Position of AVAudioSession is different when I use the speaker. try session.setCategory(.playAndRecord, mode: .voiceChat, options: []) try session.overrideOutputAudioPort(.speaker) try session.setActive(true) let route = session.currentRoute route.inputs.forEach{ input in print(input.selectedDataSource?.location) } In iPhone 11(iOS 17.5.1), AVAudioSessionLocation: Lower In iPhone 7 Plus(iOS 15.8.2), AVAudioSessionLocation: Upper What causes this difference in behavior?
0
0
374
Jul ’24
Download container not success on iOS 17 / Xcode 15
I try to use "Download container" on "Devices and Simulators". But on iOS 17, xcappdata file size is 4KB and ''AppData" folder is empty. On iOS 15, xcappdata file size is 2MB and success downloaded. Xcode show these error when I unplug iOS 17 and plugin iOS 15. The system failed to get a list of files on the remote device. Domain: com.apple.dt.CoreDeviceError Code: 7001 User Info: { DVTErrorCreationDateKey = "2023-12-12 07:39:24 +0000"; NSFilePath = ""; } -- Unknown response: { XPCErrorDescription => Connection interrupted } Domain: com.apple.dt.remoteservices.error Code: -1 -- System Information macOS Version 14.2 (Build 23C64) Xcode 15.1 (22502) (Build 15C65) Timestamp: 2023-12-12T15:39:24+08:00 PS. I had turn on [Airplane mode] on iOS 17.
4
0
1.9k
Dec ’23
NEHotspotConfigurationManager.apply() is not triggering.
Whenever I turn off Wi-Fi in the Setting.app, NEHotspotConfigurationManager.apply() doesn't get triggered. If I restart my app, the apply function responds with Error Domain=NEHotspotConfigurationErrorDomain Code=8 "internal error." UserInfo={NSLocalizedDescription=internal error.} After restarting the device, this issue occurs again. I observed this issue on iOS 16.6, and I'm not sure if it's the same on other versions.
4
0
806
Aug ’23
Network warning in iOS 16
In iOS 16, it always show -[nw_ip_channel_inbox initWithPath:flow:parameters:delegate:] flow (some uuid interface: utun4, viable, assigned) does not specify local endpoint after call [NWListener start:]. This issue doesn't happen in iOS 15. Although it looks like a crash, the app keeps working and getting data. What does "specify local endpoint" mean? 2022-09-19 15:02:25.095386+0800 APP[9856:768096] [] -[nw_ip_channel_inbox initWithPath:flow:parameters:delegate:] flow (BD6CB5B1-1461-4B1F-B321-3A382BD259CF, interface: utun4, viable, assigned) does not specify local endpoint 2022-09-19 15:02:25.096106+0800 APP[9856:768096] [] -[nw_ip_channel_inbox initWithPath:flow:parameters:delegate:] flow (BD6CB5B1-1461-4B1F-B321-3A382BD259CF, interface: utun4, viable, assigned) does not specify local endpoint, dumping backtrace:         [arm64] libnetcore-3013.2.2     0   Network                             0x00000001b8d892f0 __nw_create_backtrace_string + 192     1   Network                             0x00000001b8e450f4 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 7389428     2   Network                             0x00000001b8a36d84 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3136900     3   Network                             0x00000001b8e35e60 nw_array_apply + 124     4   Network                             0x00000001b8a3433c F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3126076     5   Network                             0x00000001b8a47a54 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3205716     6   Network                             0x00000001b8a4775c F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3204956     7   Network                             0x00000001b9059788 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 9570184     8   Network                             0x00000001b90585fc F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 9565692     9   Network                             0x00000001b90708c4 nw_path_evaluator_force_update + 124     10  libdispatch.dylib                   0x0000000101610598 _dispatch_call_block_and_release + 32     11  libdispatch.dylib                   0x000000010161204c _dispatch_client_callout + 20     12  libdispatch.dylib                   0x000000010161c6f0 _dispatch_workloop_invoke + 2952     13  libdispatch.dylib                   0x0000000101627cac _dispatch_workloop_worker_thread + 740     14  libsystem_pthread.dylib             0x0000000204c7cdf8 _pthread_wqthread + 288     15  libsystem_pthread.dylib             0x0000000204c7cb98 start_wqthread + 8 2022-09-19 15:02:25.098250+0800 APP[9856:768096] [] __nwlog_err_simulate_crash simulate crash already simulated "-[nw_ip_channel_inbox initWithPath:flow:parameters:delegate:] flow (BD6CB5B1-1461-4B1F-B321-3A382BD259CF, interface: utun4, viable, assigned) does not specify local endpoint" 2022-09-19 15:02:25.098871+0800 APP[9856:768096] [] -[nw_ip_channel_inbox initWithPath:flow:parameters:delegate:] flow (BD6CB5B1-1461-4B1F-B321-3A382BD259CF, interface: utun4, viable, assigned) does not specify local endpoint, dumping backtrace:         [arm64] libnetcore-3013.2.2     0   Network                             0x00000001b8d892f0 __nw_create_backtrace_string + 192     1   Network                             0x00000001b8e450f4 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 7389428     2   Network                             0x00000001b8a36d84 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3136900     3   Network                             0x00000001b8e35e60 nw_array_apply + 124     4   Network                             0x00000001b8a3433c F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3126076     5   Network                             0x00000001b8a47a54 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3205716     6   Network                             0x00000001b8a4775c F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 3204956     7   Network                             0x00000001b9059788 F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 9570184     8   Network                             0x00000001b90585fc F9E2A765-5770-3360-AF20-CA5B923FCBF2 + 9565692     9   Network                             0x00000001b90708c4 nw_path_evaluator_force_update + 124     10  libdispatch.dylib                   0x0000000101610598 _dispatch_call_block_and_release + 32     11  libdispatch.dylib                   0x000000010161204c _dispatch_client_callout + 20     12  libdispatch.dylib                   0x000000010161c6f0 _dispatch_workloop_invoke + 2952     13  libdispatch.dylib                   0x0000000101627cac _dispatch_workloop_worker_thread + 740     14  libsystem_pthread.dylib             0x0000000204c7cdf8 _pthread_wqthread + 288     15  libsystem_pthread.dylib             0x0000000204c7cb98 start_wqthread + 8
1
0
1.1k
Sep ’22