Foundation

RSS for tag

Access essential data types, collections, and operating-system services to define the base layer of functionality for your app using Foundation.

Pinned Posts

Posts under Foundation tag

312 Posts
Sort by:
Post marked as solved
2 Replies
1.2k Views
We've enabled ATS restrictions in our app, and everything works fine, except sometimes, randomly, the CDN download resource fails. In most cases, it happens to users who on iOS 14.* and WiFI (VPN helps solve the problem :thinking_face:) Logs: (ExampleClientErrorLogServlet) :: Client error: {"arguments":["test_resource","Caught Error Domain%3DNSURLErrorDomain Code%3D-1200 \"An SSL error has occurred and a secure connection to the server cannot be made.\" UserInfo%3D{NSErrorFailingURLStringKey%3Dhttps://my-url/reource.bin, NSLocalizedRecoverySuggestion%3DWould you like to connect to the server anyway?, _kCFStreamErrorDomainKey%3D3, _NSURLErrorFailingURLSessionTaskErrorKey%3DLocalDownloadTask <A50DCF0E-38F3-4454-A78A-B4552336561E>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey%3D(\n \"LocalDownloadTask <A50DCF0E-38F3-4454-A78A-B4552336561E>.<1>\"\n), NSLocalizedDescription%3DAn SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey%3Dhttps://my-url/reource.bin, NSUnderlyingError%3D0x2882e1050 {Error Domain%3DkCFErrorDomainCFNetwork Code%3D-1200 \"(null)\" UserInfo%3D{_kCFStreamPropertySSLClientCertificateState%3D0, _kCFNetworkCFStreamSSLErrorOriginalValue%3D-9816, _kCFStreamErrorDomainKey%3D3, _kCFStreamErrorCodeKey%3D-9816, _NSURLErrorNWPathKey%3Dsatisfied (Path is satisfied), viable, interface: en0, ipv4, dns}}, _kCFStreamErrorCodeKey%3D-9816}"],"format":"Downloading {} file failed: {}","platform":"ios","version":"2.87.1"} 26.07.2022 01:39:55 [DEBUG][9] :: platform: ios, version: 2.87.1. Downloading test_resource file failed: Caught Error Domain%3DNSURLErrorDomain Code%3D-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo%3D{NSErrorFailingURLStringKey%3Dhttps://my-url/reource.bin, NSLocalizedRecoverySuggestion%3DWould you like to connect to the server anyway?, _kCFStreamErrorDomainKey%3D3, _NSURLErrorFailingURLSessionTaskErrorKey%3DLocalDownloadTask <A50DCF0E-38F3-4454-A78A-B4552336561E>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey%3D( ), NSLocalizedDescription%3DAn SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey%3Dhttps://my-url/reource.bin, NSUnderlyingError%3D0x2882e1050 {Error Domain%3DkCFErrorDomainCFNetwork Code%3D-1200 "(null)" UserInfo%3D{_kCFStreamPropertySSLClientCertificateState%3D0, _kCFNetworkCFStreamSSLErrorOriginalValue%3D-9816, _kCFStreamErrorDomainKey%3D3, _kCFStreamErrorCodeKey%3D-9816, _NSURLErrorNWPathKey%3Dsatisfied (Path is satisfied), viable, interface: en0, ipv4, dns}}, _kCFStreamErrorCodeKey%3D-9816} _kCFNetworkCFStreamSSLErrorOriginalValue=-9816 _kCFStreamErrorDomainKey=3 _kCFStreamErrorCodeKey=-9816 We've tried nscurl --ats-diagnostics on the URL: Configuring ATS Info.plist keys and displaying the result of HTTPS loads to https:/url-path. A test will "PASS" if URLSession:task:didCompleteWithError: returns a nil error. ============================================================== Default ATS Secure Connection --- ATS Default Connection ATS Dictionary: {} Result : PASS --- ============================================================== Allowing Arbitrary Loads --- Allow All Loads ATS Dictionary: {     NSAllowsArbitraryLoads = true; } Result : PASS --- ================================================================================ Configuring TLS exceptions for url --- TLSv1.3 ATS Dictionary: {     NSExceptionDomains =     {         "url" =         {             NSExceptionMinimumTLSVersion = "TLSv1.3";         };     }; } Result : FAIL Error : Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=url, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <250D7C7A-A090-41F1-8FED-E73FCB511F41>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(     "LocalDataTask <250D7C7A-A090-41F1-8FED-E73FCB511F41>.<1>" ), NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=url, NSUnderlyingError=0x6000021318f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9836, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9836, _NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: lo0}}, _kCFStreamErrorCodeKey=-9836} --- ====================================== nsurl --ats-diagnostic show me another error code -9836 and like I know TLSv1.3 not necessary yet Maybe someone can give some suggestions, any help !! :pray: Thx!
Posted
by 1semeDev.
Last updated
.
Post not yet marked as solved
3 Replies
51 Views
my mind is shot. core data hasn't been my cup of tea. print("saveTrigger called with trigger: \(trigger)") let encoder = JSONEncoder() let fm = FileManager.default let documentsDirectory = fm.urls(for: .documentDirectory, in: .userDomainMask).first! let reflectionsURL = documentsDirectory.appendingPathComponent("reflections.json") let triggersDirectory = documentsDirectory.appendingPathComponent("Triggers") // Create a new reflections file if it doesn't exist if !fm.fileExists(atPath: reflectionsURL.path) { let emptyData = Data() fm.createFile(atPath: reflectionsURL.path, contents: emptyData, attributes: nil) } // Write the trigger to the reflections file do { let data = try encoder.encode(trigger) try data.write(to: reflectionsURL) print("Trigger saved to device: \(trigger)") print("Reflections file URL: \(reflectionsURL)") } catch { print("Failed to save trigger: \(error)") } // Find the trigger file with the UUID inside the file let triggerFileURL = triggersDirectory.appendingPathComponent("\(trigger.id).json") if fm.fileExists(atPath: triggerFileURL.path) { do { let data = try Data(contentsOf: triggerFileURL) let uuid = try JSONDecoder().decode(UUID.self, from: data) let uuidString = uuid.uuidString let matchingTriggerFileURL = triggersDirectory.appendingPathComponent("\(uuidString).json") if fm.fileExists(atPath: matchingTriggerFileURL.path) { try fm.removeItem(at: matchingTriggerFileURL) print("Trigger file deleted: \(matchingTriggerFileURL.lastPathComponent)") } else { print("Trigger file not found") } } catch { print("Error deleting trigger file: \(error.localizedDescription)") } } else { print("Trigger file not found") } }
Posted
by TechyGod.
Last updated
.
Post not yet marked as solved
3 Replies
44 Views
We are trying to save usdz file in file manager some time its saved but some time we are getting the error. Like: path.absoluteURL file:///var/mobile/Containers/Data/Application/6D14A430-47B4-45F2-9D0D-6C31588A6A03/Documents/2896837C-C7E0-4FA8-BFE2-21A59B26D801.usdz Warning: in SdfPath at line 151 of sdf/path.cpp -- Ill-formed SdfPath </2896837CC7E04FA8BFE221A59B26D801>: syntax error Coding Error: in _IsValidPathForCreatingPrim at line 3338 of usd/stage.cpp -- Path must be an absolute path: <> cannotCreateNode(path: "/2896837CC7E04FA8BFE221A59B26D801") func saveFileLocal() { if let finalResult { let fm = FileManager.default var path = fm.urls(for: .documentDirectory, in: .userDomainMask).first! let fileName = "(UUID().uuidString).usdz" path.appendPathComponent(fileName) do { try finalResult.export(to: path.absoluteURL) } catch{ print(error) } } } func removeFiles() { var filePath = "" let fm = FileManager.default let path = fm.urls(for: .documentDirectory, in: .userDomainMask).first! do{ let content = try fm.contentsOfDirectory(atPath: path.path) for c in content{ filePath = path.appendingPathComponent(c).absoluteString if let url = URL(string: filePath){ try fm.removeItem(at: url) } } } catch{ print(error) } }
Posted Last updated
.
Post not yet marked as solved
2 Replies
113 Views
Hello, My App uses NSURLSession to send network requests. Recently, on the iOS 17.0 system version, I've noticed an increase in ENOENT errors. However, I'm unable to identify the cause from the logs. I would like to inquire if there have been any changes to NSURLSession in this version? Why would this error code occur? Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSErrorFailingURLStringKey=https://example.com, NSErrorFailingURLKey=https://example.com, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDownloadTask <AC10B665-F59A-469C-876C-F88EEAEC26E1>.<11>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <AC10B665-F59A-469C-876C-F88EEAEC26E1>.<11>}, response:<NSHTTPURLResponse: 0x280b8d000> { URL: https://example.com } { Status Code: 200 // session NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration]; NSOperationQueue *operationQueue = [[NSOperationQueue alloc] init]; operationQueue.maxConcurrentOperationCount = 1; _session = [NSURLSession sessionWithConfiguration:config delegate:self delegateQueue:operationQueue]; // task NSURLSessionTask *task = [self.session downloadTaskWithRequest:operation.request]; task.priority = operation.networkPriority; [task resume]; Looking forward to your reply!!!
Posted
by aqing.
Last updated
.
Post not yet marked as solved
3 Replies
315 Views
Hi, I'm an iOS developer who found an issue with the regularExpression option in the range method of the string. The return value differs between iOS 17 beta 1 and iOS 16, even when using the same regex pattern and input. Build with XCode14.2 // Regex pattern to check thousand amount pattern but comma is optional. // 10000 => Correct // 1000,0 => Incorrect let regex = "^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*$" let rangeOf10000 = "10000".range(of: regex, options: .regularExpression) let rangeOf100000 = "100000".range(of: regex, options: .regularExpression) // in iOS 17.0 developer beta // rangeOf10000 = nil // rangeOf100000 = got an object normally. // in iOS 16.2 // rangeOf10000 = got an object normally. // rangeOf100000 = got an object normally. I don't know if the defect in the range method or my missing something in the regex pattern such a long time, but I wonder why rangeOf10000 is nil in iOS 17 beta 1.
Posted
by Ammales.
Last updated
.
Post not yet marked as solved
3 Replies
170 Views
When running on iOS 16 in release mode, my app (built with Xcode 15) crashes with the following message: Symbol not found: _$s10Foundation13__DataStorageC12replaceBytes2in4with6lengthySnySiG_SVSgSitF The same app works fine when: Run on iOS 16 in debug mode Run on iOS 17 Built with Xcode 14 There are no deprecation warnings showing in Xcode, and everything compiles fine. I found this method that seems to match the missing symbol (https://developer.apple.com/documentation/foundation/nsmutabledata/1412428-replacebytes); however, it's not being used anywhere in the app. Is there a specific symbol removed in Xcode 15 causing this issue? Thank you!
Posted
by Ethan_.
Last updated
.
Post marked as solved
1 Replies
55 Views
The method url(forResource:withExtension:) can be called like this: let url = Bundle.module.url(forResource: "foo", withExtension: "txt")! or like this: let url = Bundle.module.url(forResource: "foo.txt", withExtension: nil)! Both ways seems to work. Are there any differences between the two?
Posted
by artium.
Last updated
.
Post not yet marked as solved
1 Replies
52 Views
Hello, I just discovered that on iOS 17.0 (release), if Measurement<UnitVolume> is used in App Intent, the system will incorrectly parse mL (milliliters) as megaliters. They differ by 9 orders of magnitude. This issue only occurs in the English + United Kingdom regional format. Sample code: https://github.com/gongzhang/AppIntentUnitVolumeBugUnderEnGB Screen recording: https://youtu.be/rMMAHOFpPXs
Posted
by Gong.
Last updated
.
Post not yet marked as solved
2 Replies
124 Views
Hello, My App uses NSURLSession to send network requests. Recently, on the iOS 17.0 system version, I've noticed an increase in ENOENT errors. However, I'm unable to identify the cause from the logs. I would like to inquire if there have been any changes to NSURLSession in this version? Why would this error code occur? Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSErrorFailingURLStringKey=https://example.com, NSErrorFailingURLKey=https://example.com, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDownloadTask &lt;AC10B665-F59A-469C-876C-F88EEAEC26E1&gt;.&lt;11&gt;" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask &lt;AC10B665-F59A-469C-876C-F88EEAEC26E1&gt;.&lt;11&gt;}, response:&lt;NSHTTPURLResponse: 0x280b8d000&gt; { URL: https://example.com } { Status Code: 200 To add on, according to the online logs, I found that the error occurs when users put the App into the background for a minute, then hot restart the App and bring it to the foreground to initiate a network request.
Posted
by aqing.
Last updated
.
Post not yet marked as solved
2 Replies
607 Views
Hi! After iOS 17 beta release we started getting negative feedback from our users. While researching the issue I found out that the value of codingPath on iOS 17 is different from one on iOS 16. Example to reproduce this import Foundation class DynamicCodingKey: CodingKey { let stringValue: String required init?(stringValue: String) { self.stringValue = stringValue } var intValue: Int? { return nil } required init?(intValue: Int) { return nil } } struct Response: Decodable { enum CodingKeys: String, CodingKey { case content } public init(from decoder: Decoder) throws { let container = try decoder.container(keyedBy: CodingKeys.self) let contentContainerCodingKey = DynamicCodingKey(stringValue: "dynamicValue") let contentContainer = try container.nestedContainer(keyedBy: DynamicCodingKey.self, forKey: .content) try contentContainer.decode(Content.self, forKey: contentContainerCodingKey!) } } struct Content: Decodable { public init(from decoder: Decoder) throws { print("---> \(decoder.codingPath)") throw NSError() } } let exampleString = """ { "content": { "dynamicValue": { "keyA": 4, "keyB": "dynamicValue", } } } """ let exampleData = exampleString.data(using: .utf8)! do { try JSONDecoder().decode(Response.self, from: exampleData) } catch { } print output for XCode 14 playground or iOS 16: ---> [DynamicCodingKey(stringValue: "dynamicValue", intValue: nil)] print output for XCode 15 playground or iOS 17: ---> [CodingKeys(stringValue: "content", intValue: nil), DynamicCodingKey(stringValue: "dynamicValue", intValue: nil)] Could you tell it is expected behaviour since iOS 17 or bug?
Posted
by divlev.
Last updated
.
Post not yet marked as solved
1 Replies
56 Views
I noticed that the async/await methods on URLSession do not include any support for passing the priority of the requests like you can with URLSessionTask.priority. Is there any way to set the relative priority of these requests, or is that something that we shouldn't worry about?
Posted
by Aqua_Geek.
Last updated
.
Post not yet marked as solved
2 Replies
101 Views
When I build my app for my real device I get this error /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:10:9 'Foundation/NSURLHandle.h' file not found I have latest macOS (13.5.2 (22G91)) and the latest Xcode (14.3.1 (14E300c)). I got this issue about 5 months now, even on my old Intel mac. My new M1 mac was not restored by a Backup and I still get this issue. Can someone please give me a hint or advice to get this issue fixed?
Posted
by buschco.
Last updated
.
Post not yet marked as solved
7 Replies
666 Views
When we try to run our code that uses the containerURLForSecurityApplicationGroupIdentifier function, the returned value is null if the program was run with root privileges. (when we run the code like a normal user, it is works as expected) The following code was run: NSFileManager* fileManager = [NSFileManager defaultManager]; if(!fileManager) { return “”; } NSURL* containerURL = [fileManager containerURLForSecurityApplicationGroupIdentifier:[NSString stringWithUTF8String:group_name]]; if(!containerURL) { return “”; } -&gt; we will receive the right containerURL: /Users/{user}/Library/Group Containers/{group_name} If the same code will be run with root/admin privileges the containerURL will be NULL. With an older version of MacOS the output result was the following: normal user: /Users/{user}/Library/Group Containers/{group_name} root user : /private/var/root/Library/Group Containers/{group_name}
Posted Last updated
.
Post not yet marked as solved
0 Replies
97 Views
I have the following code in a prototype application that displays text with a link and presents it in a PDFView. let a4SizePageRect = CGRect(x: 0, y: 0, width: 595.2, height: 841.8) let renderer = UIGraphicsPDFRenderer(bounds: a4SizePageRect) let title = "Some Title Link" let attributedTitle = NSMutableAttributedString(string: title, attributes: [ .font: UIFont.boldSystemFont(ofSize: 24), .link: "<insert here some correct link>", .underlineStyle: NSUnderlineStyle.single.rawValue ]) let data = renderer.pdfData { ctx in ctx.beginPage() attributedTitle.draw(in: a4SizePageRect.insetBy(dx: 25, dy: 25)) } pdfView.document = PDFDocument(data: data) The link only works on iOS 15 versions, but does not work on iOS 16.4 and iOS 17 RC. Based on the documentation for the property and NSAttributedString, the link attribute should still work. Has NSAttributedString stopped supporting NSAttributedString.Key.link in recent versions of iOS?
Posted
by AlexUA.
Last updated
.
Post not yet marked as solved
1 Replies
101 Views
Hello there! In our team we are looking for a way to connect to an external device to get and send live information through it. We need to do this because our app is required to work on offline environments and we can't expect to have Internet connection. The device that we connect against is a PC that may not have Internet connection as well. Because of that, we decided to implement live updates via WiFi: The PC generates a WiFi access point. The PC launches an internal server in a local IP of that local network. The phone connects to the access point and queries the PC through the server's local IP. Also we wanted to have security for this interaction. So we agreed on doing MTLS on the connection step, so we can both verify that the server is talking to the phone and viceversa. We do this storing p12 on both phone and PC and verifying their identities via certificates that contain those ids. In our phone configuration, we use the NEHotspotConfigurationManager to connect to the PC's network. Then we make sure that we are connected to the WiFi network using NEHotspotNetwork.fetchCurrent. After that, we are using URLSession to connect to the PC's server with the local IP. We are using the SessionDelegate and implement the didReceiveChallenge method. We do it in a very similar way to the one found in this other DevForum thread. Do you think we are following the right approach to this problem? Do you see any potential gaps in this implementation?
Posted
by FMDRE.
Last updated
.
Post marked as solved
2 Replies
96 Views
I have a macOS application with SwiftUI. I am saving a dictionary containing two custom classes with NSSavePanel. That's not a problem. import SwiftUI struct ContentView: View { var body: some View { ... } private func savePanel() -> URL? { let savePanel = NSSavePanel() savePanel.allowedContentTypes = [.myCustomeFileType] savePanel.canCreateDirectories = true savePanel.isExtensionHidden = false savePanel.title = "Saving..." savePanel.message = "Please select a path where to save a file." savePanel.nameFieldStringValue = "Untitled" return savePanel.runModal() == .OK ? savePanel.url : nil } private func fileSaveAs() { if let url = savePanel() { let models = colorViewModel.frameModels let borderModel = BorderModel(showBorder: true, colorIndex: 6, borderWeightIndex: 8) let dict = ["FrameModelArray": models, "BorderModel": borderModel] as [String : Any] NSKeyedArchiver.setClassName("FrameModel", for: FrameModel.self) NSKeyedArchiver.setClassName("BorderModel", for: BorderModel.self) do { let data = try NSKeyedArchiver.archivedData(withRootObject: dict, requiringSecureCoding: false) try data.write(to: url, options: .atomic) } catch { print("Errrrrr \(error.localizedDescription)") } } } } So my custom classes are FrameModel, BorderModel. I can unarchive a saved file with a deprecated type method as follows. private func fileOpen() { if let url = openPanel() { do { NSKeyedUnarchiver.setClass(FrameModel.self, forClassName: "FrameModel") NSKeyedUnarchiver.setClass(BorderModel.self, forClassName: "BorderModel") let data = try Data(contentsOf: url) if let someData = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) { if let dict = someData as? [String : Any] { if let frameModels = dict["FrameModelArray"] as? [FrameModel] { print("[FrameModel] read...") } if let borderModel = dict["BorderModel"] as? BorderModel { print("BorderModel read...") } } } } catch { print("Errrrrr \(error.localizedDescription)") } } } If I use unarchivedObject(ofClasses:from:), I can't unarchive my file. What am I doing wrong? Thanks. private func fileOpen() { if let url = openPanel() { do { NSKeyedUnarchiver.setClass(FrameModel.self, forClassName: "FrameModel") NSKeyedUnarchiver.setClass(BorderModel.self, forClassName: "BorderModel") let data = try Data(contentsOf: url) if let dictionary = try? NSKeyedUnarchiver.unarchivedObject(ofClasses: [FrameModel.self, BorderModel.self], from: data) as? NSDictionary { print("Being read...") } else { print("Not read...") } } catch { print("Errrrrr \(error.localizedDescription)") } } }
Posted
by Tomato.
Last updated
.
Post not yet marked as solved
4 Replies
897 Views
Is there any way to read/write preferences for a Mac app group using the defaults command? I'm talking about the stuff you would programmatically manipulate using [NSUserDefaults initWithSuiteName:], and that is stored on disk in ~/Library/Group Containers. If I just say defaults read &lt;suite name&gt;, it tells me the the domain does not exist.
Posted
by JWWalker.
Last updated
.
Post not yet marked as solved
1 Replies
131 Views
I have created a voice recorder application for watch only app in xcode. The logic is when the user stops the recording, the recorded audio file is transferred red to AWS S3 bucket. The code is working fine when I run the app on Xcode Watch OS simulator. But when I install it on the physical watch, every time it is giving network error. I have added all the required permissions and also pinged a basic website and it returned as OK. Amplify Framework Version 2.17.1 Amplify Categories Storage Dependency manager Swift PM Swift version 5.8 CLI version 12.4.0 Xcode version 14+ LOGS: 🔍 File exists, proceeding with upload. 🔍 Network available: true 🔍 Uploading Recording_09-10-2023_22-51-23_966 🔍 Data size: 43304 bytes 2023-09-10T22:51:34-0500 info CognitoIdentityClient : [Logging] Request: POST https:443 Path: / Content-Type: application/x-amz-json-1.1, User-Agent: aws-sdk-swift/1.0 api/cognito-identity/1.0 os/watchOS/9.6.1 lang/swift/5.8 lib/amplify-swift/2.17.1, Content-Length: 79, x-amz-user-agent: aws-sdk-swift/1.0, / Host: cognito-identity.us-east-2.amazonaws.com, / X-Amz-Target: AWSCognitoIdentityService.GetId / Optional([]) 2023-09-10T22:51:34-0500 info SerialExecutor : [Logging] Creating connection pool for Optional("https://cognito-identity.us-east-2.amazonaws.com/?")with max connections: 50 / 🛑 Full error object: StorageError: The operation couldn’t be completed. (AwsCommonRuntimeKit.CommonRunTimeError error 0.) Recovery suggestion: Check your network connection, retry when the network is available. HTTP Response stauts code: nil 🛑 Storage error: The operation couldn’t be completed. (AwsCommonRuntimeKit.CommonRunTimeError error 0.). Check your network connection, retry when the network is available.
Posted Last updated
.
Post not yet marked as solved
3 Replies
268 Views
Hi, I have run the system h3 on iphone OS 16.6 by learning this:TN3102: HTTP/3 in your app | Apple Developer Documentation; However, I have found that the request iOS sending not support zero rtt. When using chrome to request(h3), it‘s doing zero rtt successfully. So, may I ask if there any plan to support zero-rtt in http/3 ? PS.The UA:CFNetwork/1410.0.3 Darwin/22.6.0
Posted
by tankui.
Last updated
.
Post not yet marked as solved
1 Replies
171 Views
I am running application in XCode 14.3.1 which build using Visual Studio 2017 (Apache Cordova) and getting below error. 2023-09-04 13:38:59.119104+0530 CC Mobile[7551:1246047] ADAL version 2.3.1 2023-09-04 13:38:59.315325+0530 CC Mobile[7551:1246047] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/sankum03/Library/Developer/CoreSimulator/Devices/ECFE254E-3529-4220-AE0D-10C143E96610/data/Containers/Data/Application/D2125721-3B33-442F-994A-B606C5D6B61C/Library/Cookies/com.protiviti.CC.mobile.0001.binarycookies 2023-09-04 13:38:59.364681+0530 CC Mobile[7551:1246047] Apache Cordova native platform version 4.3.0 is starting. 2023-09-04 13:38:59.364914+0530 CC Mobile[7551:1246047] Multi-tasking -&gt; Device: YES, App: YES 2023-09-04 13:38:59.784539+0530 CC Mobile[7551:1246047] Using UIWebView 2023-09-04 13:38:59.788448+0530 CC Mobile[7551:1246047] [CDVTimer][handleopenurl] 0.221014ms 2023-09-04 13:38:59.792992+0530 CC Mobile[7551:1246047] [CDVTimer][intentandnavigationfilter] 4.173994ms 2023-09-04 13:38:59.793248+0530 CC Mobile[7551:1246047] [CDVTimer][gesturehandler] 0.122905ms 2023-09-04 13:38:59.804388+0530 CC Mobile[7551:1246047] [CDVTimer][file] 11.008024ms 2023-09-04 13:38:59.805043+0530 CC Mobile[7551:1246047] [CDVTimer][keyboard] 0.509024ms 2023-09-04 13:38:59.805131+0530 CC Mobile[7551:1246047] [CDVTimer][keyboard] 0.005007ms 2023-09-04 13:38:59.805198+0530 CC Mobile[7551:1246047] [CDVTimer][TotalPluginStartup] 17.199039ms 2023-09-04 13:39:00.256875+0530 CC Mobile[7551:1246047] Resetting plugins due to page load. 2023-09-04 13:39:01.200824+0530 CC Mobile[7551:1246047] Finished load of: file:///Users/DevUser/Library/Developer/CoreSimulator/Devices/ECFE254E-3529-4220-AE0D-10C143E96610/data/Containers/Bundle/Application/88B2A444-20DB-4EBA-978A-8C47B75461E5/CC%20Mobile.app/www/index.html#/app/loadingapp 2023-09-04 13:39:01.758090+0530 CC Mobile[7551:1246728] NSURLConnection finished with error - code -1100 Please suggest.
Posted Last updated
.