Search results for

“show when run”

117,510 results found

Post

Replies

Boosts

Views

Activity

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
Show keyboard on button action
How to show the keyboard for textfield on ToolbarItem(placement: .keyboard)? I have a button and it's action I want is to show the keyboard. On top of which is ToolbarItem(placement: .keyboard) { HStack{ Button(...) TextField(, text: $bindingText) .textFieldStyle(RoundedBorderTextFieldStyle()) .keyboardType(.numberPad) .multilineTextAlignment(.trailing) } } I know keyboard shows with a textfield focused. How though to show the keyboard for ToolbarItem(placement: .keyboard) Textfield if can't show it without showing the keyboard?
2
0
846
Mar ’24
Showing UIImagePickerController in portrait
I ran into this issue in my app and was able to reproduce it in a sample app. This is an iOS 8 only app that supports all orientations and allows you to take a picture to upload. If I invoke the camera in portrait mode it's all good, everything works fine. If the app is in landscape and I invoke the camera, it shows up rather very weird-looking, pointed to the wrong orientation, missing the cancel button and taking only half the screen. I'm using UIImagePickerController. As far as I can tell, Apple's Contacts app is using that too(at least from the visual look) and seems to work fine.Here's how I invoke the camera:UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera; imagePickerController.delegate = self; imagePickerController.modalPresentationStyle = UIModalPresentationFullScreen; [self presentViewController:imagePickerController animated:YES completion:nil]; return;self in this case is a p
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
863
Jul ’15
Showing property in tablecell
I am following a course and am trying so test myself.I have a model and I give values to properties from a json-file.(If Im showing code wrong please tell me how I shoud do it)This works:func updateUIWithWeatherData() { cityLabel.text = weatherDataModel.city temperatureLabel.text = String(weatherDataModel.temperature) weatherIcon.image = UIImage(named: weatherDataModel.weatherIconName) }But here it doesn't. Test shows but not the city.func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = UITableViewCell(style: .default, reuseIdentifier: Cell) cell.textLabel?.text = weatherDataModel.city //cell.textLabel?.text = test return cell }
32
0
3.9k
Jun ’19
Reply to TVJS debugging?
I was having the same problem. Safari 9.0.1 and Yosemite 10.10.5. Simulator was running fine and the Develop menu actually had Simulator Item available but it showed the greyed out No Inspectable Applications in the menu. I exited (cmd+q) safari, xcode, and the simulator. I started up Safari, got Xcode running and ran the simulator (in that order) and my app showed up in the Safari>Develop>Simulator menu.Thanks for the help peeps!
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
App not showing
Dear Apple Staff,My apps, Mitos.is: The Game, Worm.is: The Game and Strike.is: The Game (bundles: com.freakinware.sporewar, com.freakinware.wormis, com.freakinware.strikeis) are not showing in the app selector, why?Thank you much
4
0
599
Sep ’16
Reply to iPhone won't connect to Xcode over WiFi
>The book walks me through the part where I can allow Xcode to connect to the iPhone via WiFi, just checking Connect via Network.What did the person you bought that outdated book from have to say when you asked them to $upport their product? Might as well get some of what you paid for, right? Does that book even know about Xcode 11.4.1? Pls. don't expect devForums to act as it's defacto support channel.Do you have a paid Developer Program account or are you working with Xcode's free provisioning? Just curious...In the mean time, via Xcode 11.4.1:Disconnect your device and shut it off, then restart your (real mac, not a VM etc.) computer.Open Xcode with the project you've already been able to build to your device.Choose Window > Devices and Simulators, then in the window that appears, click Devices.Turn your device on, cable it to your computer and confirm Wi-Fi is on, same network for both.In the left column (Devices and Simulators), select your device, and in the detail area, confirm that 'Show as run
May ’20
Reply to iPhone only app
All iPhone apps can run on iPads. The iPad has sort of an iPhone emulation mode where it shows the app blown up to iPad size. Your app must be able to run in this mode on an iPad or it may be rejected.
Replies
Boosts
Views
Activity
Apr ’16
Reply to Launch current iOS App on Mac Environment
This is definitely not correct. All Macs that run Big Sur will run iOS Apps with Big Sur natively. I'm very curious. What source lets you say definitely? Please show us the source.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’20
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
Sometimes iMessage Extension App shows empty
When i run iMessage Extension from XCode, it works well. but, when i open our app in TestFlight or App Store, It sometimes shows nothing. what is the problem?
Replies
0
Boosts
0
Views
600
Activity
Dec ’22
Show keyboard on button action
How to show the keyboard for textfield on ToolbarItem(placement: .keyboard)? I have a button and it's action I want is to show the keyboard. On top of which is ToolbarItem(placement: .keyboard) { HStack{ Button(...) TextField(, text: $bindingText) .textFieldStyle(RoundedBorderTextFieldStyle()) .keyboardType(.numberPad) .multilineTextAlignment(.trailing) } } I know keyboard shows with a textfield focused. How though to show the keyboard for ToolbarItem(placement: .keyboard) Textfield if can't show it without showing the keyboard?
Replies
2
Boosts
0
Views
846
Activity
Mar ’24
Showing UIImagePickerController in portrait
I ran into this issue in my app and was able to reproduce it in a sample app. This is an iOS 8 only app that supports all orientations and allows you to take a picture to upload. If I invoke the camera in portrait mode it's all good, everything works fine. If the app is in landscape and I invoke the camera, it shows up rather very weird-looking, pointed to the wrong orientation, missing the cancel button and taking only half the screen. I'm using UIImagePickerController. As far as I can tell, Apple's Contacts app is using that too(at least from the visual look) and seems to work fine.Here's how I invoke the camera:UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera; imagePickerController.delegate = self; imagePickerController.modalPresentationStyle = UIModalPresentationFullScreen; [self presentViewController:imagePickerController animated:YES completion:nil]; return;self in this case is a p
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
863
Activity
Jul ’15
show slide bar
I'm on a training course and need a slide bar to show entire area. Help? I'm using Firefox since safari keeps dropping my internet.
Replies
0
Boosts
0
Views
262
Activity
Oct ’20
Xcode always show 0 code coverage
i've a problem about unit test and code coverage the problem is when i run unit test on xcode 15.2 code coverage and execuable line is show normally but when i upgrade to xcode 16 code coverage and executable line is always show 0 how can i fix that
Replies
2
Boosts
0
Views
736
Activity
Jan ’25
Showing property in tablecell
I am following a course and am trying so test myself.I have a model and I give values to properties from a json-file.(If Im showing code wrong please tell me how I shoud do it)This works:func updateUIWithWeatherData() { cityLabel.text = weatherDataModel.city temperatureLabel.text = String(weatherDataModel.temperature) weatherIcon.image = UIImage(named: weatherDataModel.weatherIconName) }But here it doesn't. Test shows but not the city.func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = UITableViewCell(style: .default, reuseIdentifier: Cell) cell.textLabel?.text = weatherDataModel.city //cell.textLabel?.text = test return cell }
Replies
32
Boosts
0
Views
3.9k
Activity
Jun ’19
Reply to TVJS debugging?
I was having the same problem. Safari 9.0.1 and Yosemite 10.10.5. Simulator was running fine and the Develop menu actually had Simulator Item available but it showed the greyed out No Inspectable Applications in the menu. I exited (cmd+q) safari, xcode, and the simulator. I started up Safari, got Xcode running and ran the simulator (in that order) and my app showed up in the Safari>Develop>Simulator menu.Thanks for the help peeps!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
App not showing
Dear Apple Staff,My apps, Mitos.is: The Game, Worm.is: The Game and Strike.is: The Game (bundles: com.freakinware.sporewar, com.freakinware.wormis, com.freakinware.strikeis) are not showing in the app selector, why?Thank you much
Replies
4
Boosts
0
Views
599
Activity
Sep ’16
How do I get my adbanner to show
I have created a simple Sprite kit game in swift and added an adbanner in my gameviewcontroller but it won't show when I load my game scene it's like it's behind or hidden.
Replies
2
Boosts
0
Views
403
Activity
Dec ’15
Reply to iPhone won't connect to Xcode over WiFi
>The book walks me through the part where I can allow Xcode to connect to the iPhone via WiFi, just checking Connect via Network.What did the person you bought that outdated book from have to say when you asked them to $upport their product? Might as well get some of what you paid for, right? Does that book even know about Xcode 11.4.1? Pls. don't expect devForums to act as it's defacto support channel.Do you have a paid Developer Program account or are you working with Xcode's free provisioning? Just curious...In the mean time, via Xcode 11.4.1:Disconnect your device and shut it off, then restart your (real mac, not a VM etc.) computer.Open Xcode with the project you've already been able to build to your device.Choose Window > Devices and Simulators, then in the window that appears, click Devices.Turn your device on, cable it to your computer and confirm Wi-Fi is on, same network for both.In the left column (Devices and Simulators), select your device, and in the detail area, confirm that 'Show as run
Replies
Boosts
Views
Activity
May ’20
Two Apple TV Apps running concurrently
Is there a way to create an Apple TV App that runs on top of all other Apple TV apps? This application would run in the corner of the screen to show workouts while a TV show is playing or other application is running.
Replies
0
Boosts
0
Views
398
Activity
Sep ’17
Reply to Is AVRouteDetector broken in iOS 13.6 ?
Thanks for your reply. The route picker presented by the Control Center shows only the iPhone device running the app.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’20