Search results for

“show when run”

117,510 results found

Post

Replies

Boosts

Views

Activity

How to run macOSVirtualMachineSampleApp?
Hello, I am very new to Xcode and trying to build and run a simple project that installs and runs a VM. The sample code is provided by apple at https://developer.apple.com/documentation/virtualization/running_macos_in_a_virtual_machine_on_apple_silicon_macs The code has two apps. One that installs the bundle and another that runs it. I am able to create the bundle but don't know how to run the app macOSVirtualMachineSampleApp. Every time I start run I get the following. create VM.bundle: the base directory already exists. Which means I am running InstallationTool app every time. How do I run the macOSVirtualMachineSampleApp? I can see that in products folder both apps have been created but I only see Installationtool command line tool when I go to that location.
1
0
3.3k
Apr ’22
Watch Complications (WidgetKit) do not show anything on device
I’m trying to create complications für the Watch using the new WidgetKit. While the complications do show up fine in the preview in Xcode and also in the Simulator, on a real device the complications do never shown anything. The complications are listed and can be selected in the watch face settings, but the preview is always black, and when added to a watch face, it shows nothing. I can tap on this „nothing“ and the App launches, so the complication is actually there. But it doesn’t show anything. This is also true for the Watch App on the iPhone, which lets me add the complications to a watch face, but it also shows nothing. But in the Simulator everything works as expected, the complications show their content just fine. So it looks like the code is fine. The iPhone runs the iOS 16.1, and the watch runs watchOS 9.1 (right now the latest public releases) Does anyone having the same issue and maybe a solution or a hint, what exactly I should chec
4
0
3.1k
Nov ’22
Show a badge on a Rectangle
Hello guys, I want to show a badge on an object in SwiftUI, precisely I want the rectangle to show the badge on it every time I press it. I did some tests, but it isn't working. Can someone help me to build this? Here’s my code: import SwiftUI import PlaygroundSupport struct ContentView: View { var body: some View { Button(action: { badge(9) }, label: { Rectangle() .frame(width: 180, height: 200) .foregroundColor(.blue) }) } } PlaygroundPage.current.setLiveView(ContentView()) Thanks a lot.
2
0
2.3k
Feb ’22
Reply to High Sierra asking for ‘disk password’ and won’t accept any
My drive is already converted to apfs... I would like to know if I can still recover data from my drive. I wasn't able to do croaker's method before because I couldn't find the directory, but during the decryption process, I was able to locate it. After the installation proceeded, when I try to restart, my mbp now shows a circle with slash during startup. My drive is ok when I run first aid. I was asked to run diagnostics and showed that my drive has no issues..
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’17
App Runs in Simulator, Won't Run on Phone
I had the app running on the phone (5S with ios 9 on it).Today I added CloudKit code to simply save a few records to the db. That will not run in the Simulator. I did configure my iCloud creds and that made it stop saying I needed auth, but then it put up an error that access was denied based on the user.Running on the phone, it never even loads. Then the phone is basically hung. I try to term the app but it's not running. If I disconnect and reconnect I can start the cycle again.The devices screen says the phone is 'busy validating' the application.
1
0
266
Jul ’15
Reply to Getting a message I dont understand
1. It's an IOS App ? XCode 9 ?No sorry should have stated. OSx is 10.10.5 Xcode is 6.4 target is iOS 5.12. You have create 2 scenes with their UIViewControllers- the first came with the creation of the storyboard.-> I put a label on each View, respectively saying First View and Second ViewYes Mine are labelled Run and EndRun. I ensured that the original scene was checked as the initial View Controller.I tested at this point and the scenes showed as expected.3. Created 2 buttons in the first view- one calle Run,- the second StopYes except second is called Cancel as its on the first scene. Giving the user an option to change mind about running the app.I did not connect them as I had not created the Action yet.4. You declared 2 subclasses of UIViewController,I call them RunViewController and EndRunViewControllerI do not create an associated xib file.Yes, I was expecing to have to need one for Run and EndRun scenes. The Run will run an animation. 5
Oct ’17
Why are some OS assets not showing at retina resolution?
In one of my projects, many built-in assets, such as the clear button in UITextField or UISearchBar objects, the UITableViewIndexSearch image, and the activity indicator in the status bar set by UIApplication.sharedApplication().networkActivityIndicatorVisible don't show at the correct resolution. I've noticed this on iPhone 6 and iPhone 6 Plus devices running iOS 8.4, as well as all of the simulators running iOS 8.4. I have other projects that don't show this issue.Screenshots are here: http://imgur.com/a/7TMlE
1
0
302
Jul ’15
SPM show-dependencies broken
I have a Package.swift // swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: SharedUI, defaultLocalization: en_US, platforms: [.iOS(.v16)], products: [ .library( name: SharedUI, targets: [ AppTheme, ] ), ], dependencies: [ .package(url: https://github.com/apple/swift-markdown.git, 0.2.0..<0.3.0), ], targets: [ .target( name: AppTheme, dependencies: [ .product(name: Markdown, package: swift-markdown), ], path: AppTheme ), ] ) Run swift package show-dependencies shows error yuantong-macbookpro2:Downloads yuantong$ swift package show-dependencies Fetching https://github.com/apple/swift-markdown.git from cache Fetched https://github.com/apple/swift-markdown.git (0.67s) error: Couldn’t get the list of tags: fatal: cannot use bare repository '/Users/yuantong/Downloads/.build/repositories/swift-markdown-b692ce3c' (safe.bareRepository is 'explicit') which
8
0
2.5k
Feb ’24
Reply to [Xcode Instruments][Allocations] Chart not showing any data
For anyone who sees this in the future and has the same problem, I recently found out this only applies to running on simulator for our case. If you run it on the actual physical device, the logs are coming in just fine and the chart will show correctly.
Replies
Boosts
Views
Activity
Nov ’24
Reply to Hiding Xcode Console @ Run Time
Is this what you are looking for? menu → Xcode → Settings → Behaviors → Running → Generates output → uncheck Show debugger There’s a similar setting under Running → Starts too, though it seems to be unchecked already by default.
Replies
Boosts
Views
Activity
Jan ’25
How to run macOSVirtualMachineSampleApp?
Hello, I am very new to Xcode and trying to build and run a simple project that installs and runs a VM. The sample code is provided by apple at https://developer.apple.com/documentation/virtualization/running_macos_in_a_virtual_machine_on_apple_silicon_macs The code has two apps. One that installs the bundle and another that runs it. I am able to create the bundle but don't know how to run the app macOSVirtualMachineSampleApp. Every time I start run I get the following. create VM.bundle: the base directory already exists. Which means I am running InstallationTool app every time. How do I run the macOSVirtualMachineSampleApp? I can see that in products folder both apps have been created but I only see Installationtool command line tool when I go to that location.
Replies
1
Boosts
0
Views
3.3k
Activity
Apr ’22
Watch Complications (WidgetKit) do not show anything on device
I’m trying to create complications für the Watch using the new WidgetKit. While the complications do show up fine in the preview in Xcode and also in the Simulator, on a real device the complications do never shown anything. The complications are listed and can be selected in the watch face settings, but the preview is always black, and when added to a watch face, it shows nothing. I can tap on this „nothing“ and the App launches, so the complication is actually there. But it doesn’t show anything. This is also true for the Watch App on the iPhone, which lets me add the complications to a watch face, but it also shows nothing. But in the Simulator everything works as expected, the complications show their content just fine. So it looks like the code is fine. The iPhone runs the iOS 16.1, and the watch runs watchOS 9.1 (right now the latest public releases) Does anyone having the same issue and maybe a solution or a hint, what exactly I should chec
Replies
4
Boosts
0
Views
3.1k
Activity
Nov ’22
Archive not showing
Hi, I have recently upgraded to Xcode 12.5 and any build which I archive is saved in the respective folder but it is not showing in the organiser.
Replies
0
Boosts
0
Views
399
Activity
May ’21
Show a badge on a Rectangle
Hello guys, I want to show a badge on an object in SwiftUI, precisely I want the rectangle to show the badge on it every time I press it. I did some tests, but it isn't working. Can someone help me to build this? Here’s my code: import SwiftUI import PlaygroundSupport struct ContentView: View { var body: some View { Button(action: { badge(9) }, label: { Rectangle() .frame(width: 180, height: 200) .foregroundColor(.blue) }) } } PlaygroundPage.current.setLiveView(ContentView()) Thanks a lot.
Replies
2
Boosts
0
Views
2.3k
Activity
Feb ’22
Reply to Unable to attach to pid error
Also, on the device you're running the build on, make sure you've pressed Trust this Device under General -> Device Management -> [Your App]. Then re-run your build via Xcode and your stickers should show up.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’16
osacompile -u fails to show startup screen
When I build an applet on the command line using osacompile -x -u -o foo.app foo.scpt. the resulting applet doesn't show the startup screen, it only shows the Quit/Run default window. If I export the same script from the AppleScript Editor, it shows the correct startup screen. Do I need to set any additional options on the osacompile command?
Replies
1
Boosts
0
Views
577
Activity
Sep ’18
Reply to High Sierra asking for ‘disk password’ and won’t accept any
My drive is already converted to apfs... I would like to know if I can still recover data from my drive. I wasn't able to do croaker's method before because I couldn't find the directory, but during the decryption process, I was able to locate it. After the installation proceeded, when I try to restart, my mbp now shows a circle with slash during startup. My drive is ok when I run first aid. I was asked to run diagnostics and showed that my drive has no issues..
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’17
App Runs in Simulator, Won't Run on Phone
I had the app running on the phone (5S with ios 9 on it).Today I added CloudKit code to simply save a few records to the db. That will not run in the Simulator. I did configure my iCloud creds and that made it stop saying I needed auth, but then it put up an error that access was denied based on the user.Running on the phone, it never even loads. Then the phone is basically hung. I try to term the app but it's not running. If I disconnect and reconnect I can start the cycle again.The devices screen says the phone is 'busy validating' the application.
Replies
1
Boosts
0
Views
266
Activity
Jul ’15
Reply to Getting a message I dont understand
1. It's an IOS App ? XCode 9 ?No sorry should have stated. OSx is 10.10.5 Xcode is 6.4 target is iOS 5.12. You have create 2 scenes with their UIViewControllers- the first came with the creation of the storyboard.-> I put a label on each View, respectively saying First View and Second ViewYes Mine are labelled Run and EndRun. I ensured that the original scene was checked as the initial View Controller.I tested at this point and the scenes showed as expected.3. Created 2 buttons in the first view- one calle Run,- the second StopYes except second is called Cancel as its on the first scene. Giving the user an option to change mind about running the app.I did not connect them as I had not created the Action yet.4. You declared 2 subclasses of UIViewController,I call them RunViewController and EndRunViewControllerI do not create an associated xib file.Yes, I was expecing to have to need one for Run and EndRun scenes. The Run will run an animation. 5
Replies
Boosts
Views
Activity
Oct ’17
Why are some OS assets not showing at retina resolution?
In one of my projects, many built-in assets, such as the clear button in UITextField or UISearchBar objects, the UITableViewIndexSearch image, and the activity indicator in the status bar set by UIApplication.sharedApplication().networkActivityIndicatorVisible don't show at the correct resolution. I've noticed this on iPhone 6 and iPhone 6 Plus devices running iOS 8.4, as well as all of the simulators running iOS 8.4. I have other projects that don't show this issue.Screenshots are here: http://imgur.com/a/7TMlE
Replies
1
Boosts
0
Views
302
Activity
Jul ’15
Reply to 'View' does not render when 'onAppear' changes the value in 'View Mode'l
Can you show enough code for examining what's happening? Simplified full code which builds and runs would be welcome.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’21
Reply to MapKit super slow loading tiles stored on device
I tried pausing the runtime when waiting the ~38 seconds shows it is running an internal Metal command on the Main Thread
Replies
Boosts
Views
Activity
Dec ’24
SPM show-dependencies broken
I have a Package.swift // swift-tools-version: 5.9 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: SharedUI, defaultLocalization: en_US, platforms: [.iOS(.v16)], products: [ .library( name: SharedUI, targets: [ AppTheme, ] ), ], dependencies: [ .package(url: https://github.com/apple/swift-markdown.git, 0.2.0..<0.3.0), ], targets: [ .target( name: AppTheme, dependencies: [ .product(name: Markdown, package: swift-markdown), ], path: AppTheme ), ] ) Run swift package show-dependencies shows error yuantong-macbookpro2:Downloads yuantong$ swift package show-dependencies Fetching https://github.com/apple/swift-markdown.git from cache Fetched https://github.com/apple/swift-markdown.git (0.67s) error: Couldn’t get the list of tags: fatal: cannot use bare repository '/Users/yuantong/Downloads/.build/repositories/swift-markdown-b692ce3c' (safe.bareRepository is 'explicit') which
Replies
8
Boosts
0
Views
2.5k
Activity
Feb ’24