Post not yet marked as solved
I have a problem like the title here, but it only occurs in some mobile phones and some networks. It seems that it has little to do with the code level. How to solve it. When it is clear, some iOS 15 will appear, and iOS 13 does not have this problem.
Post not yet marked as solved
I applied for a personal developer account. After registering iOS devices at https://developer.apple.com/account/resources/devices/list, the status of each device shows Ineligible for 14 days.
As a result, my project cannot be debugged with this account, and my app cannot be published in the App Store
What should I do in this situation?
Post not yet marked as solved
I use StoreKit test in Xcode to test Consumable Project. I want to test the refund of Consumable Project. When I open the Manage StoreKit Transactions of Xcode 13, when I select Non-Consumable Project, I click the Refund Purchases button to purchase There is no refund for items, but when I click on the Consumable Project, I cannot refund. I test the refund function of Consumable Project.
We know that the relevant document is 'https://developer.apple.com/documentation/appstoreservernotifications/responsebody', but we don’t know how to trigger a refund in a sandbox environment
Hi: Use HTTPServer property of NEProxySettings can proxy HTTP data.But how to proxy socks data?
Post not yet marked as solved
hello: On iPhone x iOS 13, if I correctly request the user to use the location (CoreLocation), but the user does not click to agree or cancel, but instead use the return desktop gesture to return to the desktop, then the system's location authorization box disappears, and the program is inside What should I do without any callbacks?
Post not yet marked as solved
hello: Our current status is that after three minutes in the background, re-opening the app is a restart. But I see a lot of other apps in the background for a long time (such as 20 minutes, 30 minutes), when I open the app, it is the page that opens into the background, I don't know how they do it, I follow Apple The rules did not do anything after entering the background. Is there anything that Apple can do?
Post not yet marked as solved
hello:NEVPNConnection -startVPNTunnelWithOptions:andReturnError: When the app is first called when iOS13 is installed, it will jump to the Settings-General-VPN interface and let the user enter the password. However, after I updated the iOS13 beta version, if the setting APP is off, then the call will only enter the Settings-Common interface, and there is no interface for the user to enter the password. If the setup app stays in the Settings - General or Settings - General - VPN interface, the results are the same as before iOS13.
Post not yet marked as solved
hellow:access_queue is created in the singleton A classin class Adispatch_async(access_queue, ^{ NSLog(@"A:%@", [NSThread currentThread]); });in class Bdispatch_async(access_queue, ^{//access_queue of class A NSLog(@"B:%@", [NSThread currentThread]); });Print out A and B in the console to execute in two different child threads.my question:I want to know if there is a way to make different code blocks execute in the same sub-thread.
Post not yet marked as solved
hi, eskimo: PacketTunnelProvider's - stopTunnelWithReason: completionHandler: How long can I detect other things after the method is executed?Maybe some network requests.
AppDelegate and PackagetTunnelProvider use NSTimer in the same way:[NSTimer scheduledTimerWithTimeInterval:10 target:self selector:@selector(expireTime) userInfo:nil repeats:NO];The -expireTime in AppDelegate runs in 10 seconds, but not in PacketTunnelProvider.What's the reason?
Post not yet marked as solved
Hello, when using Network Extension to establish VPN connection, when VPN connection succeeded, WiFi was disconnect, and WiFi icon was not disgusted. This phenomenon appeared on the iPhone X iOS 12.2, the iPhone 7 iOS 12, and the iPhone 7 iOS 11. How can I solve it?
I use the NETunnelProvider Protocol to configure VPN, the "test" set by server Address, and save the configuration to see in the settings - VPN - my configuration:Type:testServer:testWhen the VPN connection is successful, check Settings - VPN - My configuration:Type:testServer:testServer IP Adress: Real Server IPAssigned IP Adress: Intranet IPConnect Time: 0:07This is how I created the configuration:NETunnelProvider Manager * Manager = [[NETunnelProvider Manager alloc] init];NETunnelProvider Protocol * conf = [[NETunnelProvider Protocol alloc] init];Conf. serverAddress = @ "Qiyou Tour Accelerator";Manager. protocolConfiguration = conf;Manager.localizedDescription = @ Accelerator for Odd Tour;My question is: How to set Server IP Adress as a fixed fake ip?
Post not yet marked as solved
hi eskimo: I have encountered -loadAllFromPreferencesWithCompletionHandler failed to load the already configured VPN, the following is the method I use:create:- (NETunnelProviderManager *)createProviderManager { NETunnelProviderManager *manager = [[NETunnelProviderManager alloc] init]; NETunnelProviderProtocol *conf = [[NETunnelProviderProtocol alloc] init]; conf.serverAddress = @"123.321.123.123"; manager.protocolConfiguration = conf; manager.localizedDescription = @"xVPN"; return manager;}save:- (void)saveConfigWithManger:(NETunnelProviderManager *)manager parameters:(NSDictionary *)parameters Complete:(void(^)(void))complete { NSString *ip = parameters[@"ip"];//ip NSString *port = parameters[@"port"];//port if (!ip || !port) { return; } NSArray<Router *> *routers = parameters[@"routers"]; BOOL isOverseas = [parameters[@"isOverseas"] boolValue]; NSString *configurationFileURL = [[NSBundle mainBundle] pathForResource:@"client" ofType:@"config"]; NSString *config = [NSString stringWithContentsOfFile:configurationFileURL encoding:NSUTF8StringEncoding error:nil]; config = [config stringByReplacingOccurrencesOfString:@"addrIP" withString:ip]; config = [config stringByReplacingOccurrencesOfString:@"portID" withString:port]; NETunnelProviderProtocol *tunnelProtocol = (NETunnelProviderProtocol *)manager.protocolConfiguration; NSMutableDictionary *providerConfiguration = [NSMutableDictionary dictionary]; providerConfiguration[@"config"] = [config dataUsingEncoding:NSUTF8StringEncoding]; providerConfiguration[@"authUser"] = [[NSUserDefaults standardUserDefaults] stringForKey:@"kAuthorization"]; tunnelProtocol.serverAddress = @"123.321.123.123"; providerConfiguration[@"routers"] = routes; providerConfiguration[@"nodeIP"] = ip; providerConfiguration[@"isOverseas"] = isOverseas ? @"1" : @"0";// tunnelProtocol.providerConfiguration = providerConfiguration; manager.protocolConfiguration = tunnelProtocol;// __weak typeof(self) weakSelf = self; [manager saveToPreferencesWithCompletionHandler:^(NSError * _Nullable error) { if (!error) { NSLog(error); } }];}load:[NETunnelProviderManager loadAllFromPreferencesWithCompletionHandler:^(NSArray<NETunnelProviderManager *> * _Nullable managers, NSError * _Nullable error) { NETunnelProviderManager *manager = nil; if (managers.count > 0) { manager = managers.firstObject; NSLog(@"manager loaded:%@", manager); } else { manager = [self createProviderManager]; NSLog(@"create new manager:%@", manager); } manager.enabled = YES; complete(manager); }];My use scenario is to kill the APP process after connecting to the VPN, and then restart the APP. In most cases, it can be loaded into the manage(log in consol manager loaded:). Occasionally, the load cannot be loaded(log in consol: create new manager:). As a result, I cannot obtain the VPN status after starting the APP.How can I solve this problem?
Post not yet marked as solved
The host app can use the -sendProviderMessage:returnError:responseHandler: method to actively send a message to the PacketTunnel.How about PacketTunnel actively sends a message to the host app?
Post not yet marked as solved
I want to mix Objective C and C with xcode and report the following error, I dragged the project directly into the project.:C project at https://github.com/1322453976/ss:-1: Multiple commands produce '/Users/sk/Library/Developer/Xcode/DerivedData/testss-btbfjjrvzekmtjcsljrmgstxcbnq/Build/Products/Debug-iphoneos/testss.app/control':1) Target 'testss' (project 'testss') has copy command from '/Users/sk/Desktop/test/testss/ss/debian/control' to '/Users/sk/Library/Developer/Xcode/DerivedData/testss-btbfjjrvzekmtjcsljrmgstxcbnq/Build/Products/Debug-iphoneos/testss.app/control'2) Target 'testss' (project 'testss') has copy command from '/Users/sk/Desktop/test/testss/ss/debian/tests/control' to '/Users/sk/Library/Developer/Xcode/DerivedData/testss-btbfjjrvzekmtjcsljrmgstxcbnq/Build/Products/Debug-iphoneos/testss.app/control'/Users/sk/Desktop/test/testss/ss/libcork/src/libcork/core/version.c:10:10: 'libcork/config.h' file not found