Posts

Post not yet marked as solved
2 Replies
1.5k Views
Hello guys,Actually, i'm working on mac app development. and, recently I distributed the test build for my team. But, they're faced the issue /can't lunch that app & shared the crash reports.I followed this link to generated the development build: https://help.apple.com/xcode/mac/current/#/dev295cc0faestep1: Created the development provisioning profile & added the team members mac UDID'sstep2: Used that profile & Archived the appstep3: Exporting the app by choosing Development option.Please help me to resolve this issue.Crash Report:Process: App name [16208]Path: /private/var/folders/*/app name.app/Contents/MacOS/app nameIdentifier: com.***.xxxVersion: ???Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: App name [16208]User ID: 501Date/Time: 2020-04-09 18:30:41.151 +0530OS Version: Mac OS X 10.14.6 (18G3020)Report Version: 12Bridge OS Version: 3.0 (14Y906)Anonymous UUID: 52961C2C-2495-A33F-F689-6312276F01B3Sleep/Wake UUID: 100B784F-FF52-4E3A-AFC7-7D48B4F9A031Time Awake Since Boot: 240000 secondsTime Since Wake: 28000 secondsSystem Integrity Protection: enabledNotes: Translocated ProcessCrashed Thread: 0Exception Type: EXC_CRASH (Code Signature Invalid)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYTermination Reason: Namespace CODESIGNING, Code 0x1kernel messages:VM Regions Near 0 (cr2):--> __TEXT 0000000101f2d000-000000010201c000 [ 956K] r-x/r-x SM=COWThread 0 Crashed:0 0x000000010f22c000 _dyld_start + 0Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007ffeedcd2af0 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x000000010f22c000 rfl: 0x0000000000000200 cr2: 0x0000000000000000Logical CPU: 0Error Code: 0x00000000Trap Number: 0Binary Images: 0x101f2d000 - 0x10201bff7 + (0) <77D5DD68-AE24-3C76-A997-5643B25DCF56> 0x10f22b000 - 0x10f29570f + (655.1.1) <1605ACFC-49C3-33AF-B319-5BE41FC6E208>External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 8019798 thread_create: 0 thread_set_state: 0VM Region Summary:ReadOnly portion of Libraries: Total=1660K resident=0K(0%) swapped_out_or_unallocated=1660K(100%)Writable regions: Total=8400K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8400K(100%) VIRTUAL REGIONREGION TYPE SIZE COUNT (non-coalesced)=========== ======= =======STACK GUARD 56.0M 1Stack 8192K 1__DATA 504K 3__LINKEDIT 276K 2__TEXT 1384K 2shared memory 8K 2=========== ======= =======TOTAL 66.1M 11
Posted Last updated
.
Post not yet marked as solved
3 Replies
3.8k Views
I'm using below code to verify apple receipt using PHP, using CURL i'm calling apple server and trying to get response.This code is working fine but sometimes apple JSON response is coming empty and i'm not getting any error message also. It just goes blank.Is this is the only method to verify apple receipt using PHP? or please correct me in my code what is the mistake I made because when I try to debug this i'm getting empty response but this issue is not all time if I send 10 request 7 are giving response and 3 are returning blank/empty.Thanks.function subscription_curl ($request) { ini_set('max_execution_time', 0); $decodeResponse = ""; $appleurl = "https://buy.itunes.apple.com/verifyReceipt"; // for production $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, $appleurl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $request); $encodedResponse = curl_exec($ch);//Encoded apple response curl_close($ch); $decodeResponse = json_decode($encodedResponse, TRUE);//Decoded apple response $applestatus1 = $decodeResponse['status']; if($applestatus1 == 21007) { $appleurl = "https://sandbox.itunes.apple.com/verifyReceipt"; // for sandbox $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, $appleurl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $request); $encodedResponse = curl_exec($ch);//Encoded apple response curl_close($ch); $decodeResponse = json_decode($encodedResponse, TRUE);//Decoded apple response } return array($encodedResponse, $decodeResponse); } $decodeResponse1 = subscription_curl($request); // Call curl function to send request to apple $encodedResponse = $decodeResponse1[0]; $decodeResponse = $decodeResponse1[1]; print_r($decodeResponse)
Posted Last updated
.