Post

Replies

Boosts

Views

Activity

Reply to iOS System Network Library Crash
This Crash can be reproduced in the debug status of XCode. However, it seems that relevant information cannot be obtained through Analytics in this way. So, I tried to reproduce it by installing Archive, but a new problem came up during the installation: Error installing '/Users/xxxx/Desktop/temp/MAHDemo 2023-12-04 10-42-16/MAHDemo.ipa', ERROR: Error Domain=com.apple.dt.CoreDeviceError Code=3002 "Failed to install the app on the device." UserInfo={NSURL=file:///Users/xxxxxxx/Desktop/temp/MAHDemo%202023-12-04%2010-42-16/MAHDemo.ipa, NSUnderlyingError=0x60002205f810 {Error Domain=com.apple.dt.CoreDeviceError Code=3000 "The item at MAHDemo.ipa is not a valid bundle." UserInfo={NSURL=file:///Users/xxxxxxx/Desktop/temp/MAHDemo%202023-12-04%2010-42-16/MAHDemo.ipa, NSLocalizedFailureReason=Failed to read the bundle., NSLocalizedDescription=The item at MAHDemo.ipa is not a valid bundle.}}, NSLocalizedDescription=Failed to install the app on the device.} Domain: com.apple.dt.DVTCoreDevice Code: -1 User Info: { ​ DVTErrorCreationDateKey = "2023-12-04 02:45:13 +0000"; } System Information macOS Version 13.6.1 (Build 22G313) Xcode 15.0.1 (22266) (Build 15A507) Timestamp: 2023-12-04T10:45:13+08:00 The same IPA installed on iOS 15, 16 system will not appear.
Dec ’23
Reply to iOS System Network Library Crash
How does your SDK work? Does it implement a HTTP proxy? Or is it using an NSURLProtocol subclass? Or something else? This SDK listens to 2 ports and implements an HTTP/HTTPS proxy locally. Then, NSURLSession is asked to proxy requests through by setting the proxy configuration of NSURLSessionConfiguration. Currently, we are not using NSURLProtocol. This issue, specifically, tends to occur after the first launch of an installed APP.
Nov ’23
Reply to LAN traffic with NEPackTunnelProvider
OK, so you see, this is why Matt wrote TN3120 Expected use cases for Network Extension packet tunnel providers. When you try to use a packet tunnel provider as a content filter, you will run into all sorts of weird and wonderful problems. This is just one example of such problems. Thanks. I understand, so if we want both VPN and traffic control, we must use different provider to achieve it.
Dec ’22
Reply to LAN traffic with NEPackTunnelProvider
I’m confused by your goal here. If an app creates a connection to a peer that’s directly connected to the local Wi-Fi, why does your VPN need to get involved? Because our APP not only provides a VPN service to users, but also provides a safe access environment. So we need access control for the device. So we don't want any traffic from the device to bypass our VPN and go straight out.
Dec ’22
Reply to Start An NEPacketTunnelProvider Fail
The trick here is to have the user trigger a sysdiagnose log as soon as they see the problem. Then can then pass this on to your for analysis. For more information about this, see Your Friend the System Log. this can get entire iOS system log ? I don't find the way to do this after I read the documents. I said before: because APP can't get the iOS system log means, the log of my app is no useful, because the APP seems ok. The job to start the NetworkExtension Process is not the host APP( MY APP). Host APP only setup the configuration and call the system API, and the log of my app show nothing wrong here. The log of my APP shows: when after call startVPNTunnelWithOptions: success, the NEVPNStatus change from NEVPNStatusDisconnected to NEVPNStatusConnecting (from NEVPNStatusDidChangeNotification) but long time (about 1 mins) the VPN Process not created, and status change to disconnect. So I think if i want to known why the VPN process not create success, I need to got the entiry iOS system log, this may show why the iOS system start the process fail.
Aug ’22
Reply to VPN start fail (some devices, sometimes)
Finally, I fix this problem. After delete some Third-party libraries and remove some unnecessary classes, The IPA from the testflight work find ( this bug won't show by debug mode or local install IPA) Could you tell me, is there any way to avoid this problem happen again( like how many OC classes in VPN process is safe, or should keep the VPN pack below a specific size)。
Nov ’21