Linphone Malloc error break - ios

Working on a Linphone custom for myself, everything is mostly ok, but when i went to test the Pushkit and Voip push i got this error.
Can anybody help me spot whats going on?
Im fairly new to XCode/swift/ObjectiveC, so its kinda hard to understand all this error msgs.
Btw i got all the certificates needed to uso PushKit.
Oct 14 11:12:31 linphone[6403] <Notice>: bel/Changing [client] [REGISTER] transaction [0x61000035e560], from state [COMPLETED] to [TERMINATED]
Oct 14 11:12:31 linphone[6403] <Notice>: bel/Client internal REGISTER transaction [0x61000035e560] terminated
Oct 14 11:12:31 linphone[6403] <Notice>: bel/Changing [client] [REGISTER] transaction [0x610000541600], from state [COMPLETED] to [TERMINATED]
Oct 14 11:12:31 linphone[6403] <Notice>: bel/Client internal REGISTER transaction [0x610000541600] terminated
Oct 14 11:12:33 linphone[6403] <Notice>: bel/Background task belle-sip recv channel started. Unknown remaining time since application is not fully in background.
Oct 14 11:12:33 linphone[6403] <Warning>: bel/channel [0x7fc5349a1000]: recv background task has to be ended now, but work isn't finished.
Oct 14 11:12:33 linphone[6403] <Notice>: bel/channel [0x7fc5349a1000]: starting recv background task with id=[12].
Oct 14 11:12:33 linphone[6403] <Notice>: bel/channel [0x7fc5349a1000]: ending recv background task with id=[12].
Oct 14 11:12:33 linphone[6403] <Notice>: bel/channel [0x7fc5349a1000]: received [973] new bytes from [UDP://fone.isuper.com.br:5060]:
INVITE sip:280#177.8.248.2:63183;transport=udp SIP/2.0
Via: SIP/2.0/UDP 177.8.248.10:5060;branch=z9hG4bK73bc6c39;rport
Max-Forwards: 70
From: "PD-Rodrigo" <sip:279#177.8.248.10>;tag=as5859feed
To: <sip:280#177.8.248.2:63183;transport=udp>
Contact: <sip:279#177.8.248.10:5060>
Call-ID: 2b1b5cbc26ac66275f34701674365df2#177.8.248.10:5060
CSeq: 102 INVITE
User-Agent: PhoneBox PBX
Date: Fri, 14 Oct 2016 14:12:35 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 375
v=0
o=root 1941729179 1941729179 IN IP4 177.8.248.10
s=Asterisk PBX 11.13.1
c=IN IP4 177.8.248.10
t=0 0
m=audio 15694 RTP/AVP 0 8 3 97 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
Oct 14 11:12:33 linphone[6403] <Notice>: bel/channel [0x7fc5349a1000] [598] bytes parsed
Oct 14 11:12:33 linphone[6403] <Notice>: bel/channel [0x7fc5349a1000] read [375] bytes of body from [fone.isuper.com.br:5060]
Oct 14 11:12:33 linphone[6403] <Notice>: bel/Changing [server] [INVITE] transaction [0x618000757c30], from state [INIT] to [PROCEEDING]
Oct 14 11:12:33 linphone[6403] <Notice>: bel/channel [0x7fc5349a1000]: message sent to [UDP://fone.isuper.com.br:5060], size: [271] bytes
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 177.8.248.10:5060;branch=z9hG4bK73bc6c39;rport
From: "PD-Rodrigo" <sip:279#177.8.248.10>;tag=as5859feed
To: <sip:280#177.8.248.2:63183;transport=udp>
Call-ID: 2b1b5cbc26ac66275f34701674365df2#177.8.248.10:5060
CSeq: 102 INVITE
Oct 14 11:12:33 linphone[6403] <Notice>: bel/New server dialog [0x6180001dc5c0] , local tag [yiWGtZ9], remote tag [as5859feed]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/op [0x7fc532d1f240] : set_or_update_dialog() current=[0x0] new=[0x6180001dc5c0]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/new incoming call from ["PD-Rodrigo" <sip:279#177.8.248.10>] to [<sip:280#177.8.248.2:63183;transport=udp>]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found payload PCMU/8000 fmtp=
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found payload PCMA/8000 fmtp=
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found payload GSM/8000 fmtp=
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found payload iLBC/8000 fmtp=mode=30
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found payload G729/8000 fmtp=annexb=no
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found payload telephone-event/8000 fmtp=0-16
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Searching for already_a_call_with_remote_address.
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found media local-ip from signaling.
Oct 14 11:12:33 linphone[6403] <Notice>: lib/New LinphoneCall [0x7fc533a22e00] initialized (LinphoneCore version: 3.10.2-293-g8958eaa)
Oct 14 11:12:33 linphone[6403] <Notice>: lib/audio stream index found: 0, updating main audio stream index
Oct 14 11:12:33 linphone[6403] <Notice>: lib/RtpSession bound to [0.0.0.0] ports [7246] [7247]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/rtp_session_enable_network_simulation:DISABLING NETWORK SIMULATION
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Configured srtp crypto suite: AES_CM_128_HMAC_SHA1_80
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Configured srtp crypto suite: AES_CM_128_HMAC_SHA1_32
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Configured srtp crypto suite: AES_256_CM_HMAC_SHA1_80
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Configured srtp crypto suite: AES_256_CM_HMAC_SHA1_32
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Creating ZRTP engine on rtp session [0x7fc533945000] ssrc 0x3da7b9ea
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Setting DSCP to 46 for MSAudio stream.
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Equalizer location: mic
Oct 14 11:12:33 linphone[6403] <Notice>: lib/cannot set noise gate mode to [0] because no volume send
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Cannot determine multicast role for stream type [video] on call [0x7fc533a22e00]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/RtpSession bound to [0.0.0.0] ports [9294] [9295]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/rtp_session_enable_network_simulation:DISABLING NETWORK SIMULATION
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Initializing multistream ZRTP context on rtp session [0x7fc5339e4c00] ssrc 0xcd914f27
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Setting DSCP to 0 for MSVideo stream.
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Cannot determine multicast role for stream type [text] on call [0x7fc533a22e00]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/RtpSession bound to [0.0.0.0] ports [11078] [11079]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/rtp_session_enable_network_simulation:DISABLING NETWORK SIMULATION
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Created new ICE check list for stream [0]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Found media local-ip from signaling.
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Don't put video stream on local offer for call [0x7fc533a22e00]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Don't put text stream on local offer for call [0x7fc533a22e00]
Oct 14 11:12:33 linphone[6403] <Notice>: lib/Doing SDP offer/answer process of type incoming
Oct 14 11:12:33 linphone[6403] <Notice>: lib/No match for GSM/8000/1
Oct 14 11:12:33 linphone[6403] <Notice>: lib/No match for iLBC/8000/1
Oct 14 11:12:33 linphone[6403] <Notice>: lib/No match for G729/8000/1
Oct 14 11:12:33 linphone[6403] <Notice>: bel/Background task liblinphone call notification started. Unknown remaining time since application is not fully in background.
Oct 14 11:12:33 linphone[6403] <Notice>: lib/linphone_ringtoneplayer_ios_start_with_cb: using ringtone /Users/joelsene/Library/Developer/CoreSimulator/Devices/3ED2130C-2343-49A3-93CA-24776C42E4D8/data/Containers/Bundle/Application/AB8E7BC4-03A7-40EC-A3B6-7465E5E8DBD9/linphone.app/notes_of_the_optimistic.caf
linphone(6403,0x700000783000) malloc: *** error for object 0x60800020e720: Invalid pointer dequeued from free list
*** set a breakpoint in malloc_error_break to debug
(lldb)

Related

iOS Objective-C didReceiveRemoteNotification not triggered when app is closed or swipe out

I have implemented Firebase in my iOS app and use data-only payload. So far my custom notification works fine when the app is open or minimized. But when I swipe the app, I am no longer receiving any remote messages any more. When you swipe the app I am not sure if the app is suspended or not running.
So far I did something like this:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSDictionary *userInfo = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
CustomNotif *notif = [[CustomNotif alloc] init];
[notif showNotification:userInfo];
}
CustomNotif is a class I created to handle my notification UI. I already set the aps payload to:
priority: 'high' and content-available: 1
and this is what I get when remote message is being received:
{
aps = {
"content-available" = 1;
};
body = "sample body";
"gcm.message_id" = "0:1538531666855542%d0cc52a4d0cc52a4";
iconURL = "http://www.shutterangle.com/wp-content/uploads/2012/04/bladerunner.jpg";
title = "Urgent action needed!";
}
I only get that payload when app is open or minimized. Is there a way to get it when I swipe the app or close it?
I would like to add more info . . I tried closing the app and look at the device log in xcode and found out that even the app is totally closed, when someone send a remote notification, the app is still triggered; however, I just don't know how to get the data.
Here is the log that shows everytime someone send a notification:
Oct 4 14:21:57 apsd(CommonUtilities)[112] <Notice>: Created power assertion {identifier: APSCourier(tcpStream:dataReceived:)}
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Outstanding data received: <private> (length 477) onInterface: NonCellular. Connected on 1 interfaces.
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Stream processing: complete yes, invalid no, length parsed 473, parameters <private>
Oct 4 14:21:57 apsd(CommonUtilities)[112] <Notice>: Created power assertion {identifier: APSCourier(tcpStream:dataReceived:)}
Oct 4 14:21:57 apsd[112] <Notice>: copyTokenForDomain sandbox.push.apple.com (null)
Oct 4 14:21:57 apsd[112] <Notice>: <private> incoming message is for proxy slave that is *not* connected. baseToken <private> destToken <private> publicTokens <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private> timestampForTopic? <private> token <private>
Oct 4 14:21:57 apsd[112] <Notice>: isAppSpecificTokenValid sandbox.push.apple.com <private>
Oct 4 14:21:57 apsd[112] <Notice>: isAppSpecificTokenValid? <private> found cached token YES
Oct 4 14:21:57 apsd[112] <Notice>: <private> hasPayload? <private> forTopic <private> tokens <private>
Oct 4 14:21:57 apsd[112] <Notice>: copyAppSpecificTokensWithDomain - sandbox.push.apple.com for topic <private> account <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private> receivedPushWithTopic <private> token <private> payload <private> timestamp Thu Oct 4 14:21:57 2018
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Received message for enabled topic '<private>' onInterface: NonCellular with payload '<private>' with priority 5 for device token: NO
Oct 4 14:21:57 apsd[112] <Notice>: <private> asked to store incoming message <private> with guid <private> environment <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Calling into AWD for PushReceived
Oct 4 14:21:57 apsd[112] <Notice>: submitted metric <private>
Oct 4 14:21:57 analyticsd[90] <Notice>: [<private>] no observers; dropped.
Oct 4 14:21:57 apsd[112] <Notice>: <private> deleting low-priority incoming messages for topic <private> environment development
Oct 4 14:21:57 apsd[112] <Notice>: APSMessageStore - APSIncomingMessageRecordDeleteMessagesForTopic <private> 1 environment development
Oct 4 14:21:57 apsd[112] <Notice>: APSMessageStore - New message record [<private>] has ID [6954].
Oct 4 14:21:57 apsd[112] <Notice>: <private>: AWD for PushReceived finished
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Stream processing: complete yes, invalid no, length parsed 4, parameters <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Received keep-alive response 1 on interface NonCellular: <private>
Oct 4 14:21:57 apsd(CommonUtilities)[112] <Notice>: Releasing power assertion {identifier: APSCourier(tcpStream:dataReceived:)}
Oct 4 14:21:57 apsd(CommonUtilities)[112] <Notice>: Created power assertion {identifier: APSCourier(tcpStream:dataReceived:)}
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Stream processing: complete no, invalid no, length parsed 0, parameters (null)
Oct 4 14:21:57 apsd[112] <Notice>: <private> calling completion block for incoming message <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private>: Sending acknowledgement message with response 0 and messageId <private> (1505639937)
Oct 4 14:21:57 apsd[112] <Notice>: <private> Noting push - using last lq 0 and rat (null) (instead of -2, kCTRegistrationRadioAccessTechnologyUTRAN)
Oct 4 14:21:57 apsd[112] <Notice>: <private>:APSNetworkMonitor decaying cost (1498 - 4) = 1494 for 14.404547 seconds
Oct 4 14:21:57 apsd[112] <Notice>: <private>:APSNetworkMonitor addCost: 166 - _currentCost is now 1500
Oct 4 14:21:57 apsd[112] <Notice>: <private> _notifyForIncomingMessage <private> with guid <private>
Oct 4 14:21:57 apsd[112] <Notice>: Dispatching low priority message: <xpc object>
Oct 4 14:21:57 SpringBoard(ApplePushService)[55] <Notice>: <private> Delivering message from apsd: <private> 1505639937 <private>
Oct 4 14:21:57 SpringBoard(ApplePushService)[55] <Notice>: <private> making delegate (<private>) calls to deliver message 1505639937 <private> for topic <private>
Oct 4 14:21:57 SpringBoard(ApplePushService)[55] <Notice>: <private> calling <private> connection:didReceiveIncomingMessage:
Oct 4 14:21:57 SpringBoard(ApplePushService)[55] <Notice>: <private> returned from <private> connection:didReceiveIncomingMessage:
Oct 4 14:21:57 SpringBoard(ApplePushService)[55] <Notice>: <private> responding with an ack for message with guid <private>
Oct 4 14:21:57 SpringBoard(UserNotificationsServer)[55] <Notice>: Received incoming message on topic com.rometic.trulyrussiandev at priority 1
Oct 4 14:21:57 apsd[112] <Notice>: Looking up connection on peer: 5171ff0 found <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private> informed that <private> acknowledges incoming message with guid <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private> Removing incoming message with guid <private>
Oct 4 14:21:57 apsd[112] <Notice>: <private> _schedulePendingWorkUpdate
Oct 4 14:21:57 apsd[112] <Notice>: APSMessageStore - APSIncomingMessageRecordDeleteMessageForGUID <private>
Oct 4 14:21:57 SpringBoard(UserNotificationsServer)[55] <Notice>: [com.rometic.trulyrussiandev] Received remote notification request 135F-D297 [ hasAlertContent: 0, hasSound: 0 hasBadge: 0 hasContentAvailable: 1 hasMutableContent: 0 ]
Oct 4 14:21:57 SpringBoard(UserNotificationsServer)[55] <Notice>: [com.rometic.trulyrussiandev] Deliver push notification request 135F-D297
Oct 4 14:21:57 SpringBoard(UserNotificationsServer)[55] <Notice>: [com.rometic.trulyrussiandev] Passing content-available push to Duet
Oct 4 14:21:57 SpringBoard(DuetActivityScheduler)[55] <Notice>: SUBMITTING: <private>
Oct 4 14:21:57 SpringBoard(UserNotificationsServer)[55] <Error>: Ignoring notification with no alert, sound or badge (com.rometic.trulyrussiandev): 135F-D297
Oct 4 14:21:57 SpringBoard(UserNotificationsServer)[55] <Notice>: [com.rometic.trulyrussiandev] Not saving push notification 135F-D297 to store [ error=Error Domain=UNErrorDomain Code=1401 "Notification has no user-facing content" UserInfo={NSLocalizedDescription=Notification has no user-facing content} ]
Oct 4 14:21:57 dasd(DuetActivitySchedulerDaemon)[153] <Notice>: Submitted Activity: com.apple.pushLaunch.com.rometic.trulyrussiandev:DD5321 <private>
Oct 4 14:21:57 apsd[112] <Notice>: Created metric container: 0x130004 succeeded? YES
Oct 4 14:21:57 dasd(DuetActivitySchedulerDaemon)[153] <Notice>: Daemon Canceling Activities: {(
com.apple.pushLaunch.com.rometic.trulyrussiandev:DD5321
)}
Oct 4 14:21:57 dasd(DuetActivitySchedulerDaemon)[153] <Notice>: CANCELED: com.apple.pushLaunch.com.rometic.trulyrussiandev:DD5321 <private>!
Oct 4 14:21:57 dasd(DuetActivitySchedulerDaemon)[153] <Notice>: Removing a launch request for application <private> by activity <private>
Oct 4 14:21:57 apsd[112] <Notice>: Submitted metric: 0x130004 succeeded? YES
Oct 4 14:21:57 apsd(WirelessDiagnostics)[112] <Notice>: client.trigger:#N Random sample for 0x130004 is skip
Oct 4 14:21:57 SpringBoard(DuetActivityScheduler)[55] <Notice>: cancelActivities: 1 activities were not found: <private>
Oct 4 14:21:57 analyticsd[90] <Notice>: [<private>] no observers; dropped.
Oct 4 14:21:57 rtcreportingd[224] <Notice>: releaseXPCTransactions: XPC transaction ref count is 0, decremented by 1
Oct 4 14:21:57 rtcreportingd[224] <Notice>: releaseXPCTransactions: XPC transaction ended
Oct 4 14:21:57 symptomsd(SymptomEvaluator)[122] <Notice>: L2 Metrics on ifname en0: rssi: -56 (txFrames/txReTx/txFail) 4/2/0 -> (was/is) 0/0
Oct 4 14:21:57 sharingd(WirelessProximity)[61] <Notice>: Nearby stop advertising of type: 16
Oct 4 14:21:57 sharingd(WirelessProximity)[61] <Notice>: Nearby start advertising with data: Advertising request of type 16, priority 1, UseFG 432 (270.00 ms), data <0b10dfe0 72>, connectable 1, options {
} priority 0 mode 432 options (null)
Oct 4 14:21:57 wirelessproxd[59] <Notice>: Stop advertising for process sharingd (61) of type 16
Oct 4 14:21:57 wirelessproxd[59] <Notice>: Nothing left to advertise, stopping
Oct 4 14:21:57 wirelessproxd[59] <Notice>: Start advertising for process sharingd (61) of type 16 with advertising interval 432 (270.00 ms)
Oct 4 14:21:57 wirelessproxd[59] <Notice>: Adding data of type: 16, advData: <0b10dfe0 72> advInterval: 432
Oct 4 14:21:57 wirelessproxd[59] <Notice>: Current advertisement packet: <10050b10 dfe072>
Oct 4 14:21:57 bluetoothd[79] <Notice>: Received XPC message "CBMsgIdStopAdvertising" from session "com.apple.wirelessproxd-peripheral-59-2"
Oct 4 14:21:57 bluetoothd[79] <Notice>: Received 'stop advertising' request from session "com.apple.wirelessproxd-peripheral-59-2"
Oct 4 14:21:57 bluetoothd[79] <Notice>: Sending XPC message "CBMsgIdAdvertisingStopped" to session "com.apple.wirelessproxd-peripheral-59-2"
Oct 4 14:21:57 bluetoothd[79] <Notice>: Received XPC message "CBMsgIdStopAdvertising" from session "com.apple.wirelessproxd-peripheral-59-3"
Oct 4 14:21:57 bluetoothd[79] <Notice>: Sending XPC message "CBMsgIdAdvertisingStopped" to session "com.apple.wirelessproxd-peripheral-59-3"
Oct 4 14:21:57 bluetoothd[79] <Notice>: Sending 'advertising status changed' event to local device listeners
Oct 4 14:21:57 wirelessproxd[59] <Notice>: AdvertisingRulesiOS: current advertisers: <NSMutableIndexSet: 0x119e0c490>[number of indexes: 1 (in 1 ranges), indexes: (16)]
Oct 4 14:21:57 wirelessproxd[59] <Notice>: advertisingRulesiOS - advertising packets: (
{
kCBAdvDataAppleMfgData = <0aff4c00 10050b10 dfe072>;
kCBAdvDataIsConnectable = 1;
kCBAdvOptionAdvertisingInterval = 432;
kCBMsgArgIsPrivilegedDaemon = 1;
}
)
Oct 4 14:21:57 wirelessproxd[59] <Notice>: Requesting to start advertising for clients 16 with (
{
kCBAdvDataAppleMfgData = <0aff4c00 10050b10 dfe072>;
kCBAdvDataIsConnectable = 1;
kCBAdvOptionAdvertisingInterval = 432;
kCBMsgArgIsPrivilegedDaemon = 1;
}
)
The log show the remote message is being processed in the background but I don't know why it can not hit the notification. I noticed this being called "connection:didReceiveIncomingMessage".
Please help.
You should be handling push notifications in the below method
- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
This method is used to process incoming notifs. It is called when your app is running in the foreground or background. And if you have the remote notifications background mode enabled, the system will launch your app and puts it in background state to handle the notif (note - it will NOT relaunch the app if the user has force-quit the app).

In-app purchase not working on App Store version

I added in-app purchase function to my iOS app. It works fine in the sandbox environment. However it doesn't work on the App Store release version. When I click the purchase button it just does not respond. So is there anybody who has the same issue? Or should I wait for some time until it is finally available?
The console output when I click the purchase button is attached below:
Aug 15 12:27:41 Android assertiond[66] <Notice>: [sushelper:9519] Attempting to acquire assertion for sushelper:9519: <BKProcessAssertion: 0x1004404b0; "SKProductsRequest" (finishTask:180s); id:\M-b\M^#\M-&4EFD024EF14B>
Aug 15 12:27:41 Android assertiond[66] <Notice>: [sushelper:9519] Add assertion: <BKProcessAssertion: 0x1004404b0; id: 9519-9599E024-F456-4E31-9CE5-4EFD024EF14B; name: SKProductsRequest; state: active; reason: finishTask; duration: 180.0s> {
owner = <BSProcessHandle: 0x100434290; sushelper:9519; valid: YES>;
flags = preventSuspend, preventIdleSleep, preventSuspendOnSleep;
}
Aug 15 12:27:41 Android assertiond[66] <Notice>: [sushelper:9519] Activate assertion: <BKProcessAssertion: 0x1004404b0; "SKProductsRequest" (finishTask:180s); id:\M-b\M^#\M-&4EFD024EF14B>
Aug 15 12:27:41 Android assertiond[66] <Notice>: [sushelper:9519] New process assertion state; preventSuspend, preventThrottleDownUI, preventThrottleDownCPU, preventIdleSleep, preventSuspendOnSleep (assertion 0x1004404b0 added: preventIdleSleep; removed: (none))
Aug 15 12:27:41 Android assertiond[66] <Notice>: [sushelper:9519] Setting jetsam priority to 10 [0x10108]
Aug 15 12:27:41 Android assertiond[66] <Notice>: [sushelper:9519] dump all assertions HWM:5 (CPUMON check): {
<BKProcessAssertion: 0x10031a780; "Resume" (activation:inf); id:\M-b\M^#\M-&CEE99782A101> [active]
<BKProcessAssertion: 0x1004404b0; "SKProductsRequest" (finishTask:180s); id:\M-b\M^#\M-&4EFD024EF14B> [active]
}
Aug 15 12:27:41 Android assertiond[66] <Notice>: Creating PowerAssertion on sushelper:9519
Aug 15 12:27:41 Android sushelper(UIKit)[9519] <Notice>: Failed to set (setSize) user defined inspected property on (UIActivityIndicatorView): [<UIActivityIndicatorView 0x159dbab60> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key setSize.
Aug 15 12:27:41 Android itunesstored(BiometricKit)[9048] <Notice>: identities: 0x0((null))
Aug 15 12:27:41 Android itunesstored(BiometricKit)[9048] <Notice>: identities: -> <private>
Aug 15 12:27:41 Android itunesstored(iTunesStore)[9048] <Notice>: ISStoreURLOperation: Sending headers for <private>:
<private>
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC Enabling TLS [80:0x104de0070]
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TCP Conn Start [80:0x104de0070]
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: Task <DB05DCF9-FA86-47CA-B82C-F8DF3C95C5AC>.<131> setting up Connection 80
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Event [80:0x104de0070]: 1, Pending(0)
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Event [80:0x104de0070]: 2, Pending(0)
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Event [80:0x104de0070]: 2, Pending(0)
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Event [80:0x104de0070]: 12, Pending(0)
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Event [80:0x104de0070]: 14, Pending(0)
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Trust Result [80:0x104de0070]: 0
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Event [80:0x104de0070]: 20, Pending(0)
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TCP Conn Connected [80:0x104de0070]: Err(16)
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TCP Conn Event [80:0x104de0070]: 1
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TCP Conn Event [80:0x104de0070]: 8
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: TIC TLS Handshake Complete [80:0x104de0070]
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: Task <DB05DCF9-FA86-47CA-B82C-F8DF3C95C5AC>.<131> now using Connection 80
Aug 15 12:27:41 Android itunesstored(CFNetwork)[9048] <Notice>: Task <DB05DCF9-FA86-47CA-B82C-F8DF3C95C5AC>.<131> sent request, body N
Aug 15 12:27:42 Android sharingd(CoreUtils)[61] <Notice>: ### No BLE advertising address to generate auth tag
Aug 15 12:27:42 Android itunesstored(CFNetwork)[9048] <Notice>: Task <DB05DCF9-FA86-47CA-B82C-F8DF3C95C5AC>.<131> received response, status 200 content K
Aug 15 12:27:42 Android itunesstored(CFNetwork)[9048] <Notice>: Task <DB05DCF9-FA86-47CA-B82C-F8DF3C95C5AC>.<131> response ended
Aug 15 12:27:42 Android itunesstored(iTunesStore)[9048] <Notice>: ISStoreURLOperation: Received headers for <private>:
<private>
Aug 15 12:27:42 Android assertiond[66] <Notice>: Client relinquished <BKProcessAssertion: 0x1004404b0; "SKProductsRequest" (finishTask:180s); id:\M-b\M^#\M-&4EFD024EF14B>
Aug 15 12:27:42 Android assertiond[66] <Notice>: [sushelper:9519] Deactivate assertion: <BKProcessAssertion: 0x1004404b0; "SKProductsRequest" (finishTask:180s); id:\M-b\M^#\M-&4EFD024EF14B>
Aug 15 12:27:42 Android assertiond[66] <Notice>: [sushelper:9519] dump all assertions HWM:5 (deactivateAssertion): {
<BKProcessAssertion: 0x10031a780; "Resume" (activation:inf); id:\M-b\M^#\M-&CEE99782A101> [active]
}
Aug 15 12:27:42 Android assertiond[66] <Notice>: [sushelper:9519] New process assertion state; preventSuspend, preventThrottleDownUI, preventThrottleDownCPU, preventSuspendOnSleep (assertion 0x1004404b0 added: (none); removed: preventIdleSleep)
Aug 15 12:27:42 Android assertiond[66] <Notice>: [sushelper:9519] Setting jetsam priority to 10 [0x10100]
Aug 15 12:27:42 Android assertiond[66] <Notice>: [sushelper:9519] dump all assertions HWM:5 (CPUMON check): {
<BKProcessAssertion: 0x10031a780; "Resume" (activation:inf); id:\M-b\M^#\M-&CEE99782A101> [active]
}
Aug 15 12:27:42 Android assertiond[66] <Notice>: Releasing PowerAssertion on sushelper:9519 from update
Aug 15 12:27:42 Android assertiond[66] <Notice>: [sushelper:9519] Remove assertion: <BKProcessAssertion: 0x1004404b0; "SKProductsRequest" (finishTask:180s); id:\M-b\M^#\M-&4EFD024EF14B>
Aug 15 12:27:42 Android assertiond[66] <Notice>: [sushelper:9519] dump all assertions HWM:5 (CPUMON check): {
<BKProcessAssertion: 0x10031a780; "Resume" (activation:inf); id:\M-b\M^#\M-&CEE99782A101> [active]
}
Aug 15 12:27:42 Android assertiond[66] <Notice>: -[BKAssertion dealloc] - <0x1004404b0>
Aug 15 12:27:43 Android CommCenter(libATCommandStudioDynamic.dylib)[80] <Notice>: QMI: Svc=0x03(NAS) Ind MsgId=0x0051 Bin=['01 25 00 80 03 04 04 5D 71 51 00 19 00 10 03 00 CD 07 00 14 06 00 C7 FC B0 FF 2C 01 A2 01 00 64 A4 03 00 01 64 00']
Aug 15 12:27:43 Android CommCenter(libCommCenterMCommandDrivers.dylib)[80] <Notice>: #I update
Aug 15 12:27:43 Android CommCenter(libATCommandStudioDynamic.dylib)[80] <Notice>: QMI: Svc=0x03(NAS) Req MsgId=0x006c Bin=[<private>]
Aug 15 12:27:43 Android CommCenter(libATCommandStudioDynamic.dylib)[80] <Notice>: QMI: Svc=0x03(NAS) Resp MsgId=0x006c Bin=[<private>]
Aug 15 12:27:43 Android CommCenter(libCommCenterMCommandDrivers.dylib)[80] <Notice>: #I sendNewThresholds: Updated thresholds
Aug 15 12:27:43 Android CommCenter(libATCommandStudioDynamic.dylib)[80] <Notice>: QMI: Svc=0x03(NAS) Req MsgId=0x004f Bin=[<private>]
Aug 15 12:27:43 Android CommCenter(libATCommandStudioDynamic.dylib)[80] <Notice>: QMI: Svc=0x03(NAS) Resp MsgId=0x004f Bin=[<private>]
Aug 15 12:27:44 Android atc(AirTrafficDevice)[3043] <Notice>: <ATLegacyMessageLink: 0x10319cf40, wifi=0> ---> [Ping Request. id=423, Session=0, params=(null)]
UPDATE: I tried the in-app purchase function on TestFlight and it works.

iOS app crashes when published, but not in test and not in Apple review

Rather a strange one and one that I am at a loss to solve.
My IOS app runs on all my devices from Xcode. I then submitted it for testing by three external people using TestFlight. The app works as expected. I then submitted it for publication on the iTunes store and, after three rounds of rejection (not for the app itself, but the store listing), it was accepted. It was working for the Apple reviewers because they sent me screen shots and the app connected with my server, and they would have rejected it had it not worked.
The app was published but when it is downloaded from iTunes by me, my testers, or any others it immediately crashes. The LaunchScreen holding storyboard is displayed and then the app quits immediately. I have removed all the code I had for setting up a periodic background task in AppDelegate - there is now only a debug line there (which is not printed when the app crashes) and republished but it still crashes.
The app uses the following PODs:
pod 'TPInAppReceipt'
pod 'IQKeyboardManagerSwift'
pod 'GRDB.swift'
pod 'Alamofire', '~> 4.0'
pod 'Gloss'
pod 'DLRadioButton', '~> 1.4'
pod 'Cosmos', '~> 7.0'
pod 'SwiftEventBus', :tag => '2.2.0', :git => 'https://github.com/cesarferreira/SwiftEventBus.git'
pod 'UITextView+Placeholder'
Here is the Console Log:
Jul 23 10:53:30 Camerons-iPhone atc(AirTrafficDevice)[31] <Notice>: <ATLegacyMessageLink: 0x16d88330, wifi=0> ---> [Ping Request. id=90, Session=0, params=(null)]
Jul 23 10:53:30 Camerons-iPhone SpringBoard(Security)[49] <Notice>: could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneApplicationSigning not true
Jul 23 10:53:30 Camerons-iPhone SpringBoard(Security)[49] <Notice>: could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneApplicationSigning not true
Jul 23 10:53:30 Camerons-iPhone SpringBoard[49] <Notice>: Running <SBAppToAppWorkspaceTransaction: 0x9cb1b70> for transition request:
<SBMainWorkspaceTransitionRequest: 0x9be8b90; eventLabel: ActivateApplication = com.cbnewham.keyholderi; display: Main; source: HomeScreen> {
applicationContext = <SBWorkspaceApplicationTransitionContext: 0x9954c70; background: NO> entities = {
SBLayoutPrimaryRole = <SBWorkspaceApplication: 0x9895490; ID: com.cbnewham.keyholderi; layoutRole: primary>;
};
}
Jul 23 10:53:30 Camerons-iPhone assertiond[64] <Notice>: Submitted job with label: UIKitApplication:com.cbnewham.keyholderi[0x54c1][64]
Jul 23 10:53:30 Camerons-iPhone SpringBoard(AssertionServices)[49] <Notice>: [com.cbnewham.keyholderi] Bootstrap complete with label: UIKitApplication:com.cbnewham.keyholderi[0x54c1][64]
Jul 23 10:53:30 Camerons-iPhone SpringBoard[49] <Notice>: Disabling home screen icon rotation for reason: SBAppToAppWorkspaceTransaction
Jul 23 10:53:30 Camerons-iPhone SpringBoard[49] <Notice>: Disabling home screen icon rotation for reason: <SBCrossfadeIconZoomAnimator:0x9b2bb60>
Jul 23 10:53:30 Camerons-iPhone SpringBoard(MobileCoreServices)[49] <Notice>: Looking up unclipped icon for app <private>
Jul 23 10:53:30 Camerons-iPhone SpringBoard[49] <Notice>: Dismissing banner for notification (null)
Jul 23 10:53:30 Camerons-iPhone sharingd[32] <Notice>: SystemUI unknown identifier: 'com.cbnewham.keyholderi'
Jul 23 10:53:30 Camerons-iPhone SpringBoard(CoreMotion)[49] <Notice>: Stopping device motion, mode=0x<private>
Jul 23 10:53:30 Camerons-iPhone CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: observe_block_invoke: FBSDisplayLayoutUpdateHandler: update start
Jul 23 10:53:30 Camerons-iPhone mediaserverd(CoreMedia)[42] <Notice>: -CMSessionMgr- cmsmHandleApplicationStateChange: CMSession: Client com.cbnewham.keyholderi with pid '249' is now Foreground Running. Background entitlement: NO
Jul 23 10:53:30 Camerons-iPhone CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: observe_block_invoke: FBSDisplayLayoutUpdateHandler: app <private> (UIApplicationElement 1 hasKeyboardFocus 0)
Jul 23 10:53:30 Camerons-iPhone sharingd[32] <Notice>: SystemUI changed: 0x10 -> 0x0
Jul 23 10:53:30 Camerons-iPhone backboardd[63] <Notice>: Turning on orientation events.
Jul 23 10:53:30 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: fHasSeenACaseLatchCoverOnce, 0
Jul 23 10:53:30 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: Starting orientation detection with accelFrequency 10.000000, isIpad, 0, decimationRate, 1
Jul 23 10:53:30 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: Waiting for the first orientation to come in
Jul 23 10:53:30 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: Notify from, Unexpected -> FaceUp
Jul 23 10:53:30 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: Received orientation. (Ambiguous to FaceUp) Timestamp 1311.992493
Jul 23 10:53:30 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: Updating client handler: Orientation FaceUp, Callback mode: -1
Jul 23 10:53:30 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: Got latest sample: 5 # 1311.992493
Jul 23 10:53:30 Camerons-iPhone backboardd[63] <Notice>: Effective device orientation changed to: faceUp
Jul 23 10:53:30 Camerons-iPhone itunesstored(iTunesStore)[95] <Error>: Could not load library [21]
Jul 23 10:53:30 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TCP Conn Start [21:0x167317e0]
Jul 23 10:53:30 Camerons-iPhone CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: observe_block_invoke: 4. app got notification state: pid=249 for <private>
Jul 23 10:53:30 Camerons-iPhone CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: notifyAboutFrontAppChange: notifyAboutFrontAppChange : app: <private>; pid: 249; net: 0
Jul 23 10:53:30 Camerons-iPhone CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: observe_block_invoke: 5. app got notification state: new counter=14
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: 249 com.cbnewham.keyholderi: ForegroundRunning (most elevated: ForegroundRunning)
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: Entry, display name com.cbnewham.keyholderi uuid 8FB68BCF-EA10-3E5C-B86C-A3E01F303CF7 pid 249 isFront 1
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: Check for bundle name com.cbnewham.keyholderi returns 0
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: app name com.cbnewham.keyholderi isForeground 1 hasForegroundApps 1, current idea of foreground 0 disp (null)
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: Going to Foreground, new flags 0x0, initial value 0x0, enabled 0
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: Continue with bundle name com.cbnewham.keyholderi, is front 1
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: com.cbnewham.keyholderi: Foreground: true
Jul 23 10:53:30 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: Set appCompactState object 0 for key com.cbnewham.keyholderi
Jul 23 10:53:30 Camerons-iPhone CommCenter[23] <Notice>: #I BundleID: <private> is a foreground app
Jul 23 10:53:31 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: CFSM2 foreground (current/proposed/state) in = (0/1/2)
Jul 23 10:53:31 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: CFSM2 foreground (current/state) out = (1/1)
Jul 23 10:53:31 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: CFSM Current state: idle, changed: systemForeground to 1 for net type 0, eligible for alerted but constraints unsatisfied (1,0,0,0)
Jul 23 10:53:31 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: CFSM Current state: idle, changed: systemForeground to 1 for net type 0, ineligible for committed as nil pred, wifi (0x0) cell (0x0)
Jul 23 10:53:31 Camerons-iPhone symptomsd(SymptomEvaluator)[133] <Notice>: CFSM Relays: cell (active-no/primary-no/knowngood-no/rssithresh-ok/txthresh-ok/arp-ok/dns-ok/tcp-ok/lqm:-2/advisory:0) wifi (active/primary/knowngood/rssithresh-ok/txthresh-ok/arp-ok/dns-ok/tcp-ok/lqm:50/advisory:5)
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: Client com.cbnewham.keyholderi connected
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: getClientEffectiveRegistrationResult, /private/var/containers/Bundle/Application/99081F2A-DB4B-4E69-A354-C4F89BAED901/Keyholder.app/Keyholder, com.cbnewham.keyholderi, , CLClientRegistrationResult, kCLClientRegistrationResultFailedUnavailable, CLCommonLocationServicesEnabled, 1
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: message 'kCLConnectionMessageRegistration' received from client 'com.cbnewham.keyholderi'
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: getClientEffectiveRegistrationResult, /private/var/containers/Bundle/Application/99081F2A-DB4B-4E69-A354-C4F89BAED901/Keyholder.app/Keyholder, com.cbnewham.keyholderi, , CLClientRegistrationResult, kCLClientRegistrationResultFailedUnavailable, CLCommonLocationServicesEnabled, 1
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: getClientEffectiveRegistrationResult, /private/var/containers/Bundle/Application/99081F2A-DB4B-4E69-A354-C4F89BAED901/Keyholder.app/Keyholder, com.cbnewham.keyholderi, , CLClientRegistrationResult, kCLClientRegistrationResultFailedUnavailable, CLCommonLocationServicesEnabled, 1
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: message 'kCLConnectionMessagePausesLocationUpdatesAutomatically' received from client 'com.cbnewham.keyholderi'
Jul 23 10:53:31 Camerons-iPhone geod(CFNetwork)[99] <Notice>: TIC TCP Conn Start [22:0x14e15e80]
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TCP Conn Event [21:0x167317e0]: 1 Err(0)
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TCP Conn Connected [21:0x167317e0]: Err(0)
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC Enabling TLS [21:0x167317e0]
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I New CTServerConnection from pid 249 (conn=0x165047d0)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I -- connection has entitlements: <private>
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I New CTServerConnection from pid 249 (conn=0x1658c280)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I CTServerConnection from pid 249[<private>] is named '<private>'.
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I ==== client 249 (<private>) registered for event kCTEventRestrictedForegroundResume(171) (now total 1)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I ==== client 249 (<private>) registered for event kCTEventPublicCallStatus(174) as alternate to kCTEventCallStatus(1) (now total 2)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I ==== client 249 (<private>) registered for event kCTEventPublicCallSubType(175) as alternate to kCTEventCallSubType(3) (now total 3)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I ==== client 249 (<private>) registered for event kCTEventPublicAlternateCallStatus(179) as alternate to kCTEventAlternateCallStatus(116) (now total 4)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I ==== client 249 (<private>) registered for event kCTEventPublicCallIdentification(176) as alternate to kCTEventCallIdentification(4) (now total 5)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #E Client 249 (<private>) not permitted to register for event kCTEventCallForwarded(5); ignored registration
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I ==== client 249 (<private>) registered for event kCTEventPublicCallCauseCode(178) as alternate to kCTEventCallCauseCode(7) (now total 6)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I ==== client 249 (<private>) registered for event kCTEventPublicCallControlError(177) as alternate to kCTEventCallControlError(6) (now total 7)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #E Client 249 (<private>) not permitted to register for event kCTEventCallInputFrequencyLevel(163); ignored registration
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #E Client 249 (<private>) not permitted to register for event kCTEventCallOutputFrequencyLevel(164); ignored registration
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #E Client 249 (<private>) not permitted to register for event kCTEventPullCallIsPossible(165); ignored registration
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I CTServerConnection from pid 249[<private>] is named '<private>'.
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #E Client 249 (<private>) not permitted to register for event kCTEventRegistrationOperatorName(45); ignored registration
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I App state[<private>(249)] is moving from kUnknown to kInForegroundUnknownRestriction
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I App state[<private>(249)] is moving from kInForegroundUnknownRestriction to kInForegroundRestricted
Jul 23 10:53:31 Camerons-iPhone geod(CFNetwork)[99] <Notice>: TIC TCP Conn Event [22:0x14e15e80]: 1 Err(0)
Jul 23 10:53:31 Camerons-iPhone SpringBoard(KeyboardArbiter)[49] <Error>: HW kbd: Failed to set (null) as keyboard focus
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: Client com.cbnewham.keyholderi disconnected
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I CTServerConnection from pid 249 has closed (conn=0x165047d0)
Jul 23 10:53:31 Camerons-iPhone geod(CFNetwork)[99] <Notice>: TIC TCP Conn Connected [22:0x14e15e80]: Err(0)
Jul 23 10:53:31 Camerons-iPhone CommCenter[23] <Notice>: #I CTServerConnection from pid 249 has closed (conn=0x1658c280)
Jul 23 10:53:31 Camerons-iPhone backboardd[63] <Notice>: Turning off orientation events.
Jul 23 10:53:31 Camerons-iPhone backboardd(CoreMotion)[63] <Notice>: Stopping orientation detection.
Jul 23 10:53:31 Camerons-iPhone backboardd[63] <Notice>: Effective device orientation changed to: unknown
Jul 23 10:53:31 Camerons-iPhone geod(CFNetwork)[99] <Notice>: TIC Enabling TLS [22:0x14e15e80]
Jul 23 10:53:31 Camerons-iPhone ReportCrash(CrashReporterSupport)[250] <Notice>: cr_update: <private>
Jul 23 10:53:31 Camerons-iPhone ReportCrash(CrashReporterSupport)[250] <Notice>: cr_update: <private>
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: {"msg":"adapter details", "adaperDescription":"usb host", "batteryChargerType":"kChargerTypeUsb"}
Jul 23 10:53:31 Camerons-iPhone locationd[67] <Notice>: {"msg":"battery capacity info", "batteryStatus":"{"level":96.000000, "charged":false, "connected":true, "chargerType":"kChargerTypeUsb", "wasConnected":false", "":"", "currentCapacity":"1440", "maximumCapacity":"1500", "batteryIsDifferent":"1"}
Jul 23 10:53:31 Camerons-iPhone coreduetd[82] <Notice>: CDDBatteryMonitor: received batterycallback, currentPercentage:96.000000!
Jul 23 10:53:31 Camerons-iPhone coreduetd[82] <Notice>: CDDBatteryMonitor: Notifying battery change for BON calculation!
Jul 23 10:53:31 Camerons-iPhone powerd[62] <Notice>: Battery capacity change posted with value 0x2b0060
Jul 23 10:53:31 Camerons-iPhone SpringBoard(BatteryCenter)[49] <Notice>: Power sources changed
Jul 23 10:53:31 Camerons-iPhone SpringBoard(BatteryCenter)[49] <Notice>: Query power sources
Jul 23 10:53:31 Camerons-iPhone powerd[62] <Notice>: Battery time remaining posted. Capacity:0x60
Jul 23 10:53:31 Camerons-iPhone SpringBoard(BatteryCenter)[49] <Notice>: Got a list of 1 sources
Jul 23 10:53:31 Camerons-iPhone SpringBoard(BatteryCenter)[49] <Notice>: Found 1 power sources
Jul 23 10:53:31 Camerons-iPhone SpringBoard(BatteryCenter)[49] <Notice>: Found power source: {
"Battery Provides Time Remaining" = 1;
BatteryHealth = Good;
Current = 1000;
"Current Capacity" = 96;
DesignCycleCount = 300;
"Is Charging" = 1;
"Is Finishing Charge" = 0;
"Is Present" = 1;
"Max Capacity" = 100;
Name = "InternalBattery-0";
"Power Source ID" = 4063331;
"Power Source State" = "AC Power";
"Raw External Connected" = 1;
"Show Charging UI" = 1;
"Time to Empty" = 0;
"Time to Full Charge" = 0;
"Transport Type" = Internal;
Type = InternalBattery;
}
Jul 23 10:53:31 Camerons-iPhone SpringBoard(BatteryCenter)[49] <Notice>: Found device: <BCBatteryDevice: 0x6f51b70; vendor = Apple; productIdentifier = 0; parts = (null); identifier = 4063331; matchIdentifier = (null); baseIdentifier = InternalBattery-0; name = iPhone; groupName =InternalBattery-0; percentCharge = 96; lowBattery = NO; connected = YES; charging = YES; internal = YES; powerSource = YES; poweredSoureState = AC Power; transportType = 1 >
Jul 23 10:53:31 Camerons-iPhone coreduetd[82] <Notice>: BatteryConditionChange: device:0, batteryLevel:96, isConnectedToCharger:1
Jul 23 10:53:31 Camerons-iPhone coreduetd[82] <Notice>: No change in Local BON: 101.
Jul 23 10:53:31 Camerons-iPhone securityd[94] <Notice>: cert[0]: NonEmptySubject =(leaf)[]> 0
Jul 23 10:53:31 Camerons-iPhone securityd[94] <Notice>: cert[0]: AnchorTrusted =(leaf)[force]> 0
Jul 23 10:53:31 Camerons-iPhone securityd[94] <Notice>: cert[0]: NonEmptySubject =(leaf)[]> 0
Jul 23 10:53:31 Camerons-iPhone securityd[94] <Notice>: cert[0]: AnchorTrusted =(leaf)[force]> 0
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TLS Event [21:0x167317e0]: 2, Pending(0)
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TLS Event [21:0x167317e0]: 11, Pending(0)
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TLS Event [21:0x167317e0]: 14, Pending(0)
Jul 23 10:53:31 Camerons-iPhone SpringBoard[49] <Notice>: Destination SBNotificationBannerDestination is now ready to receive notifications
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TLS Trust Result [21:0x167317e0]: 0
Jul 23 10:53:31 Camerons-iPhone ReportCrash[250] <Notice>: Formulating report for corpse[249] <private>
Jul 23 10:53:31 Camerons-iPhone securityd[94] <Notice>: cert[0]: NonEmptySubject =(leaf)[]> 0
Jul 23 10:53:31 Camerons-iPhone securityd[94] <Notice>: cert[0]: AnchorTrusted =(leaf)[force]> 0
Jul 23 10:53:31 Camerons-iPhone ReportCrash(MobileCoreServices)[250] <Notice>: notify_register_check() failed with error 1000000
Jul 23 10:53:31 Camerons-iPhone DuetHeuristic-BM(DuetActivitySchedulerDaemon)[91] <Notice>: Trigger: <private> is now [96]
Jul 23 10:53:31 Camerons-iPhone ReportCrash(CrashReporterSupport)[250] <Notice>: Saved type '109(<private>)' report (6 of max 25) at <private>
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TLS Event [21:0x167317e0]: 20, Pending(0)
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TCP Conn Event [21:0x167317e0]: 8 Err(0)
Jul 23 10:53:31 Camerons-iPhone itunesstored(CFNetwork)[95] <Notice>: TIC TLS Handshake Complete [21:0x167317e0]
Jul 23 10:53:32 Camerons-iPhone SpringBoard(FrontBoard)[49] <Notice>: <FBApplicationProcess: 0x9bdf9e0; Keyholder; pid: 249> crashed.
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Process exited: <FBApplicationProcess: 0x9bdf9e0; Keyholder; pid: -1> -> <FBApplicationProcessExitContext: 0x16e0b540; exitReason: crash; terminationReason: (none)>
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Undimming for source: programmatic
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: returning the workspace lock time (180.000000) from _nextLockTimeDuration
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: returning the workspace dim time (160.000000) from _nextIdleTimeDuration
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Setting next idle duration (source:1) to: 160.000000 lockAfterDim: 20.000000
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Setting _lastBKUserEventTimerMode=2 with duration=160.000000
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Undimming for source: programmatic
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: returning the workspace lock time (180.000000) from _nextLockTimeDuration
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: returning the workspace dim time (160.000000) from _nextIdleTimeDuration
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Setting next idle duration (source:1) to: 160.000000 lockAfterDim: 20.000000
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Setting _lastBKUserEventTimerMode=2 with duration=160.000000
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Undimming for source: programmatic
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: returning the workspace lock time (180.000000) from _nextLockTimeDuration
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: returning the workspace dim time (160.000000) from _nextIdleTimeDuration
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Setting next idle duration (source:1) to: 160.000000 lockAfterDim: 20.000000
Jul 23 10:53:32 Camerons-iPhone SpringBoard[49] <Notice>: Setting _lastBKUserEventTimerMode=2 with duration=160.000000
Jul 23 10:53:32 Camerons-iPhone assertiond[64] <Notice>: Deleted job with label: UIKitApplication:com.cbnewham.keyholderi[0x54c1][64]
and here is the Stack Trace (abbreviated):
Incident Identifier: 099C3705-E9A0-4047-9154-2F8D500D4912
CrashReporter Key: 5b93dcebf8479950368ad4075619881fc9ebac50
Hardware Model: iPhone5,4
Process: Keyholder [249]
Path: /private/var/containers/Bundle/Application/99081F2A-DB4B-4E69-A354-C4F89BAED901/Keyholder.app/Keyholder
Identifier: com.cbnewham.keyholderi
Version: 9 (1.1.1)
Code Type: ARM (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.cbnewham.keyholderi [407]
Date/Time: 2017-07-23 10:53:31.3838 +0100
Launch Time: 2017-07-23 10:53:30.0000 +0100
OS Version: iPhone OS 10.3.1 (14E304)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000018
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x009995ce 0x74c000 + 2414030
1 Keyholder 0x000953c8 0x20000 + 480200
2 Keyholder 0x000927e8 0x20000 + 468968
3 Keyholder 0x00092cb8 0x20000 + 470200
4 UIKit 0x2083d4fc -[UIViewController _setViewAppearState:isAnimating:] + 392
5 UIKit 0x2083d34e -[UIViewController __viewWillAppear:] + 140
6 UIKit 0x2089f4ee -[UIViewController viewWillMoveToWindow:] + 452
7 UIKit 0x2082de24 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 560
8 UIKit 0x2082d1fc -[UIView(Internal) _addSubview:positioned:relativeTo:] + 406
9 UIKit 0x2082d052 -[UIView(Hierarchy) addSubview:] + 730
10 UIKit 0x2082c660 -[UIWindow addRootViewControllerViewIfPossible] + 510
11 UIKit 0x20829a0a -[UIWindow _setHidden:forced:] + 286
12 UIKit 0x20899560 -[UIWindow makeKeyAndVisible] + 42
13 UIKit 0x20a96f52 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3906
14 UIKit 0x20a9c05c -[UIApplication _runWithMainScene:transitionContext:completion:] + 1640
15 UIKit 0x20aaec8c __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3153 + 40
16 UIKit 0x20a9979a -[UIApplication workspaceDidEndTransaction:] + 142
17 FrontBoardServices 0x1ced8c12 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 18
18 FrontBoardServices 0x1ced8acc -[FBSSerialQueue _performNext] + 220
19 FrontBoardServices 0x1ced8db6 -[FBSSerialQueue _performNextFromRunLoopSource] + 44
20 CoreFoundation 0x1b5b3fdc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
21 CoreFoundation 0x1b5b3b04 __CFRunLoopDoSources0 + 424
22 CoreFoundation 0x1b5b1f50 __CFRunLoopRun + 1160
23 CoreFoundation 0x1b5050ee CFRunLoopRunSpecific + 470
24 CoreFoundation 0x1b504f10 CFRunLoopRunInMode + 104
25 UIKit 0x2088f254 -[UIApplication _run] + 660
26 UIKit 0x20889e82 UIApplicationMain + 150
27 Keyholder 0x000284a8 0x20000 + 33960
28 libdyld.dylib 0x1acf24ea start + 2
Thread 1:
0 libsystem_pthread.dylib 0x1ae7a4c4 start_wqthread + 0
Thread 2 name: Dispatch queue: GRDB.SerializedDatabase
Thread 2:
0 libsystem_kernel.dylib 0x1adb16e4 pread + 20
1 libsqlite3.dylib 0x1bac34c2 0x1ba4d000 + 484546
2 libsqlite3.dylib 0x1ba54b38 0x1ba4d000 + 31544
3 libsqlite3.dylib 0x1ba6df76 0x1ba4d000 + 135030
4 libsqlite3.dylib 0x1bab954e 0x1ba4d000 + 443726
5 libsqlite3.dylib 0x1bacead4 0x1ba4d000 + 531156
6 libsqlite3.dylib 0x1ba93a6c 0x1ba4d000 + 289388
7 libsqlite3.dylib 0x1bace6b2 0x1ba4d000 + 530098
8 libsqlite3.dylib 0x1ba85a7e 0x1ba4d000 + 232062
9 libsqlite3.dylib 0x1ba7e59a sqlite3_step + 442
10 GRDB 0x004cb05c 0x3dc000 + 979036
11 GRDB 0x004cb310 0x3dc000 + 979728
12 GRDB 0x003e5890 0x3dc000 + 39056
13 GRDB 0x003e5990 0x3dc000 + 39312
14 GRDB 0x003e3528 0x3dc000 + 29992
15 GRDB 0x0048a070 0x3dc000 + 712816
16 GRDB 0x0048199c 0x3dc000 + 678300
17 GRDB 0x004818c0 0x3dc000 + 678080
18 Keyholder 0x0005307c 0x20000 + 209020
19 Keyholder 0x00054e0c 0x20000 + 216588
20 Keyholder 0x00055714 0x20000 + 218900
21 Keyholder 0x00054ed4 0x20000 + 216788
22 GRDB 0x004163c4 0x3dc000 + 238532
Thread 3:
0 libsystem_pthread.dylib 0x1ae7a4c4 start_wqthread + 0
Thread 4 name: Dispatch queue: com.apple.CoreLocation.ConnectionClient.0x15592ad0.events
Thread 4:
0 libsystem_kernel.dylib 0x1adb0968 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x1acd69de _os_semaphore_timedwait + 70
2 libdispatch.dylib 0x1acd607e _dispatch_semaphore_wait_slow + 56
3 CoreLocation 0x2269a388 0x22697000 + 13192
4 CoreLocation 0x226a0b9e 0x22697000 + 39838
5 CoreLocation 0x226a08ce 0x22697000 + 39118
6 CoreLocation 0x226ef272 0x22697000 + 361074
7 CoreLocation 0x226eb68c 0x22697000 + 345740
8 CoreLocation 0x226eb55a 0x22697000 + 345434
9 CoreLocation 0x226ece90 0x22697000 + 351888
10 libxpc.dylib 0x1aea3914 _xpc_connection_call_event_handler + 40
11 libxpc.dylib 0x1aea1dcc
Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x1adb0900 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x1adb06e0 mach_msg + 44
2 CoreFoundation 0x1b5b3be2 __CFRunLoopServiceMachPort + 144
So it's getting a segmentation fault. I'm none the wiser as this works everywhere except when published! Do Apple change the binary when it is uploaded to the store? Or is there some difference when the binary is executed from iTunes as the source as opposed to from anywhere else.
In case anyone is wondering what happened with this, I have now solved it (it took quite a long time because I had to await approval to be published on the app store on every single time I changed the code).
The reason for the crash was an attempt to access an array with no items. The reason it only occurred when published on Apple's Store is because the section of code with the illegal access was only executed for testing whether the user had a subscription. This was never executed when the app was run by me, beta testers (using TestFlight) and, most damning of all, the Apple Reviewers themselves - it seems their own test devices are not running in the same environment a real public device has. The code only executes on a non-test device (i.e.: when the code is published and is downloaded by a device outside Apple's test environment with a real Apple account).
All of the trouble I had could have been avoided if a) Minor code changes don't require 2 to 3 day turn-arounds (occasionally rejected by Apple reviewers for no real reason), b) Stack traces that actually give proper information (illegal array access rather than just saying it's a "bad access", which could be anything), and c) only one way to print to the console rather than three different ways, only one of which will actually provide debug output on a published app.
I hope the above will be of use to anyone that runs into this issue in the future.

App crashes only on specific device

After adding VoIP pushes (via Pushwoosh) for VoIP app using Skylink SDK I faced the crash, only on one my device (iPhone 5s 8.4). Looks like it's about video capturing. Another testers feel fine (iPhone 5s, iPhone 6, 8.4.1, 9.1), and my iPhone 4s is not crashing when I force-connect it to room without VoIP pushes.
UPD : crash is randomly reproduced on another devices
Here's crashing logs:
Nov 13 19:43:12 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: didConnectWithMessage (null)
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: didReceiveResponse() 200
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: connectionDidFinishLoading()
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: VERSION 10x
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: Response {"sid":"TBa15c2vlAMqi-3EAAlU","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: websocket supported -> using it now
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: Received All information:
sid: TBa15c2vlAMqi-3EAAlU
heartbeat: 25.000000
Transport: <SocketIOTransportWebsocket: 0x174226ac0>
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: start/reset Heartbeat
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: Prepare to send()
Nov 13 19:43:16 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: queue >>> 2
Nov 13 19:43:18 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: onData 40
Nov 13 19:43:18 iPhone-5s-Aft3rmath SkylinkP2P[1282] <Warning>: onConnect()
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::setPowerStateGated: 1
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::power_on_hardware
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::power_on_hardware - using ISP-FAST
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::ISP_SelectBestMIPIFrequencyIndex_gated - channel: 1, currentRawBitDepth: 1, index: 5
Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] <Notice>: ReportCrash acting against PID 1282
Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] <Notice>: Formulating crash report for process SkylinkP2P[1282]
Nov 13 19:43:18 iPhone-5s-Aft3rmath mediaserverd[19] <Notice>: '' Aft3rmath.SkylinkP2P(pid = 1282) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Nov 13 19:43:18 iPhone-5s-Aft3rmath locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Nov 13 19:43:18 iPhone-5s-Aft3rmath com.apple.xpc.launchd[1] (UIKitApplication:Aft3rmath.SkylinkP2P[0xff15][1282]) <Notice>: Service exited due to signal: Segmentation fault: 11
Nov 13 19:43:18 iPhone-5s-Aft3rmath ReportCrash[1306] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/SkylinkP2P_2015-11-13-194318_iPhone-5s-Aft3rmath.ips
Nov 13 19:43:18 iPhone-5s-Aft3rmath kernel[0] <Notice>: AppleH6CamIn::ISP_FlushInactiveDARTMappings: 0x00000000
Nov 13 19:43:18 iPhone-5s-Aft3rmath SpringBoard[50] <Warning>: Application 'UIKitApplication:Aft3rmath.SkylinkP2P[0xff15]' crashed.
And here's all crash free logs look like:
Nov 13 21:43:11 Daniil SkylinkP2P[1852] <Warning>: didConnectWithMessage (null)
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: didReceiveResponse() 200
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: connectionDidFinishLoading()
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: VERSION 10x
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: Response {"sid":"raDmeW9m-Cue0K5_AAlT","upgrades":["websocket"],"pingInterval":25000,"pingTimeout":60000}
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: websocket supported -> using it now
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: Received All information:
sid: raDmeW9m-Cue0K5_AAlT
heartbeat: 25.000000
Transport: <SocketIOTransportWebsocket: 0x174226aa0>
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: start/reset Heartbeat
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: Prepare to send()
Nov 13 21:43:12 Daniil SkylinkP2P[1852] <Warning>: queue >>> 2
Nov 13 21:43:15 Daniil SkylinkP2P[1852] <Warning>: onData 40
Nov 13 21:43:15 Daniil SkylinkP2P[1852] <Warning>: onConnect()
Nov 13 21:43:15 Daniil kernel[0] <Notice>: AppleH6CamIn::setPowerStateGated: 1
Nov 13 21:43:15 Daniil kernel[0] <Notice>: AppleH6CamIn::power_on_hardware
Nov 13 21:43:15 Daniil kernel[0] <Notice>: AppleH6CamIn::power_on_hardware - using ISP-FAST
Nov 13 21:43:15 Daniil SkylinkP2P[1852] <Warning>: doQueue() >> 1
Nov 13 21:43:16 Daniil kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
Nov 13 21:43:16 Daniil kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
Nov 13 21:43:16 Daniil kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated, enableFlag=1
Nov 13 21:43:16 Daniil kernel[0] <Notice>: AppleH6CamIn::ISP_EnableFastISPClock_gated - using ISP-FAST
Nov 13 21:43:16 Daniil kernel[0] <Notice>: AppleH6CamIn::ISP_SelectBestMIPIFrequencyIndex_gated - channel: 1, currentRawBitDepth: 3, index: 5
Any ideas?
UPD: Crashlytics points on cricket::VideoCapturer::SetCaptureState(cricket::CaptureState)
The thing was that standard pushes seem to be handled in main queue, while VoIP pushes are not. So in my
- (void)pushRegistry:(PKPushRegistry *)registry didReceiveIncomingPushWithPayload:(PKPushPayload *)payload forType:(NSString *)type
I had to add
dispatch_async(dispatch_get_main_queue(), ^{
[[P2PConnectionManager sharedManager] handlePushNotification:userInfo];
});
And everything seems ok now. Hope this will help somebody. Cheers!

libMobileGestalt copySystemVersionDictionaryValue

My app goes crash after installed a new update from app store and sometime log says -
libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Anyone familiar with it??
one of the customer provided a log.
Jul 23 15:57:49 Ami-Sandlers-iPhone backboardd[26] : ALS: SetDisplayFactor: factor=0.0500
Jul 23 15:57:50 Ami-Sandlers-iPhone backboardd[26] : ALS: SetDisplayFactor: factor=1.0000
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : com.demandmedia.traileraddict.ios.free failed to resume in time
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : Forcing crash report of TrailerAddict[4919]...
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : Finished crash reporting.
Jul 23 16:00:24 Ami-Sandlers-iPhone com.apple.launchd[1] (UIKitApplication:com.demandmedia.traileraddict.ios.free[0xeab9][4919]) : (UIKitApplication:com.demandmedia.traileraddict.ios.free[0xeab9]) Exited: Killed: 9
Jul 23 16:00:24 Ami-Sandlers-iPhone backboardd[26] : Application 'UIKitApplication:com.demandmedia.traileraddict.ios.free[0xeab9]' exited abnormally with signal 9: Killed: 9
Jul 23 16:00:24 Ami-Sandlers-iPhone ReportCrash[4925] : libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Jul 23 16:00:24 Ami-Sandlers-iPhone ReportCrash[4925] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/TrailerAddict_2013-07-23-160024_Ami-Sandlers-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

Resources