Reputation: 175
I've implemented notifications extension and now try to debug my code, but without any success. I tried several approaches how to handle it, for example stackoverflow question
When I "attach to process ...", I just see "waiting to attach" message on desired process. If I send push notification to invoke my extension, it just crashes
Message from debugger: Terminated due to signal 9
Is it possible that OS just close my extension, because it uses to much memory or it has too big size (~.appex = 20mb), but I can't find guidelines about extension size/number of files, etc.
Any suggestions, help?
Thx in advance
Upvotes: 2
Views: 2410
Reputation: 919
I have checked Notification Service Extension
, Here you can see what is memory limit as per latest iOS update.
As per Xcode debugging 24 MB is notification extension memory limit.
Upvotes: 0
Reputation: 31
I disabled the address sanitizer and undefined behavior sanitizer in the main app's scheme and the service extension loads ok now.
Upvotes: 3
Reputation: 18408
It seems like that there is a memory limit for Notification Service Extension
. Someone said it may be 5mb. And someone said that the limit is 5mb in ObjC, or 15mb in Swift.
Due to the limit, I remove all 3rd party libraries in Notification Service Extension
.
Upvotes: 4