Post

Replies

Boosts

Views

Activity

Reply to i don't get data from my server
This what hi said in the debug console http://.... 2020-12-17 07:52:05.227926-0800 LinkMe[2285:99513] [] nwprotocolgetquicimageblockinvoke dlopen libquic failed (lldb)  l have added a breakpoint at the line guard let data = data, error ==nil else{ I have already added a proper ATS to settings
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’20
Reply to i don't get data from my server
@OOper Can you tell us how you have checked that every code after line 22 is skipped? (Have you put a breakpoint somewhere?) What's shown in the debug console? (Are you activated the debug console?) I have used a breakpoint by the link so that I can see if the link correct I have also used a breakpoint by the URLSeeion but I click on step into then hi send me to resume() function This what i get in the console self LinkMe.DashboardViewController 0x00007f957df250d0 UIKit.UIViewController UIViewController vwDashboardView UIView? 0x00007f957de2fa00 lbLinkMe UILabel? 0x00007f957de2c8f0 lbWelkom UILabel? 0x00007f957de2e1f0 butNieuwProfile UIButton? 0x00007f957de2bb30 butAccount UIButton? 0x00007f957de28900 tabel UITableView? 0x00007f957f090000 data [String] 5 values newUrl URL <unavailable; try printing with "vo" or "po"> url URL <unavailable; try printing with "vo" or "po"> getToken String? "232286f0-eb93-4509-8364-11dd1db5257e" some queryItems [URLQueryItem] 1 value
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’20
Reply to i don't get data from my server
@Claude 31 My server use http requset not https I get a complete link to my server with the token but hi says "try printing with 'vo' or 'po' " it doesn't crash but hi skips every code after line 22 the URLSession I edit it            var result : [Profile]?                 do{             result = try JSONDecoder().decode([Profile].self, from: data)           }catch{                   print("failed to convert\(error.localizedDescription)")                 }                 guard let jsonArray = result else{             return           }       for json in jsonArray{         print(json.id)         print(json.profileName)       }               }).resume() but hi skips he URLSession
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’20