Search results for

show when run

112,688 results found

Post

Replies

Boosts

Views

Activity

Toolbar button not showing in Canvas
Hi, I have a toolbar and a share button on the left side. The button isn't showing up on the canvas, but does show when the app is run in the simulator or a device. Is this normal behavior or a bug? This is a test button so please forgive the print statement. Here's the code: { ToolbarItem(placement: .bottomBar) { Button(action: { print (Button Pressed!) } ){ Image(systemName: square.and.arrow.up) } } }
2
0
1.9k
Feb ’21
Basic app intent always showing error in Shortcuts app "The action could not run because an internal error occurred."
I have a very basic App Intent extension in my macOS app that does nothing than accepting two parameters, but running it in Shortcuts always produces the error The action “Compare” could not run because an internal error occurred.. What am I doing wrong? struct CompareIntent: AppIntent { static let title = LocalizedStringResource(intent.compare.title) static let description = IntentDescription(intent.compare.description) static let openAppWhenRun = true @Parameter(title: intent.compare.parameter.original) var original: String @Parameter(title: intent.compare.parameter.modified) var modified: String func perform() async throws -> some IntentResult { return .result() } }
8
0
1.2k
Dec ’24
Run Script runs when building for simulator but not when building for actual hardware
Hello, I have a custom script that builds a library needed for integrating Rust code into a project. The script works just fine when I build for the simulator. But, when I switch the target to an actual device (connected via USB) the script does not run. Here is what I have for the Run Script section: # Type a script or drag a script file from your workspace to insert its path. echo Running script... bash ${PROJECT_DIR}/bin/compile-library.sh shipping-rust-ffi $BUILDVARIANT echo ...completed Here is the relevant portion of the log when building for the simulator showing the script running: Here is the relevant portion of the log when building for hardware showing that phase being skipped: I have looked through all the Build Settings, Build Phases, and Build Rules sections with no luck. What I am doing is just a simple test app based upon this article: https://blog.mozilla.org/data/2022/01/31/this-week-in-glean-building-and-deploying-a-rust-library-on-ios/
2
0
2.1k
Nov ’22
catextlayer doesn't show
Hi all, I'm trying to make an animated button which includes 3 layers where one of them is composed of CATextLayer. the CATextLayer is showing and animating fine on Iphone 11 OS 13.0 but doesn't show at all on iphone 7 OS 11.0. what can be the cause to that?
0
0
275
Nov ’20
unknown warning showing up
ld: warning: dylib (/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/libstdc++.dylib) was built for newer macOS version (11.3) than being linked (11.0) this warning is showing up in the terminal every time I run C++ code in it using g++ compiler. how to get rid of it ? I have tried to reinstall Xcode- command line tools but it doesn't seem to solve the problem.
1
0
808
Nov ’21