Search results for

“show when run”

115,119 results found

Post

Replies

Boosts

Views

Activity

Xcode Simulator Showing Only "Generic iOS Device"
Hi. I can't seem to run the simulator for the app I'm creating. It only shows, Generic iOS Device. I clicked on said text and then I clicked, Add Additional Simulators. It showed me a list of all the Apple devices available for a simulator. I selected the iPhone 11 Pro, but I can't do anything with it? Can I add the simulator, or am I completely doing something wrong here? To summarize, how do I get a simulator in Xcode 11 when it only shows, Generic iOS Device. Thanks.
3
0
2.2k
Jun ’20
Running PIVToken example [SOLVED]
I have downloaded PIVToken example from here https://developer.apple.com/library/content/samplecode/PIVToken/Introduction/Intro.html and trying to run it. I have put several breakpoints in the source code, but when I run it from XCode, none of them gets hit. It doesn't look like smartcard extension is properly registered or maybe there's some other problem.I have YubiKey NEO PIV smart card.I disabled built-in PIV token as mentioned in the README.md and restarted my machine.sudo defaults write /Library/Preferences/com.apple.security.smartcard DisabledTokens -array com.apple.CryptoTokenKit.pivtokenBut when I insert YubiKey NEO, I still get SmartCard Pairing popup:Do you want to connect the inserted SmartCard with the current user?Card Identity: Certificate for digital signature (Test)| Do not show again | | Cancel | | Pair |The README also mentions that the new extension will be automatically installed when the hosting application is installed. Does it mean I need to install the appli
4
0
3.7k
Sep ’16
Reply to MacOS Big Sur Lagging
I will never buy an Apple product again after this sht show. It takes 30 seconds to load a page on safari with nothing else running! Live streaming, forget it, I’m screwed for working at home now. Late 2015 was running great before this garbage.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’21
System volume control UI not showing
Hi, I have recently created a simple sound app. When I run it on my iPhone, I noticed when I press on the volume up/down button, the system volume control does not appear. I don’t think is due to my code since is a system UI. Is there any settings in xcode that I need to set to get the system volume control to show?
0
0
467
Aug ’20
UIUserNotificationAction not showing on device
Hello,I got a very strange problem: UIUserNotifcationActions for my app do not show up on devices but show/work on Simulator.Setup: UIMutableUserNotificationAction* replyToChat = [UIMutableUserNotificationAction new]; replyToChat.activationMode = UIUserNotificationActivationModeForeground; replyToChat.title = @Reply; replyToChat.identifier = @replyToChat; replyToChat.destructive = NO; replyToChat.authenticationRequired = YES; UIMutableUserNotificationAction* ignoreChat = [UIMutableUserNotificationAction new]; replyToChat.activationMode = UIUserNotificationActivationModeBackground; ignoreChat.title = @Ignore; ignoreChat.identifier = @ignoreChat; ignoreChat.destructive = YES; ignoreChat.authenticationRequired = NO; UIMutableUserNotificationCategory* catChat = [[UIMutableUserNotificationCategory alloc] init]; catChat.identifier = @myChat; [catChat setActions:@[replyToChat, ignoreChat] forContext:UIUserNotificationActionContextDefault]; NSMutableSet *categories = [NSMutableSet setWithObject:catC
2
0
1.2k
May ’16
How to run SwiftUI Code in Playgrounds on iPad?
Tried to run the following code in Playgrounds as shown in this session: - https://developer.apple.com/videos/play/wwdc2020/10643/ import SwiftUI import PlaygroundSupport struct ProgressView: View { var body: some View { Text(Hello World) } } PlaygroundPage.current.setLiveView(ProgressView()) Instead of Showing a Preview the following error message is displayed: There was a problem running this playground. Check the code and try again
3
0
895
Oct ’20
Xcode showing incorrect errors
Xcode has started to show numerous errors within my project. Everytime I build my app the number of errors changes. It's always between 50 and 70 errors that cause the build to fail. The errors are always 1 of these 2. Cannot convert return expression of type '()' to return type 'UICollectionReusableView' or Cannot convert return expression of type '()' to return type 'UICollectionViewCell?' Whenever I click an error it opens up that file, shows no error in code and then the error in the issue navigation for that file disappears. In addition, the errors are always related to collection views, yet Xcode is showing errors for simple extension files or enum files, which have nothing to do with collections. I have cleaned the project build folder, removed the derived data, restarted Xcode, restarted the laptop, even reinstalled Xcode yet I still get the errors
3
0
797
Feb ’23
'Automatically Show Web Inspector for JSContexts' doesn't work
I'm working on a native Cocoa app that has a few WKWebViews.When the app is running, I can open the Web Inspector by clickingDevelop > My Computer > Document.titleHowever when I re-run the app from Xcode, the Web Inspector disappears.I'd expect that the following toggle in Safari would do what it says, that is, open a new inspector as soon as my app runs again. However this doesn't work.Develop > My Computer > Automatically Show Web Inspector for JSContextsSeems like a bug. Is there anything I can do to automatically get a Web Inspector on each re-run?
2
0
4.4k
May ’19
CoreSpotlight showing past INAddTasksIntent
I have implemented INAddTasksIntent in my app, so that I can say Add buy peanut butter to MyApp, and it works. Then after that I added CoreSpotlight support.After the above two, I noticed that, now searching in spotlight shows me actions that I have done before, for example, if I have added a task via siri called Buy peanut butter, to my app, then searching by peanut in spotlight, will show me the following two:1. Buy peanut butter2. Add Buy peanut butterThe first one is what I wanted, second one, I have no use, because I rarely readd the same task again via siri.I am not sure what this second thing is called, I have tried googling but can't find anything. I want to disable it showing the second thing, is it possible?
0
0
1.1k
Mar ’19
Xcode Simulator Showing Only "Generic iOS Device"
Hi. I can't seem to run the simulator for the app I'm creating. It only shows, Generic iOS Device. I clicked on said text and then I clicked, Add Additional Simulators. It showed me a list of all the Apple devices available for a simulator. I selected the iPhone 11 Pro, but I can't do anything with it? Can I add the simulator, or am I completely doing something wrong here? To summarize, how do I get a simulator in Xcode 11 when it only shows, Generic iOS Device. Thanks.
Replies
3
Boosts
0
Views
2.2k
Activity
Jun ’20
Running PIVToken example [SOLVED]
I have downloaded PIVToken example from here https://developer.apple.com/library/content/samplecode/PIVToken/Introduction/Intro.html and trying to run it. I have put several breakpoints in the source code, but when I run it from XCode, none of them gets hit. It doesn't look like smartcard extension is properly registered or maybe there's some other problem.I have YubiKey NEO PIV smart card.I disabled built-in PIV token as mentioned in the README.md and restarted my machine.sudo defaults write /Library/Preferences/com.apple.security.smartcard DisabledTokens -array com.apple.CryptoTokenKit.pivtokenBut when I insert YubiKey NEO, I still get SmartCard Pairing popup:Do you want to connect the inserted SmartCard with the current user?Card Identity: Certificate for digital signature (Test)| Do not show again | | Cancel | | Pair |The README also mentions that the new extension will be automatically installed when the hosting application is installed. Does it mean I need to install the appli
Replies
4
Boosts
0
Views
3.7k
Activity
Sep ’16
Reply to MacOS Big Sur Lagging
I will never buy an Apple product again after this sht show. It takes 30 seconds to load a page on safari with nothing else running! Live streaming, forget it, I’m screwed for working at home now. Late 2015 was running great before this garbage.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’21
System volume control UI not showing
Hi, I have recently created a simple sound app. When I run it on my iPhone, I noticed when I press on the volume up/down button, the system volume control does not appear. I don’t think is due to my code since is a system UI. Is there any settings in xcode that I need to set to get the system volume control to show?
Replies
0
Boosts
0
Views
467
Activity
Aug ’20
UIUserNotificationAction not showing on device
Hello,I got a very strange problem: UIUserNotifcationActions for my app do not show up on devices but show/work on Simulator.Setup: UIMutableUserNotificationAction* replyToChat = [UIMutableUserNotificationAction new]; replyToChat.activationMode = UIUserNotificationActivationModeForeground; replyToChat.title = @Reply; replyToChat.identifier = @replyToChat; replyToChat.destructive = NO; replyToChat.authenticationRequired = YES; UIMutableUserNotificationAction* ignoreChat = [UIMutableUserNotificationAction new]; replyToChat.activationMode = UIUserNotificationActivationModeBackground; ignoreChat.title = @Ignore; ignoreChat.identifier = @ignoreChat; ignoreChat.destructive = YES; ignoreChat.authenticationRequired = NO; UIMutableUserNotificationCategory* catChat = [[UIMutableUserNotificationCategory alloc] init]; catChat.identifier = @myChat; [catChat setActions:@[replyToChat, ignoreChat] forContext:UIUserNotificationActionContextDefault]; NSMutableSet *categories = [NSMutableSet setWithObject:catC
Replies
2
Boosts
0
Views
1.2k
Activity
May ’16
How do I show microseconds of a date object?
How do I get the microseconds of an object of type Date? I'm open to any suggestions. I'm not able to set the dateFormat property of DateFormatter to be able to show microseconds.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
3
Boosts
0
Views
5.0k
Activity
Dec ’17
Reply to Xcode 15 (RC) - Crash settings app on simulators(iPhone 15 Pro & 15 PM)
In case this helps anyone, I was able to get Settings in the iPhone 14 Pro simulator with iOS 17 to work, just not the iPhone 15 Pro. I just needed to select Manage Run Destinations and switch the iPhone 14 Pro's Show Run Destination from Automatic to Always.
Replies
Boosts
Views
Activity
Sep ’23
devices do not show in iTunes
After upgrading to macOS 10.13 Beta (17A315i) my registered devices (iPhone 7 Plus, and iPod Touch) do not show in iTues when they are connected.
Replies
4
Boosts
0
Views
998
Activity
Aug ’17
How to run SwiftUI Code in Playgrounds on iPad?
Tried to run the following code in Playgrounds as shown in this session: - https://developer.apple.com/videos/play/wwdc2020/10643/ import SwiftUI import PlaygroundSupport struct ProgressView: View { var body: some View { Text(Hello World) } } PlaygroundPage.current.setLiveView(ProgressView()) Instead of Showing a Preview the following error message is displayed: There was a problem running this playground. Check the code and try again
Replies
3
Boosts
0
Views
895
Activity
Oct ’20
Xcode showing incorrect errors
Xcode has started to show numerous errors within my project. Everytime I build my app the number of errors changes. It's always between 50 and 70 errors that cause the build to fail. The errors are always 1 of these 2. Cannot convert return expression of type '()' to return type 'UICollectionReusableView' or Cannot convert return expression of type '()' to return type 'UICollectionViewCell?' Whenever I click an error it opens up that file, shows no error in code and then the error in the issue navigation for that file disappears. In addition, the errors are always related to collection views, yet Xcode is showing errors for simple extension files or enum files, which have nothing to do with collections. I have cleaned the project build folder, removed the derived data, restarted Xcode, restarted the laptop, even reinstalled Xcode yet I still get the errors
Replies
3
Boosts
0
Views
797
Activity
Feb ’23
Reply to why doesn't my simulator show the right color?
Do you get correct result on device ?What are the yellow color values (red, blue, green) as defined in XCode ?When you run the simulator, use Digital Color meter to see the color you have.Explain also what you mean :But it doesn't show up this way when i start the simulator.What does it show exactly ?And please report.
Replies
Boosts
Views
Activity
Jun ’19
Reply to C++ Default Project - Why Can't I just Compile and Run "Hello World" without a Certificate
Just to clarify I'm looking for a link in Xcode doc or somewhere that shows the workflow for [1] starting with one of the coding examples [2] shows how to do the certificate/provisioning stuff to the point where [3] I can click the build/run button in Xcode and see a string print --> Hello World
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’22
'Automatically Show Web Inspector for JSContexts' doesn't work
I'm working on a native Cocoa app that has a few WKWebViews.When the app is running, I can open the Web Inspector by clickingDevelop > My Computer > Document.titleHowever when I re-run the app from Xcode, the Web Inspector disappears.I'd expect that the following toggle in Safari would do what it says, that is, open a new inspector as soon as my app runs again. However this doesn't work.Develop > My Computer > Automatically Show Web Inspector for JSContextsSeems like a bug. Is there anything I can do to automatically get a Web Inspector on each re-run?
Replies
2
Boosts
0
Views
4.4k
Activity
May ’19
CoreSpotlight showing past INAddTasksIntent
I have implemented INAddTasksIntent in my app, so that I can say Add buy peanut butter to MyApp, and it works. Then after that I added CoreSpotlight support.After the above two, I noticed that, now searching in spotlight shows me actions that I have done before, for example, if I have added a task via siri called Buy peanut butter, to my app, then searching by peanut in spotlight, will show me the following two:1. Buy peanut butter2. Add Buy peanut butterThe first one is what I wanted, second one, I have no use, because I rarely readd the same task again via siri.I am not sure what this second thing is called, I have tried googling but can't find anything. I want to disable it showing the second thing, is it possible?
Replies
0
Boosts
0
Views
1.1k
Activity
Mar ’19
Reply to NSUserNotification + Screen Sharing.app vs closed MacBook : 0 - 1?
How can it be closed but running? The only way I know to do that is in closed clamshell mode, but then notifications would obviously be displayed. And what is the point of displaying notifications if there is not screen to show them on?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Mar ’20