CFNetwork crash in iOS 11

We have an app that is working just fine in iOS 10, but crashes in iOS 11.

I am currently trying to trace the problem, but the first crash is here;


    CFDataRef bodyData = CFHTTPMessageCopyBody( message );
    CFHTTPMessageSetBody( newMessage, bodyData );
    CFRelease( bodyData ); bodyData = NULL;


It seems that I get a nil value from the CFHTTPMessageCopyBody in iOS 11, but not in iOS 10;

From debugger;



iOS 11

(lldb) po message

<CFHTTPMessageRef 0x1c417fbc0(0x1c417fbd0)> { GET request, url /873769144/sec/ENCRYPTED_Television*******_240516_1.mp4 -- http:/

(lldb) po bodyData

<nil>

(lldb) po newMessage

<CFHTTPMessageRef 0x1c4360840(0x1c4360850)> { GET request, url http:/

****



iOS 10

(lldb) po message

<CFHTTPMessageRef 0x170173a40(0x170173a50)> { GET request, url /771278348/sec/ENCRYPTED_Television_**********_240516_1.mp4 -- http:/

(lldb) po bodyData

<>

(lldb) po newMessage

<CFHTTPMessageRef 0x170173b00(0x170173b10)> { GET request, url http://*someurl*/sec/ENCRYPTED_Television********_240516_1.mp4 }



I deleted the CFNetwork.framework from the app, and added it again. Just in case. But it didn't help.

Has anything changed in the framework?

CFNetwork crash in iOS 11

I responded on your other thread.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
CFNetwork crash in iOS 11
 
 
Q