show when run

94,693 results found

Post not yet marked as solved
0 Replies
72 Views
I have noticed that my Apple Watch app seems to randomly quit from time to time. It's not crashing and I have not been able to reproduce it in a controlled setting, but have noticed that it seems to only happen when I'm in very high or low temperatures. For instance, I was skiing recently and my app was supposed to stay running the whole time, but often when I would raise my wrist it would be back on the home screen and my app wasn't running. This also happened when I was on the beach on a very hot day. But when I'm testing it at home I can keep it running for hours and it never crashes, which leads me to believe it may have to do with the temperature. Does the OS kill apps when it's running in very high or low temperatures? If so, is there anything I can do to prevent this from occurring? Would doing less things in my app possibly prevent this? For instance, I have a timer, and use a bunch of sensors, would turning those off at times and using less of the display make a di
Posted
by
Post not yet marked as solved
0 Replies
69 Views
Hi, I am new to Swift and would like to write a simple Swift script to show some HDR images or video on my VisionPro. I tried to find some code online as shown in the attachment to put one HDR image and one SDR side by side, but it seems like not to take any HDR effect. Thanks in advance.
Posted
by
Post not yet marked as solved
6 Replies
Hi, I'd really appreciate if anyone here could run my self-contained test above on their current macOS version to see if it matches my results or not. If you do please share your result here indicating the OS version and whether you have VPN installed or not (and whether it's activated or disabled).
Post not yet marked as solved
1 Replies
I'm seeing a similar problem. Here I'm using an ObservedObject to update my app settings but get a build warning in the Command section Main actor-isolated property 'body' cannot be used to satisfy nonisolated protocol requirement The app seems to compile and run fine otherwise. Feedback raised: FB13801673 struct MyCommands: Commands { @ObservedObject var globalAppSettings: GlobalAppSettings var body: some Commands { SidebarCommands() CommandGroup(after: CommandGroupPlacement.newItem) { Divider() Toggle(Debug Mode, isOn: $globalAppSettings.debugMode) } } }
Post not yet marked as solved
0 Replies
78 Views
If I set the capacity of the disk cache to less than 5MB, It doesn't work. Through the print statement, I checked that the value of the currentDiskUsage did not rise at all, and I also checked that the image has been making network requests every time because there is no cached data even if I shut down and run the app again. I'm simply wondering why this is happening. Also, I wonder what kind of eviction policy the disk cache follows. I was so curious that I tried to find out through the link [here], but there seems to be no implementation of disk cache at all. Below is the code I used. I'm attaching it together just in case. import UIKit protocol Cacheable { func getCachedResponse( for path: String, completion: @escaping (Result) -> Void ) func save( for path: String, data: Data ) } final class CacheManager { static let shared = CacheManager() private let imageCache: URLCache init() { imageCache = URLCache( memoryCapacity: 4 * 1024 * 1024, // 4MB diskCapacity: 4 * 1024 * 1024 // 4MB ) } } extensi
Posted
by
Post not yet marked as solved
2 Replies
Thank you for the answer. So far, I managed to implement the OTA enrollment mechanism. This includes the following steps for reference: User navigates to the first URL in order to start the enrollment process. User authenticates using the web view. Server returns a payload to request device attributes. Payload is signed using the trusted server certificate. Mobile device POST (first) the requested information. Payload is signed using the device identity certificate (issued by Apple). Server returns a SCEP payload to continue the enrollment process. Mobile device reaches the server to get the SCAP certificate authority. Mobile device reaches the SCAP endpoint with PKCS7 embedded CSR to get signed. Inbound payload is decrypted using the SCEP certificate authority private key. Server returns a PKCS7 embedded X509 - SCEP issued certificate. Returned payload is signed using the certificate extracted from the inbound SCEP request. Returned payload is signed using the SCEP authority. Mobile device POST (second) usin
Post not yet marked as solved
0 Replies
80 Views
Hi, i have been noticing some strange issues with using CoreML models in my app. I am using the Whisper.cpp implementation which has a coreML option. This speeds up the transcribing vs Metal. However every time i use it, the app size inside iphone settings -> General -> Storage increases - specifically the documents and data part, the bundle size stays consistent. The Size of the app seems to increase by the same size of the coreml model, and after a few reloads it can increase to over 3-4gb! I thought that maybe the coreml model (which is in the bundle) is being saved to file - but i can't see where, i have tried to use instruments and xcode plus lots of printing out of cache and temp directory etc, deleting the caches etc.. but no effect. I have downloaded the container of the iphone from xcode and inspected it, there are some files stored inthe cache but only a few kbs, and even though the value in the settings-> storage shows a few gb, the container is only a few mb. Please can someone h
Posted
by
Post not yet marked as solved
0 Replies
84 Views
Hi, I am testing an consumable in-app purchase for my app on an iPad, whenever I select to purchase, it always shows For testing purpose only. You will not be charged for confirming this purchase.. Then I touch the blue Purchase button. It instantly shows Done, then alerts You're all set. Your purchase was successful. [Environment: Xcode]. It never asks me to enter a Sandbox account. I followed the instructions on Testing in-app purchases with sandbox page, but I can not find the sandbox account in Settings > App Store. I expected to see [Environment: Sandbox] so I could get the transaction id for App Store Server API. My iPadOS version is 17.4.1. My Xcode version is 15.1 and I use StoreKit with SwiftUI view. Can someone please shed some light on why I always get [Environment: Xcode]? I googled a lot, the process to test with Sandbox seems to be straightforward, But I just could not get it right. Thank you very much! KInd Regards, Shih-Chin Yang
Posted
by
Post not yet marked as solved
0 Replies
84 Views
Hi guys, I'm investigating failure to play low latency Live HLS stream and I'm getting following error: (String) “n#Version: 1.0n#Software: AppleCoreMedia/1.0.0.21L227 (Apple TV; U; CPU OS 17_4 like Mac OS X; en_us)n#Date: 2024/05/17 13:11:46.046n#Fields: date time uri cs-guid s-ip status domain comment cs-iftypen2024/05/17 13:11:16.016 https://s2-h21-nlivell01.cdn.xxxxxx.***/..../xxxx.m3u8 -15410 “CoreMediaErrorDomain” “Low Latency: Server must support http2 ECN and SACK” -n2024/05/17 13:11:17.017 -15410 “CoreMediaErrorDomain” “Invalid server blocking reload behavior for low latency” -n2024/05/17 13:11:17.017 The stream works when loading from dev server with TLS 1.3, but fails on CDN servers with TLS 1.2. Regular Live streams and VOD streams work normally on those CDN servers. I tried to configure TLSv1.2 in Info.plist, but that didn't help. When running nscurl --ats-diagnostics --verbose it is passing for the server with TLS 1.3, but failing for CDN servers with TLS 1.2 due to error Code=-1005 The
Posted
by
Post not yet marked as solved
0 Replies
80 Views
Our app is a time reporting service with various functions around that. The user checks in at work, checks out when they go home. We thought it'd be useful to provide a live activity to show how long they have worked for. There is also a couple of other cool things we could do that users would love, but i couldn't find definitive answers to the questions below. 1. We have a geofence-based function that checks the user in when they for example arrive at work, and check them out when they go home, so that they don't have to open the app. However, this means that we will need to start and end the live activity from within a geofence trigger. Is this possible? 2. It seems that the maximum time for a live activity is 8 hours? Sometimes people work for longer... How would we solve this? i would be fine with 12 since it would solve most cases. Is it possible somehow to go beyond 8 hours up to 12? If not, is there a callback that 8 hours are up! so that i could do a final update on the live activity from a c
Posted
by
Post not yet marked as solved
0 Replies
53 Views
We have trying to programmatically send data to Final Cut Pro by using Apple Event as decribed in Sending Data Programmatically to Final Cut Pro : tell application Final Cut Pro activate open POSIX file /Users/JohnDoe/Documents/UberMAM/MyEvents.fcpxml end tell This works fine in Script Editor but we run into problems when trying to do the same in our macOS app. We found interesting information in Workflow Extensions SDK 1.0.2 Release Notes.pdf. A) Hardened runtime has Apple Events Enabled checked. B) Info.plist contains NSAppleEventsUsageDescription: NSAppleEventsUsageDescription Test string C) We added following entitlements: com.apple.security.scripting-targets com.apple.FinalCut com.apple.FinalCut.library.inspection com.apple.FinalCutTrial com.apple.FinalCut.library.inspection com.apple.security.automation.apple-events With this configuration in place, our app is able to call AppleScript to activate Final Cut Pro application but it is unable to open the file. Following error is returned: Er
Posted
by
Post not yet marked as solved
1 Replies
46 Views
My app uses Core Data to store an synchronise the data. It runs on iOS, iPadOS and now WatchOS. The records are stored in the private and shared CloudKit database. Running the app in developer mode, syncing is fine for all devices. But as soon as I switch to production mode using TestFlight, the Watch only syncs the data of the shared records, while iPad and iPhone still are syncing all records (private and shared) correctly. I run out of ideas where to search for the reason of this problem. I use one module to setup the persistent store for iOS, iPadOs and WatchOS. Any ideas are well come.
Posted
by
Post not yet marked as solved
0 Replies
45 Views
i am able to see my iphone in device and simulation but unable to select it the manage as run application i have macos of version:sonoma 14.5 ,xcode version:15.4 and iphone os 17.5 here are the following methods i tried: 1)updated all device and restarted 2)changed the cable and used different iphone 3)installed xcode in another mac but it still remain unsolved 4)deleted the derive data and restarted 5)deleted and reinstalled xcode [Edited by Moderator]
Posted
by
Post not yet marked as solved
3 Replies
Note the 0xd00d2bad (‘dude, too bad’) exception code. That’s discussed (in very vague terms) in this doc. I’ll try to expand on that here, but be warned that it’s impossible to discuss this without getting deep into iOS implementation details. This stuff changes regularly, so don’t ship code that depends on any of the following. First, I want to define the term assertion. In this context, I’m using it per the definition in UIApplication Background Task Notes. Second, I want to talk about runningboardd. This is actually present on macOS as well, and there we have man pages! The runningboardd man page says: runningboardd is a daemon that manages process assertions to ensure those processes are kept in the appropriate state while assertions are in effect. As you can see, it’s using assertion in the same way I am (-: The ‘dude, too bad’ crash indicates that runningboardd has killed your process because it’s using too many assertions. The tricky thing about this, and the reason why the above-mentioned doc is so va