I have shared my app via testflight with a couple of friends, trying to test out some new sheet views. I have Xcode 14 installed and on my iOS 16 beta iPhone it works fine. On all other iPhone (using iOS 15) the sheet views are simply not showing up. Any ideas why? I'm trying to figure out if its beta related (bug) or something I'm missing. Here the code: @State private var showSheet: Bool = true .... MainView() .sheet(isPresented: $showSheet, content: { VStack { Text(Willkommen!) .font(.largeTitle) Text(Lass uns gemeinsam diese Insel entdecken) .foregroundColor(.secondary) VideoPlayer(player: AVPlayer(url: Bundle.main.url(forResource: video, withExtension: mp4)!)) .frame(height: 220) } })
Search results for
show when run
112,669 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have an iOS app with a QuickLook extension. I also added Apple Vision Pro in the target's General > Supported Destinations section. About one year ago, I was able to run the app on iPhone, iPad and Apple Vision Pro Simulators. Today I tried running it again on Apple Vision Pro with Xcode 26.0.1, but Xcode shows this error: Try again later. Appex bundle at ~/Library/Developer/CoreSimulator/Devices/F6B3CCA8-82FA-485F-A306-CF85FF589096/data/Library/Caches/com.apple.mobile.installd.staging/temp.PWLT59/extracted/problem.app/PlugIns/problemQuickLook.appex with id org.example.problem.problemQuickLook specifies a value (com.apple.quicklook.preview) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point. I tried again later a couple times, even after running Clean Build Folder Immediately, without any change. I can reproduce this with a fresh Xcode project to which I add a Quick Look Preview Ext
I have just updated my MacBook big Sur to Monterey. But after updating, whenever I tried to run GCC in the terminal it shows an invalid active developer path error. I am an absolute beginner, and can't resolve this error. Please help me to resolve this error. Log: gcc --version xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
I have os_log statements in my app. With my phone connected to the Mac, when I run the app through XCode, open Console app, those logs are shown. However, when I'm launching the app on its own, those logs don't appear in Console (phone still connected). Am I missing something very basic? Please help.
okay, the status: existing app, added new in-app purchase feature, (app previously had in-app features), regenerated the devel provis profile and built with it, logged out of itunes on the device, logged in to the in-app store using a fresh test account in the app (sandbox)the old in-app purchase tokens showed up in my debug code, but not the new onedo new in-app tokens need to be approved by apple first before developing with them?
It sounds like you're not testing the release build on the device — please see the section of the App Testing Guide that covers this. Regular debug builds you create by hitting the Run button in Xcode are different than Release builds. Since you're seeing the difference only through TestFlight, that's generally an indicator you're not testing the same build, and why I highlighted the App Testing Guide. As an example of why this can differ, we had a demo a few years ago at WWDC - https://developer.apple.com/videos/play/wwdc2015/413/?time=614 that showed a running route incorrectly going through the water of San Francisco Bay, but only sometimes, even though the point data was correct. Beyond following through on those suggestions, plus the ones in the linked video, you should break the problem down into a small Xcode project that still reproduces the problem. Frequently, you can figure out the issue by narrowing the code paths in use and focusing in on the relevant code like this.
Topic:
App & System Services
SubTopic:
Maps & Location
Tags:
command and its output launchctl list | grep Terminal 94502 0 com.apple.Terminal.2000What is the 2000 number referring to?94502 is Pid and0 is exit statusWhat does it mean if pid is empty _. _ 0 com.apple.Terminal.2000What is the difference between this and LaunchAgent/LaunchDaemonservices
Here is the solution on XCode Version 14.3.1. Go to Product->Destination->Manage Run Destinations... From this page you can customise 'Show run destination' section. Just change the ones you don't want to simulate at as 'never' and change the preferable one as 'always'. For your case, under the device section find your phone (it is already selected), change Show run destination as never and go to simulators find your desirable model and change its show run destination as always.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
In the first image, change Show run destination from Automatic to Always, and it should show in the dropdown.
Topic:
Developer Tools & Services
SubTopic:
Xcode
@marlonjames Thanks for showing your code. I did not expect setting delegate would change the behavior. May I ask you one question? When I test your code in iPad simulator from Xcode 12 while the simulator is not running, your code works as expected and the picker show Select. But if I run the testing app while the simulator is running, the picker does not show Select. Do you think this is just a problem of simulator?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Yes, that worked! But the array only shows it be populated after I run the function twice. Like, the first go through will print out two empty arrays and then when I tap the button to run the function again the array shows populated. When the print statement is within the do brackets, it shows it is filled, but once its after the task.resume(), it will only show a populated array after the second execution
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Hi, Yes it is like this. If i run the Bluetooth Service on the paired phone it does not show up as Health Device. So condition is running the app with BLE Cycling Power Service 1.1 on paired Phone -> Do NOT show up as Health Device on Watch Running App with BLE Cycling Power Service 1.1 on any other iOS Device -> DO show up as Health Device. Thanks
Topic:
App & System Services
SubTopic:
Networking
Tags:
When I run my app from XCode debugger, it will occassionally freeze on the launch screen. Presssing home button has no effect. Double-press on home button will show the running apps as expected and fixes the problem: the launch image will be replaced with my UI in that background view and bringing it back to foreground works fine. Watching the log, I can see that my app responds to applicationWillResignActive shortly after launch, and goes into the background, as if user had pressed home button. I can't see anything the device log that would explain it, although I don't really know what to look for. Any suggestions? I wonder, is it an issue interacting with the XCode debugger, and possibly nothing to worry about for deployed app? I have seen this only on an iPad, running iOS 10.2. The iPad is new, but I also made a lot of recent changes to code, so not sure of the relation.
when running Xcode in 10.14 beta 3 (or 2) if I right click on a project product and then choose Show in Finder nothing is displayed; this happens with both Xcode beta 10 and Xcode version 9.4.1
DS4macOS Compiled Things Partially and Run But it Has 30+ Yellow Warnings & Doesn't Show the Setting
Hi Apple and Swift friends. I'm not really a fluent Swift programmer (or any language) just knowledgable, I just a vague logic of what's going on. This is a gamepad controller remapper similar to DS4Windows on the PC and DSX on Steam gaming. On macOS Sonoma, it successfully compiled and connected the amazing Sony Playstation DualSense but because it has 33 yellow warning, the Setting doesn't show. It says something about outdated something and needs to be replaced by a newer framework.network. It also says it can't use self: It should look like these: What could be the syntax changes that won't produce the 30+ yellow warnings? The file can be had here: [https://github.com/marcowindt/ds4macos) God bless.
Topic:
Graphics & Games
SubTopic:
GameKit
Tags:
Game Controller
GameplayKit
Games
Graphics and Games