Search results for

show when run

112,651 results found

Post

Replies

Boosts

Views

Activity

Reply to Camera Permissions Popup
No idea what you mean by it freezes the Camera feed, and you don't exactly say how those cameraStatus and isAuthorized variables are used. I assume the initial value of isAuthorized is false ? You don't show that in the code. Do you need two variables? It seems: whenever isAuthorized is true, cameraStatus is .authorised; and vice versa, when isAuthorized is false, cameraStatus is notAuthorised. Except in the last case: @unknown default: where isAuthorized is true but cameraStatus is notAuthorised. Could this be your issue? Could you use just one variable to cut down on the complexity?
Topic: Privacy & Security SubTopic: General Tags:
11m
Reply to Choppy minimized search bar animation
Dear @DTS Engineer, thank you very much for your continued effort on this matter! Truly appreciate it! I use Xcode Version 26.2 (17C52) and experience this choppy animation in both SwiftUI Canvas and an actual device running iOS26.2. At the same time, I would like to point out that the animation indeed runs smoothly when the TabView is commented out / not used at all (as perhaps in your code). It does not, however, when the TabView is used (as in my initial code). #Preview { if #available(iOS 26, *) { TabView { // Does this cause a problem? Tab { SwiftUIView() } label: { Label(Test, systemImage: calendar) } } } else { // Fallback on earlier versions } } Hopefully this helps to narrow down the source of the issue!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1h
Reply to Multi-machine Code Signing
[quote='871837022, treedweller, /thread/812229?answerId=871837022#871837022, /profile/treedweller'] It's rather something about rebooting the machine that makes the magic work. [/quote] OK, that definitely rings some bells. Consider the issue described in Updating Mac Software. If you’re copying code around with tools that overwrite the code file rather than replace it, you can run into all sorts of weird problems like this. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1h
Reply to OnDemand VPN connection stuck in NO INTERNET
[quote='871739022, disinghal, /thread/811887?answerId=871739022#871739022, /profile/disinghal'] Happening only when onDemand is enabled [/quote] OK. Then what does your on-demand setup look like? [quote='871748022, disinghal, /thread/811887?answerId=871748022#871748022, /profile/disinghal'] before even we call setTunnelNetworkSettings(), internet goes away on machine [/quote] Does that mean your packet tunnel provider is able to open a network connection to the VPN server? That seems like it should be the case — most VPN clients have to contact the VPN server to get the settings they need to order to call setTunnelNetworkSettings() — but I just want to be clear. And if that’s the case, then does the packet tunnel provider’s connect to the VPN server tear when the “internet goes away”? Or is it just that the Internet goes away for other app’s running on the Mac? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1h
Reply to Failed to register bundle identifier: 403 error
In general, I recommend that you escalate questions like this via the support channel for the third-party tools you’re using. In this case, however, I have some suggestion before you do that, all related to this: [quote='812438021, lucksp, /thread/812438, /profile/lucksp'] For this new project, however, I am not the owner. [/quote] First, check that this team is an Organization team. If it’s an Individual team, you’ll like run into problems per the note at the top of the Permissions in App Store Connect section of Developer > Program Roles. Assuming this is an Organization (or Enterprise) team, the next step is to ensure that your operation is compatible with your program role. See the big table at the top of Developer > Support > Articles > Program Roles. Finally, try to do an equivalent operation on the Developer website itself. If that fails, you can seek help via Apple > Developer > Contact Us. But if that works, this is something for your tools vendor to investigate. Share and
1h
Reply to Unable to run embedded binary due to quarantine
Let’s start with the trivial: [quote='812323021, charlieMonroe, /thread/812323, /profile/charlieMonroe'] MyApp.app/Contents/Resources/mytool [/quote] Contents/Resources is not the right place for a helper tool. Rather, I recommend Contents/MacOS. See Placing content in a bundle. Also check out Embedding a command-line tool in a sandboxed app for general background. However, none of that is the cause of the really issue here. Rather, consider the error your got: exec of /Users/charliemonroe/Library/Containers/com.charliemonroe.MyApp/Data/tmp/par-636861726c69656d6f6e726f65/cache-9c78515c29320789b5a543075f2fa0f8072735ae/mytool denied …` Note the path. It’s not Contents/Resources/mytool but rather something in your app’s temporary directory. I suspect that the wrapper applied by the pp tool is actually unpacking code into the temporary directory and then running that. This won’t work because sandboxed apps aren’t allow to create and execute code. Specifically, when a sandbox program creates a file, that
Topic: Code Signing SubTopic: General Tags:
2h
iOS Content Filter Permission Prompt Not Appearing in TestFlight and Not Working
I added a Content Filter to my app, and when running it in Xcode (Debug/Release), I get the expected permission prompt: Would like to filter network content (Allow / Don't Allow). However, when I install the app via TestFlight, this prompt doesn’t appear at all, and the feature doesn’t work. Is there a special configuration required for TestFlight? I already set the minimum deployment to be 17 for the extension and the app. Thanks!
1
0
45
9h
Failed to register bundle identifier: 403 error
I am a developer with the following roles: Apple Developer Team = admin Using expo & EAS to build & sign = developer We are running a new project so credentials need to be sync'd up. With EAS i can either upload a p12 or use the automatic app signing credentials. I have successfully run this in other projects including another where I am the account owner/holder. For this new project, however, I am not the owner. When I try to register bundle identifier it results in: Error: Apple 403 detected - Access forbidden. This request is forbidden for security reasons - You currently don't have access to this membership resource. > eas credentials ✔ Select platform › iOS ✔ Which build profile do you want to configure? › preview ✔ Using build profile: preview If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them. This is optional, but without Apple account access you will need to provide all the missing values manua
1
0
136
18h
MacBook Pro Messages app issues on macOS Tahoe 26 Public Beta
Regardless of how long my Mac has been running, clicking on the Messages app causes it to bounce repeatedly. Eventually, it stops and behaves as if it has opened, but sometimes it doesn’t open at all. When it does open, the messages either don’t sync or take several hours to load. Most of the time, the last synced messages are over a week old. Occasionally, I can only message certain people from my Mac. If I attempt to text someone from my Mac, it freezes completely, requiring me to force quit. Interestingly, I don’t encounter any issues between my iPhone 16 Pro Max and iPad Pro. Both my iPhone and iPad are running the latest macOS betas.
0
0
129
21h
Changing Dock Icon for my Qt app
Hello, I'm trying to make a white-Label sort of thing for my app, that is: a script runs before the app launches, sets a certain LaunchAgent command that sets and environment variable, and based on that variable's value tha main app's icon changes to a certain logo (change only happens in the dock because changing the icon on disk breaks the signature) When the app launches it takes a noticeable time until the dock icon changes to what I want, so I worked around that by setting the app's plist property to hide the dock icon and then when the app is launched I call an objc++ function to display the icon in the dock again (this time it displays as the new icon) The showing happens through [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; The problem happens when I try to close the app, it returns back to the old logo before closing which is what I want to prevent. I tried hiding the app dock icon before closing but even the hiding itself changes the icon before hiding The hidin
1
0
136
22h
Playgrounds app with the latest SDK (OS 26)
I am preparing for Swift Student Challenge, but it seems like the iPad Playground app still not support the latest SDK. I can't use frameworks like FoundationModel, etc., directly in playground app My playground for this year would require iPad environment since it uses PencilKit, ARKit, etc., and I also want to use the latest tech + the liquid glass UI Right now, I develop the project as a normal Xcode project, and I am wondering how do I post it? As Xcode playground, it must run on macOS As Swift Playground project, the iPad version of Playground does not support latest APIs and it can't compile
0
0
43
1d
Temporarily disable macOS capture of USB RFID reader(s)
Hello. I am attempting to wrap the C library libnfc as a Swift library. This is not for use on macOS - it's mainly for use on Linux (Raspberry Pi). I have a USB reader and my code appears to work so far, however the code/test/debug cycle is suboptimal if I'm running the code on the Pi. As I use a Mac for day-to-day coding, I'd prefer to use Xcode and my Mac for development. MacOS appears to capture the NFC hardware for its own frameworks and attempting to open a connection to the USB device gives a Unable to claim USB interface (Permission denied) error. ioreg shows that the hardware is claimed by an Apple framework: UsbExclusiveOwner = pid 10946, com.apple.ifdbun Is there a way to temporarily over-ride that system and use the hardware myself? I've tried Googling but most of the replies are out of date and Claude's advice launchctl unload /System/Library/LaunchDaemons/com.apple.ifdreader.plist doesn't appear to work... I'm wary of disabling SIP - is there a simple way to have access to the h
0
0
34
1d
https://stackoverflow.com/questions/79865253/watchos-swiftui-ui-redraws-are-delayed-in-always-on-power-saving-mode-despite
I'm working on a watchOS app using SwiftUI that updates its UI based on regular, time-driven logic. On a real Apple Watch, after the app has been running for ~1 minute, the device enters Always-On / power-saving display mode (screen dimmed, wrist down). From that point on, SwiftUI UI updates become noticeably delayed. The underlying logic continues to run correctly, but the UI only redraws sporadically and often catches up once the screen becomes fully active again. The app is running in workout mode, which keeps it alive and maintains WatchConnectivity, but this does not prevent UI redraw throttling. Below is a minimal reproducible example that demonstrates the issue. PlaybackModel.swift import SwiftUI @MainActor final class PlaybackModel: ObservableObject { @Published var beat: Int = 0 private var timer: Timer? func start() { timer?.invalidate() timer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { _ in Task { @MainActor in self.beat += 1 } } } func stop() { timer?.
0
0
23
1d