Friday, June 28, 2019

Swift Alamofire get response from JSON

                   
                    Alamofire.request(stringURL, method: .post, parameters: requestContents, encoding: JSONEncoding.default)
                        .responseJSON { response in
                           

                            do {
                                var json = try! JSON(data: response.data!)
                                let countlastrinfo = json["latest_receipt_info"].count
                             
print(json["latest_receipt_info"][1])
                                print("count: \(countlastrinfo)")
                                print(json["latest_receipt_info"][countlastrinfo-1])
                               
                             
                               
                             }catch{
                               
                            }
                           
                            if let value = response.result.value as? NSDictionary {
                                let latest_receipt_info = value.object(forKey: "latest_receipt_info")!
                                print(latest_receipt_info)
                               
                            } else {
                                print("Receiving receipt from App Store failed: \(response.result)")
                            }
                    }

Thursday, June 13, 2019

Wednesday, June 5, 2019

Fixed : break com.apple.commcenter.coretelephony.xpc (Validate Firebase)



Fixed : break com.apple.commcenter.coretelephony.xpc

Terminal MAC: 

xcrun simctl spawn booted log config --mode "level:off"  --subsystem com.apple.CoreTelephony