Post not yet marked as solved
I noticed a crash report. This is not reproducible in my environment. The report mentions that as a port leak. How to detect and prevent such port leaks?
Extracts from the crash report:
OS Version: Mac OS X 10.15.7 (19H2)
...
Crashed Thread: 8
Exception Type: EXCBADINSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXCCORPSENOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [156]
Application Specific Information:
BUG IN CLIENT OF LIBDISPATCH: Unable to allocate reply port, possible port leak
Thread 8 Crashed:
0 libdispatch.dylib 0x00007fff68cfdf75 dispatchmachsendandwaitforreply.cold.6 + 29
1 libdispatch.dylib 0x00007fff68ce4cf4 dispatchmachsendandwaitforreply + 1630
2 libdispatch.dylib 0x00007fff68ce4d4e dispatchmachsendwithresultandwaitforreply + 50
3 libxpc.dylib 0x00007fff68f6c846 xpcconnectionsendmessagewithreplysync + 238
4 com.apple.CoreFoundation 0x00007fff2ecac083 _78-[CFPrefsPlistSource sendRequestNewDataMessage:toConnection:retryCount:error:]blockinvoke + 22
5 com.apple.CoreFoundation 0x00007fff2ecb3779 CFPREFERENCESISWAITINGFORSYSTEMCFPREFSD + 74
6 com.apple.CoreFoundation 0x00007fff2ecabfdf -[CFPrefsPlistSource sendRequestNewDataMessage:toConnection:retryCount:error:] + 672
7 com.apple.CoreFoundation 0x00007fff2ecabd0e _50-[CFPrefsPlistSource alreadylockedrequestNewData]blockinvoke + 197
8 com.apple.CoreFoundation 0x00007fff2ec6d726 -[CFXPreferences withConnectionForRole:performBlock:] + 36
9 com.apple.CoreFoundation 0x00007fff2ecabbee -[CFPrefsPlistSource alreadylockedrequestNewData] + 332
10 com.apple.CoreFoundation 0x00007fff2ec916a4 copyValueForKey + 193
11 com.apple.CoreFoundation 0x00007fff2ec915c7 -[CFPrefsPlistSource copyValueForKey:] + 45
12 com.apple.CoreFoundation 0x00007fff2ec91587 66-[CFXPreferences copyValueForKey:identifier:user:host:container:]blockinvoke + 32
13 com.apple.CoreFoundation 0x00007fff2ec697d7 -[CFXPreferences(SourceAdditions) withSourceForIdentifier:user:byHost:container:cloud:perform:] + 795
14 com.apple.CoreFoundation 0x00007fff2ec914ef -[CFXPreferences copyValueForKey:identifier:user:host:container:] + 184
15 com.apple.CoreFoundation 0x00007fff2ec913f5 _CFPreferencesCopyValueWithContainer + 113
...
Post not yet marked as solved
Hello. I have iphone 11 pro max and it is rebooting from time to time. Like 10 times a day. I see in analytics a lot of panic-full logs.
log - https://developer.apple.com/forums/content/attachment/74145549-e527-40eb-ae47-62810c910252
What is that? Can you please help me?
Duke
Post not yet marked as solved
Hi, I am working on a mobile analytics library which identifies and captures the user interactions in iOS-apps automatically. This is achieved by swizzling the UIApplication's 'sendEvent' method. Every time the user touches a button or makes any other interactions, the swizzled 'sendEvent' is called and with our custom code, we record the event and identify the UI-Control by reading the target view's 'accessibilityLabel' property. This library works well with UIKit, it captures all the events and identifies the UI-controls that are triggering the event.
But when I use the same approach in SwiftUI, I get the events captured, but not the UI-element identity. For example, If there are three buttons in an app and one is touched by the user, then I get the generic button touch event in swizzled 'sendEvent'.. But I could not figure out which button is touched. It's because the underlying target view sent in 'sendEvent' method is 'CGDrawingView' - this doesn't hold the 'accessibilityLabel' property value which is set in the Button by using a ViewModifier.
Is there a way to read accessibilityLabel property of the Button from its sendEvent in SwiftUI?
OR is there any other unique identifier that I can use for SwiftUI views?
OR Is there any other standard way to implement mobile analytics in SwiftUI?
I have given the sample code here for reference.
Thank you.
// MARK: Swizzling Code
extension UIApplication {
@objc dynamic func newSendEvent(_ event: UIEvent) {
newSendEvent(event)
if (event.allTouches != nil){
let touches: SetUITouch = event.allTouches!
let touch: UITouch = touches.first!
OperationQueue.main.addOperation(){
if let tView = touch.view {
print("------------------------------------------")
print(Mirror(reflecting: tView).subjectType)
print("accessibilityLabel : \(tView.accessibilityLabel ?? "null")")
}
}
}
}
}
// MARK: - Demo App Code
struct ContentView: View {
@State private var segmentValue = 0
@State private var textValue = ""
@State private var sliderValue: Float = 0
var body: some View {
Form {
Section(header: Text("UI CONTROLS").font(.title).padding(.vertical, 0.0)) {
TextField("TextField", text: $textValue)
.accessibilityLabel("Text1")
VStack(spacing: 5) {
Text("Segment Control (\(segmentValue))")
Picker(selection: $segmentValue, label: Text("Segment Control").padding(10.0)) {
Text("Red").tag(0)
Text("Green").tag(1)
Text("Blue").tag(2)
}
.pickerStyle(SegmentedPickerStyle())
.padding(10.0)
.accessibilityLabel(Text("SegmentControl1"))
}
Slider(value: $sliderValue, in: 0...100, step: 1)
.padding(10.0)
.accessibilityLabel("Slider1")
Button(action: {
print("Button1 pressed")
}, label: {
Text("Button 1")
})
.accessibilityLabel("Button1")
}
}
.onAppear(){
let uiAppClass = UIApplication.self
let currentSendEvent = class_getInstanceMethod(uiAppClass, #selector(uiAppClass.sendEvent))
let newSendEvent = class_getInstanceMethod(uiAppClass, #selector(uiAppClass.newSendEvent))
method_exchangeImplementations(currentSendEvent!, newSendEvent!)
print("sendEvent Swizzled")
}
}
}
Post not yet marked as solved
Having a lot of weird things going on with my phone. I don’t know much about what I’m looking at but I can some what understand what I’m seeing I’m just not fully understand if that makes any sense...I have a 11 pro. So I started messing with my phone and came across analytics data and notice some stuff but I’d appreciate it if any one can help me out. Thanks
{"app_name":"aggregated","app_version":"","bug_type":"145","timestamp":"2021-03-11 05:17:17.78 -0800","os_version":"iPhone OS 13.3.1 (17D50)","incident_id":"9B85BD10-2419-4746-98C9-1BA70E78E960","slice_uuid":"B722CBE6-961A-3300-80E4-2CC18CCFC143","build_version":"","is_first_party":true,"share_with_app_devs":true,"name":"aggregated"}
Date/Time: 2021-03-10 16:15:52 -0800
End time: 2021-03-11 05:17:17 -0800
OS Version: iPhone OS 13.3.1 (Build 17D50)
Architecture: arm64e
Report Version: 29
Incident Identifier: 9B85BD10-2419-4746-98C9-1BA70E78E960
Data Source: Microstackshots
Shared Cache: 0x35cdc000 848E225F-0906-300D-B925-D7A2CF224D9D
Shared Cache: 0x1cb08000 848E225F-0906-300D-B925-D7A2CF224D9D
Command: aggregated
Path: /System/Library/PrivateFrameworks/AggregateDictionary.framework/Support/aggregated
Version: ??? (???)
PID: 205
Event: disk writes
Action taken: none
Writes: 1073.75 MB of file backed memory dirtied over 46885 seconds (22.90 KB per second average), exceeding limit of 12.43 KB per second over 86400 seconds
Writes limit: 1073.74 MB
Limit duration: 86400s
Writes caused: 1073.75 MB
Writes duration: 46885s
Duration: 46884.92s
Duration Sampled: 46751.39s
Steps: 758 ( (10.49 MB/step))
Hardware model: iPhone12,5
Active cpus: 6
Heaviest stack for the target process:
46 ??? (libsystem_pthread.dylib + 14032) [0x1b5e4b6d0]
46 ??? (libdispatch.dylib + 77600) [0x1b5df5f20]
38 ??? (libdispatch.dylib + 40572) [0x1b5dece7c]
37 ??? (libdispatch.dylib + 37664) [0x1b5dec320]
37 ??? (libdispatch.dylib + 107760) [0x1b5dfd4f0]
37 ??? (libdispatch.dylib + 108696) [0x1b5dfd898]
37 ??? (libdispatch.dylib + 37664) [0x1b5dec320]
37 ??? (libdispatch.dylib + 104676) [0x1b5dfc8e4]
37 ??? (libdispatch.dylib + 12452) [0x1b5de60a4]
37 ??? (libxpc.dylib + 55948) [0x1b5d3ca8c]
37 ??? (libxpc.dylib + 55048) [0x1b5d3c708]
21 ??? (aggregated + 20052) [0x102db0e54]
15 ??? (aggregated + 24132) [0x102db1e44]
9 ??? (aggregated + 18188) [0x102db070c]
9 ??? (aggregated + 27620) [0x102db2be4]
9 ??? (libsqlite3.dylib + 665068) [0x1b7e0f5ec]
9 ??? (libsqlite3.dylib + 629568) [0x1b7e06b40]
9 ??? (libsqlite3.dylib + 480872) [0x1b7de2668]
9 ??? (libsqlite3.dylib + 482556) [0x1b7de2cfc]
9 ??? (libsqlite3.dylib + 483312) [0x1b7de2ff0]
8 ??? (libsqlite3.dylib + 544392) [0x1b7df1e88]
8 ??? (libsqlite3.dylib + 452064) [0x1b7ddb5e0]
8 ??? (libsystem_kernel.dylib + 162068) [0x1b5f2c914]
Powerstats for: aggregated [205]
UUID: B722CBE6-961A-3300-80E4-2CC18CCFC143
Path: /System/Library/PrivateFrameworks/AggregateDictionary.framework/Support/aggregated
Architecture: arm64
Footprint: 11.12 MB - 11.53 MB (+416 KB) (max 11.77 MB )
Pageins: 176 pages
Start time: 2021-03-10 16:31:10 -0800
End time: 2021-03-11 04:59:07 -0800
Num samples: 54 (7%)
CPU Time: 121.502s
Primary state: 36 samples Non-Frontmost App, Non-Suppressed, Kernel mode, Effective Thread QoS Background, Requested Thread QoS Background, Override Thread QoS Unspecified
User Activity: 14 samples Idle, 40 samples Active
Power Source: 51 samples on Battery, 3 samples on AC
46 ??? (libsystem_pthread.dylib + 14032) [0x1b5e4b6d0]
46 ??? (libdispatch.dylib + 77600) [0x1b5df5f20]
38 ??? (libdispatch.dylib + 40572) [0x1b5dece7c]
37 ??? (libdispatch.dylib + 37664) [0x1b5dec320]
37 ??? (libdispatch.dylib + 107760) [0x1b5dfd4f0]
37 ??? (libdispatch.dylib + 108696) [0x1b5dfd898]
37 ??? (libdispatch.dylib + 37664) [0x1b5dec320]
37 ??? (libdispatch.dylib + 104676) [0x1b5dfc8e4]
37 ??? (libdispatch.dylib + 12452) [0x1b5de60a4]
37 ??? (libxpc.dylib + 55948) [0x1b5d3ca8c]
37 ??? (libxpc.dylib + 55048) [0x1b5d3c708]
21 ??? (aggregated + 20052) [0x102db0e54]
15 ??? (aggregated + 24132) [0x102db1e44]
9 ??? (aggregated + 18188) [0x102db070c]
9 ??? (aggregated + 27620) [0x102db2be4]
9 ??? (libsqlite3.dylib + 665068) [0x1b7e0f5ec]
9 ??? (libsqlite3.dylib + 629568) [0x1b7e06b40]
9 ??? (libsqlite3.dylib + 480872) [0x1b7de2668]
9 ??? (libsqlite3.dylib + 482556) [0x1b7de2cfc]
9 ??? (libsqlite3.dylib + 483312) [0x1b7de2ff0]
8 ??? (libsqlite3.dylib + 544392) [0x1b7df1e88]
8 ??? (libsqlite3.dylib + 452064) [0x1b7ddb5e0]
8 ??? (libsystem_kernel.dylib + 162068) [0x1b5f2c914]
3 Effective Thread QoS Default, Requested Thread QoS Default
1 ??? (libsqlite3.dylib + 544492) [0x1b7df1eec]
1 ??? (libsystem_kernel.dylib + 160908) [
Post not yet marked as solved
Everytime I erase and set my phone to factory reset I always see the same errors.
{"timestamp":"2021-05-15 16:05:02.00 -0400","bug_type":"313","os_version":"iPhone OS 14.5.1 (18E212)","incident_id":"0BB5267C-1AA6-4C0B-B048-C201D896D9C5"}
{"locale":"en_US","agent":"parsecd\/1.0 (iPhone12,8; iPhone OS 14.5.1 18E212) DuetExpert\/1","user_guid_string":"344C4C73-9029-4D5D-BF54-BAD2AF5E1FA2","country_code":"US","session_start":1621109102,"previous_session_end_reason":"no_previous_session"}
what is duet expert?
Post not yet marked as solved
Hi!
Does anybody know why on retrieving the listeners and play counts using the new Music Analytics API you get rounded numbers to the nearest 50?
Why aren't they more precise? It's my data after all.
Thank you!
Post not yet marked as solved
My test flight application crashed while doing a disk writing operation. I saw the following error in crash log
1073.76 MB of file backed memory dirtied over 705 seconds (1522.14 KB per second average), exceeding limit of 12.43 KB per second over 86400 seconds\
After a little bit of research I found from Apple documentation that System will throw an exception if disk writes from the app exceeds a certain limit in 24 hours window
[https://developer.apple.com/documentation/xcode/reducing-disk-writes)
But the threshold is not documented. But looking at the crash log we can reverse calculate this threshold as 12.43KB * 86400 ~ 1 GB
Does this means that iOS application won't be able to write data more than this limit (1 GB) per day?
Post not yet marked as solved
Is there a way to automatically download app analytics from App Store Connect? We would like to configure an automatic process that would feed a database for reporting purposes.
Post not yet marked as solved
Hi there - We can see in AppStoreConnect, under Analytics, there are few crashes reported, when hovering over the section, we can see there is a message that is displayed:
But when we go to Xcode, we do not see crash reports under Organizer for the latest versions deployed. Could someone assist with how to pull these for the crashes being reported in AppStore. Thanks in advance
Post not yet marked as solved
Hello everyone!
Why do campaign URL analytics also include source types like App Store Search or App Store Browse?
We have an App Store campaign URL on our website. First I wondered why the app units of our domain (under the Web Referrers tab) is lower than the campaign app units. After checking the details of the campaign, I noticed that the campaign also includes App Store Search and App Store Browse in App Units by Source.
That doesn’t make any sense to me as the campaign URL directly opens the product page. Or does that mean users went back to the Store, searched for the app later again and bought it then?!
Maybe I’m missing something. Can someone explain the resoning behind this?
Post not yet marked as solved
Hello!
I released a new game for $0.99 and over the first 3 weeks or so I was getting a consistent 8-15 downloads a day. Suddenly, a few days ago, it suddenly drops to zero sales and has been at zero for a few days now. I understand that apps can drop in popularity over time but to go from a handful of downloads a day to nothing? Seems a little strange to me.
People seem happy with the app, 10 ratings so far at 4.6 stars.
I heard there may be delays in sales numbers or possibly changing in algorithms that can affect it?
Has anyone else had a similar experience?
Thanks
Post not yet marked as solved
The newer more powerful iOS devices are signaling memory limits where older devices did not. Has any iOS developer written about or confronted this problem?
With an iOS SpriteKit game in production that demands a lot of memory (1.5GB) on start up, there have been no memory limit crashes in development (Xcode) and no memory crashes on the same devices running the production app available on the AppStore.
Recently, users with iPhone 12, iPhone 12 mini, or other iPhone with 4GB RAM, report crash with error: jetsam per-process-limit, or jetsam mem limit: ActiveHard 2098 MB (fatal)
iPhone 7, rated at 2GB RAM, runs the downloaded production app with no problem and no memory warnings in the log.
iPhone XR, rated at 3GB RAM, runs the app with no problems.
iPhone 12 Pro, rated at 6GB runs the app with no problem.
Post not yet marked as solved
Is there some kind of official stats about album / track plays through the official Apple Music API?
Or something like youtube has at:
https://charts.youtube.com?
Post not yet marked as solved
Hi there, we're looking to implement the Smart App Banners as per Apple's documentation here: https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners
But we're struggling to find any details on ability to correctly track (analytics) the App Store Downloads attribute to the banner. E.g. if a user clicks on the banner and downloads our app, how do we identify the download from our App Store analytics?
Post not yet marked as solved
I successfully submitted and updated the application in AppStore.
Here I am facing one issue while updating the app from the app store app is getting crash(after launch Screen).
While the fresh installation application is working without a crash.
No crash while testing and in TestFlight.
No crash reports were available from the store.
Here I am using firebase DB.
my DB is different from previous version(fbdb_1) to present version(fbdb_2).
The whole data is the same for the two DB's.
Any suggestion would be helpful.
Thank you.
Post not yet marked as solved
I am using iOS API to download the iOS app - Sales and Trends Report.
url = 'https://api.appstoreconnect.apple.com/v1/salesReports?filter[vendorNumber]='+vendor_number+'&filter[reportType]='+reportType+'&filter[reportSubType]='+reportSubType+'&filter[frequency]='+frequency+'&filter[reportDate]='+report_date+'&filter[version]=1_0'
In the report we see the Product Type Identifiers code such as 3F, 7F etc.
Is there an API to pull the Product Type Identifiers - Type and Description which is available here -
The report looks like this
Post not yet marked as solved
Hey guys!
Right now I am the App Manager role, but I don't know where to find the app's data on App Store Connect like this page.
https://developer.apple.com/app-store/measuring-app-performance
Is there a step by step guide for this? Or I need to change my role to access the data. Btw, our app just launched few days ago, not sure this is a factor or not tho.
Thanks!
Post not yet marked as solved
Hi,
I would like to use reporter to collect statistics of my applications (download / delete / use)
I already use this :
java -jar Reporter.jar p=Reporter.properties m=Robot.XML Sales.getReport 8XXXXXXX, Sales, Summary, Daily, 20210926, 1_0
Is there a way to get the deleted and usage?
Post not yet marked as solved
We need to download the Usage report using connect API.
App Analytics - App Metrics
https://help.apple.com/app-store-connect/#/itc21781223f
Please provide us api URL or documentation to achieve the same.