Post not yet marked as solved
Hi,
I have a watchOS app which is able to control Sonos speakers. So people set it to stay active for 1 hour. Unfortunately, the system kills the application every time after 5 to 15 min. I have made many system diagnosis and the pattern is always the same.
Carousel decides that the app must be suspended.
runnungboardd suspends the app.
filecoordinationd kills with SIGKILL because it detected it has been suspended.
launchd reports that the app has been killed.
The issue is that I don't understand why Carousel wants to suspend the app.
I have disabled all animations while the app is in Always on mode. The app does not perform any operations.
If anyone has any idea on what do try, I would be glad for help.
Here are some of the related logs. There are thousands around that but I could not deduce anything useful from them.
The app gets suspended and then the filecoordinationd decides to kill it. But why is it suspended ?
Just before, the app invalidates the timelines. But the timelines here are from the Backlight service.
debug 2024-05-11 10:19:47.116194 +0200 WatchSonos WatchKit Extension 0x16d57dd0 invalidateAllTimelinesForReason:Host update. for environment:de.heinrich.alexander.WatchSonos.watchkitapp
default 2024-05-11 10:19:47.116285 +0200 WatchSonos WatchKit Extension [(FBSceneManager):de.heinrich.alexander.WatchSonos.watchkitapp] Sending action(s): BLSInvalidateFrameSpecifiersAction
Here an error occurs when setting the darwin gpu. This could be related
default 2024-05-11 10:19:47.176223 +0200 runningboardd [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1706] Shutdown sockets (ALL)
default 2024-05-11 10:19:47.176259 +0200 runningboardd [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1706] Set darwin role to: None
default 2024-05-11 10:19:47.176264 +0200 runningboardd 1706 Set Darwin GPU to "deny"
error 2024-05-11 10:19:47.176292 +0200 runningboardd 1706 setGPURole failed with result = e00002c7
Here the carousel requests suspension which then later performed by the runningoardd
default 2024-05-11 10:19:47.177176 +0200 Carousel [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1706] Setting process task state to: Suspended
info 2024-05-11 10:19:47.177309 +0200 Carousel Client requesting suspension of PID:1706 Name:<redacted>
info 2024-05-11 10:19:47.177407 +0200 Carousel Update delivered for [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1706] with taskState 3
Suspending the process
default 2024-05-11 10:21:13.851752 +0200 runningboardd [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1707] Suspending task.
info 2024-05-11 10:21:13.851963 +0200 runningboardd Process: [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1707] has changes in inheritances: {(
<RBSInheritance| environment:UIScene:@com.apple.frontboard.systemappservices/FBSceneManager:de.heinrich.alexander.WatchSonos.watchkitapp name:com.apple.frontboard.visibility origID:74-186-52947 payload 646688203>,
<RBSInheritance| environment:(none) name:com.apple.frontboard.visibility origID:74-186-53033 0>
)}
info 2024-05-11 10:21:13.852269 +0200 runningboardd Current inheritances: {(
<RBSInheritance| environment:(none) name:com.apple.frontboard.visibility origID:74-186-53032 0>,
<RBSInheritance| environment:UIScene:@com.apple.frontboard.systemappservices/FBSceneManager:de.heinrich.alexander.WatchSonos.watchkitapp name:com.apple.frontboard.visibility origID:74-186-52947 payload 646688203>,
<RBSInheritance| environment:(none) name:com.apple.frontboard.visibility origID:74-186-52948 0>,
<RBSInheritance| environment:(none) name:com.apple.frontboard.visibility origID:74-186-53033 0>
)}
default 2024-05-11 10:21:13.852375 +0200 runningboardd Process: [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1707]: Sending inheritance changeset: <RBSInheritanceChangeSet| gained:{(
)} lost:{(
<RBSInheritance| environment:(none) name:com.apple.frontboard.visibility origID:74-186-53032 0>,
<RBSInheritance| environment:(none) name:com.apple.frontboard.visibility origID:74-186-52948 0>
)}>
default 2024-05-11 10:21:13.852794 +0200 runningboardd [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1707] Shutdown sockets (SVC)
default 2024-05-11 10:21:13.852829 +0200 runningboardd [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1707] Set darwin role to: None
Killing the process:
default 2024-05-11 10:19:48.441773 +0200 filecoordinationd Detected process suspension: 1706
info 2024-05-11 10:19:48.441776 +0200 filecoordinationd Update delivered for [app<de.heinrich.alexander.WatchSonos.watchkitapp((null))>:1706] with taskState 4
default 2024-05-11 10:19:48.441776 +0200 filecoordinationd Claim 562AB55E-CE67-46FA-A080-798F89013643 observed suspension of client with 1706
error 2024-05-11 10:19:48.444295 +0200 filecoordinationd SimulateCrash() on another process is not supported
default 2024-05-11 10:19:48.444361 +0200 filecoordinationd Claim 562AB55E-CE67-46FA-A080-798F89013643 was revoked
Reporting the kill
default 2024-05-11 10:19:48.455485 +0200 launchd exited due to SIGKILL | sent by filecoordinationd[316], ran for 7913ms
Post not yet marked as solved
My Objective-C app contains several hundreds lines of deprecated code like these:
NSData *tmp = [NSKeyedArchiver archivedDataWithRootObject:singleTaskCleanUserArrayItem];
singleTaskUserArrayItem = [NSKeyedUnarchiver unarchiveObjectWithData:tmp];
New recommended methods:
+archivedDataWithRootObject:requiringSecureCoding:error:
+unarchivedObjectOfClass:fromData:error:
How to implement the new methods in Objective-C?
Forums and Documentation refer to Swift but not to Objective-C. Please give me a sample code for the two lines of code
Best regards,
Gerhard
Post not yet marked as solved
I know that I can use face detect with CoreML, but I'm wandering that is there any to identify the same person between two images like Photos app.
Post not yet marked as solved
I need to obtain data through mqtt and subscription? Is there any idea or framework ?
Think you
Post not yet marked as solved
Hi Guys, I would like to ask if anyone knows the FPS of screen recording and airplay on Vision Pro. Airplay refers to mirroring the Vision Pro view to MacBook/iPhone/iPad. Also, is there any way to record the screen with the raw FPS of Vision Pro (i.e., 90)?
Post not yet marked as solved
Hi,
I am developing iOS mobile camera. I noticed one issue related to the user privacy. when AVCaptureVideoStabilizationModeStandard is set to AVCaptureConnection which sessionPreset is 1920x1080Preset, after using system API to take a photo, the FOV of the photo will be bigger than preview stream and it will show more content especially in iPhone 15 pro max rear camera. I think this inconsistency will cause the user privacy issue. Can you show me the solution if I don't want to turn the StabilizationMode OFF? I tried other devices, this issue is ok but in iPhone 15pm this issue is very obvious.
Any suggestions are appreciated.
Post not yet marked as solved
Greetings,
I have set up two tips in my app, and my app is configured with Tips.configure([.displayFrequency(.daily)].
Tip 1 is set up with no options. Tip 2 has the IgnoresDisplayFrequency(true) option set:
var options: [Option] {
MaxDisplayCount(3)
// We want the user to see these because it's important.
IgnoresDisplayFrequency(true)
}
This option works as expected, as far as I can tell, in terms of making sure that Tip 2 is shown even if I've already seen Tip 1 today. If I interact with my app such that Tip 1 is displayed, and I then interact with it such that Tip 2 should be displayed, Tip 2 shows immediately, even though a day hasn't passed.
However, if I do this the other way around, so that Tip 2 is displayed first, and then I interact so that Tip 1 should be displayed, my expectation would be that Tip 1 is not displayed, because another tip has already been shown today. I expected that it would not be shown until the following day, since it is not configured to ignore the tip frequency.
That's not what happens, though. Tip 1 is displayed right away, even though Tip 2 has just been shown. This makes me think that setting IgnoresDisplayFrequency on Tip 2 is causing it to also be ignored when considering whether other tips should be shown.
I did try omitting IgnoresDisplayFrequency option, and then as expected, only one tip is shown on a day, no matter which one is shown first.
Post not yet marked as solved
Hello,
I have a swift package that supports visionOS and one of its targets is a xcframework that also support visionOS and when I try to archive that swift package (using xcodebuild archive) I get this error:
note: '<xcframework path>' is missing architecture(s) required by this target (x86_64), but may still be link-compatible. (in target '[library name]' from project '<swift package name>')
But starting in Xcode 15.2 (I have Xcode 15.4 installed), you cannot develop for visionOS on Intel machines. So why does it require that the xcframework needs x86_64 support for the visionOS simulator?
Any help would be great. Thanks!
Post not yet marked as solved
Hi there. I've been trying to take a snapshot programmatically on apple vision pro but haven't succeeded.
This is the code I am using so far:
func takeSnapshot<Content: View>(of view: Content) -> UIImage? {
var image: UIImage?
uiQueue.sync {
let controller = UIHostingController(rootView: view)
controller.view.bounds = UIScreen.main.bounds
let renderer = UIGraphicsImageRenderer(size: controller.view.bounds.size)
image = renderer.image { context in
controller.view.drawHierarchy(in: controller.view.bounds, afterScreenUpdates: true)
}
}
return image
}
However, UIScreen is unavailable on visionOS.
Any idea of how I can achieve this?
Thanks
Oscar
Post not yet marked as solved
Hello!
I've encountered an issue with the seller name on the App Store. It seems you can only change it once, during the initial app submission, and unfortunately, we missed that chance. Now, we're stuck with a long, non-English name for life.
Here’s the problem: In my country, when choosing a company name, selecting a "field of activity" is mandatory. Let’s say our company is called "X". You can’t just name it "X Inc."; it has to be "X + Field of Activity + Entity Type."
Since our language is not English, and aiming for a global market, our name ended up as "X + Foreign words nobody understands + Inc."
When I reached out to support, after 7-8 tickets, they only removed the"Inc." but left our field of activity in the name: "X + Game Technologies (Not in english)."
It seems Apple can make exceptions and change names, but in this frustrating situation, support is not helping.
We want to use just the name "X". We were told to change our company name legally, and only then would they consider changing it on the App Store.
The issue is that it’s not just a company name; it's including a descriptor of our field of activity, which legally cannot be omitted.
Why is changing the seller name a one-time opportunity?
If you miss it or make a mistake, you are forced to stick with something so critical for your company forever. Does anyone here have advice or solutions for this situation?"
Post not yet marked as solved
I'm creating a slate pad for Ipad with several input fields to fill using Adobe XD. How can I obtain and attach a virtual keyboard to fill these input fields?
I found a video with a similar concept but on Iphone:
https://www.youtube.com/watch?v=O7tPI0VuKd4&list=PLWeIX-zcNnqII-nzviv_yxT2WNQRRYbiG&index=3
In this other link, the video mentions that the virtual keyboard was obtained from a UI kit that Apple provides. But I've looked and looked and I can't find a page to download this virtual keyboard. Any ideas?
https://www.youtube.com/watch?v=rosf7-zVYjY&t=122s
Post not yet marked as solved
Hello
Is it required to maintain a paid Apple Developer Program subscription for an application to stay connected and available in the App Store?
Post not yet marked as solved
Can anyone give me assistance on how to fix this. My preview crashed because a Fatal Error in ModelData.
This is how my ModelData looks:
import SwiftUI
struct SutraokeDetail: View {
@Environment(ModelData.self) var modelData
var sutra: Sutras
var body: some View {
@Bindable var modelData = modelData
ScrollView {
CircleImage(image: sutra.image)
.offset(y: -130)
.padding(.bottom, -130)
VStack(alignment: .leading) {
HStack{
Text(sutra.name)
.font(.title)
Spacer()
Text(sutra.text)
}
}
}
}
}
#Preview {
let modelData = ModelData()
return SutraokeDetail(sutra: modelData.sutras[0])
.environment(modelData)
}
Post not yet marked as solved
I'm in the process of submitting an app to the App Store and am preparing screenshots for various display sizes. I noticed that there's an option for a 13'' display, which corresponds to the new iPad Air. However, I can't find a simulator for the 13'' iPad Air in my XCode. Is it mandatory to upload screenshots for this size, or can I omit them? Additionally, how can I download the simulator for the new iPad Air?
Thanks!
Post not yet marked as solved
Hello, we use apple ID as a sign-up/log-in method, when we released our appstore version, did the switch from beta to market app. Our bundle ids have changed, now we are wondering that is there any way to help users to reach their old accounts using the market app with a different bundle id or any smart idea to approach to to this problem
Post not yet marked as solved
I've added my Vendor ID to the appropriate entitlement files but my binary fails validation when trying to upload it to the store for distribution. The embeded.mobileprovision file in the generated archive shows an asterisk instead of my approved Vendor ID. How can I make sure the embedded provisioning file has my Vendor ID?
Post not yet marked as solved
I am developing an WKWebView app that runs on both mobile and mac platforms using a react website. Currently, an admin user can send a call request in which the user gets a pop-up to answer. on iOS it works as intended, the user is asked to grant permission to utilize camera and microphone and the user is immediately connected upon accepting, however I never receive the pop-up when running in Mac Catalyst. I have ensured to enable permissions in sandbox settings as well as adding NSCamera and NSMic permissions in the property list. in the safari debugging console I receive this error upon clicking the accept call
ReferenceError: Can't find variable: RTCPeerConnection
Ive attempted to use the webview callback requestMediaCapturePermissionFor, and this did not seem to trigger on attempting to answer the call. Is this an error on my development end? or is this an issue I should look to the react code for a fix. I appreciate any feedback possible. Thanks.
Post not yet marked as solved
I am managing a subscribed calendar through my iPhone and am curious about how iOS handles 4xx error responses from calendar APIs. Specifically, I would like to know if there is a process that stops the iPhone from attempting to sync the calendar if it consistently receives 4xx errors from the server. Does iOS have a mechanism to pause or stop calendar sync under such error conditions to prevent unnecessary data usage and battery drain? Any guidance or insights on this behavior would be greatly appreciated.
Post not yet marked as solved
I have an online service where it lets people subscribe to iCalendar feed. I'm wondering if there is a way to force the subscriber (their Calendar client) to stop their subscription. I have some subscribers who subscribed to a feed that doesn't exist anymore. The annoying part is that these subscribers is fetching the data every 30 seconds!
I looked at iCalendar specification and it doesn't look like this is supported.
I tried few http response codes (404 and 410), but this doesn't stop the client.
The user agent I'm seeing in the log shows "iOS/17.4 (21E219) dataaccessd/1.0".
Any help is appreciated.
Post not yet marked as solved
how we can implement music kit in flutter app?