Search results for

“file uri scheme”

85,536 results found

Post

Replies

Boosts

Views

Activity

Change Sign In With Apple button style based on current color scheme
I'm having some issues with SwiftUI's SignInWithAppleButton's signInWithAppleButtonStyle. I am trying to change the color of the button based on the user's current scheme or if it changes. This is iOS 14 and SwiftUI: @Environment(.colorScheme) var currentScheme @State var appleButtonWhite = false VStack{ SignInWithAppleButton( tttttttt.signUp, ttttttttonRequest: { request inttttttt ttttttttttrequest.requestedScopes = [.fullName, .email] tttttttt}, ttttttttonCompletion: { result in ttttttttttswitch result { ttttttttttcase .success (let authResults): ttttttttttttprint(Authorization successful.) ttt ttttttttttcase .failure (let error): ttttttttttttprint(Authorization failed: + error.localizedDescription) tttttttttt} tttttttt} tttttt) tttttt.frame(minWidth: 0, maxWidth: .infinity) tttttt.signInWithAppleButtonStyle(appleButtonWhite ? .white : .black) } .onChange(of: currentScheme, perform: { (scheme) in ttttif scheme == .light tttt{ ttttttappleButtonWhite = false tttt} ttttelse tttt{ tt
2
0
2.4k
Dec ’20
Reply to Using CoreData entity in SwiftUI view
Thank you, so now I have something like this var meeting: Meeting But the PreviewProvider now says it is missing an argument for the parameter 'meetings'. How do I initialize some dummy data for the preview if the data is in CoreData? I have 'meetingName' of type string, 'meetingLink' of type URI, and 'meetingTime' of type Date. Thank you!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to Is it possible to run Xcode 7 UI Tests from command line?
Yes, with something like this ...xcodebuild test -scheme YourAppScheme -destination platform=iOS Simulator,OS=9.0,name=iPhone 6Replace your project's scheme name in for 'YourAppScheme'Used to be you had to export/share the scheme (go to manage schemes in Xcode) to get this to work. Not sure if that is still the case. Just a warning.You can play with the destination settings to pick different devices, etc.Cheers.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
EXC_BAD_ACCESS when using url-scheme with new Xcode Version 9.3 (9E145)
It seems that apps, which are generated with the latest version of Xcode, generate EXC_BAD_ACCESS when the iOS app is called by url-scheme. Do you have the same issues or any workaround?Steps to reproduce:1) Compile an app with an url-scheme2) call this app from e.g. Safari by using myapp://openThe app opens and then crashes with EXC_BAD_ACCESS
8
0
3.1k
Apr ’18
Reply to Emoji Ranger not showing in Add Widget list
It sounds like your normal process is to build and run the App scheme, then once the app is on the simulator, you're enabling the app jiggling, then tapping the + button. The response to your question was, don't build the app scheme, build the widget kit extensions scheme. You can change your scheme by tapping the pulldown in Xcode that is next to the large play button and square stop button on the top left of your Xcode window. In the emoji ranger app it shows either the icon for the app which is like a panda on an orange background or you can select the 2 widget options which don't have an app icon. If you see the panda on your Xcode window you're building the app scheme, not the extension scheme.
Topic: UI Frameworks SubTopic: General Tags:
Jun ’20
Reply to Error converting to 4.2 "Testable names must be unique"
I haven't seen the same message till now.Me neither, although it seems likely that the “testable” mentioned here relates to the Xcode scheme.@dpeace1982, you should check to see if the tests referenced by your scheme (in Product > Scheme > Edit Scheme > Test > Info > Tests) make sense.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’18
xcode building all schemes in parallel extremely slow
I have a project that builds 5 binaries from 5 different schemes. Building each one of them separately takes around 2 minutes, with a large part of time spent on linking (lto I guess). I have a dummy target that builds all of them in parallel - I never managed to successfully build it, it goes on for 40-50 minutes and I just lose patience. What happens is, all the compilation is done ok, but when linking starts, 10 linker processes are spawned (5 binaries x 2 architectures) and they seem to never finish. While they are running, top shows a kernel_task using a lot of cpu (>100%) and the instances of ld using around 20-30 each. This is all happening on m1 macbook air 8/256. My guess is that it is a combination of RAM pressure, thermal throttling and the OS aggressively shuffling the 10 processes over the 8 cores, leading to lots of cache misses and possibly swapping. Is there any workaround I can apply - possibly some xcode setting to limit parallel jobs to 4-6 or something like that.
0
0
447
Sep ’22
Reply to Deep Link to Files app
I couldn’t find a deep link tag There is Universal Links, but that’s not entirely accurate because your focus is on URL schemes. For URL schemes I recommend Core Services, which is vague but at least it’s something I track (-: You’re asking about iOS, right? Because on macOS we have the activateFileViewerSelecting(_:) method an NSWorkspace. I have some general advice on this topic in this post, and the posts its links to. AFAIK none of the documented schemes do what you want. I recommend that you file a bug requesting an iOS equivalent to the above-mentioned NSWorkspace API. IMPORTANT Don’t ask for NSWorkspace as a whole. That’s unlikely to happen on iOS. Rather, focus on that specific API. Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’24
Change Sign In With Apple button style based on current color scheme
I'm having some issues with SwiftUI's SignInWithAppleButton's signInWithAppleButtonStyle. I am trying to change the color of the button based on the user's current scheme or if it changes. This is iOS 14 and SwiftUI: @Environment(.colorScheme) var currentScheme @State var appleButtonWhite = false VStack{ SignInWithAppleButton( tttttttt.signUp, ttttttttonRequest: { request inttttttt ttttttttttrequest.requestedScopes = [.fullName, .email] tttttttt}, ttttttttonCompletion: { result in ttttttttttswitch result { ttttttttttcase .success (let authResults): ttttttttttttprint(Authorization successful.) ttt ttttttttttcase .failure (let error): ttttttttttttprint(Authorization failed: + error.localizedDescription) tttttttttt} tttttttt} tttttt) tttttt.frame(minWidth: 0, maxWidth: .infinity) tttttt.signInWithAppleButtonStyle(appleButtonWhite ? .white : .black) } .onChange(of: currentScheme, perform: { (scheme) in ttttif scheme == .light tttt{ ttttttappleButtonWhite = false tttt} ttttelse tttt{ tt
Replies
2
Boosts
0
Views
2.4k
Activity
Dec ’20
Reply to How do I show the output in terminal?
According to the last comment on this, you can go to Product, Scheme, Edit Scheme, Run (Debug), Options, Console, Use Terminal.
Replies
Boosts
Views
Activity
Sep ’21
Reply to Using CoreData entity in SwiftUI view
Thank you, so now I have something like this var meeting: Meeting But the PreviewProvider now says it is missing an argument for the parameter 'meetings'. How do I initialize some dummy data for the preview if the data is in CoreData? I have 'meetingName' of type string, 'meetingLink' of type URI, and 'meetingTime' of type Date. Thank you!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’21
Reply to Is it possible to run Xcode 7 UI Tests from command line?
Yes, with something like this ...xcodebuild test -scheme YourAppScheme -destination platform=iOS Simulator,OS=9.0,name=iPhone 6Replace your project's scheme name in for 'YourAppScheme'Used to be you had to export/share the scheme (go to manage schemes in Xcode) to get this to work. Not sure if that is still the case. Just a warning.You can play with the destination settings to pick different devices, etc.Cheers.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Xcode 9 - Instruments permission denied
Xcode Product -> Scheme - > Edit Scheme- > Profile - >Info -> Build Configuration must be Debug checked
Replies
Boosts
Views
Activity
Jul ’21
EXC_BAD_ACCESS when using url-scheme with new Xcode Version 9.3 (9E145)
It seems that apps, which are generated with the latest version of Xcode, generate EXC_BAD_ACCESS when the iOS app is called by url-scheme. Do you have the same issues or any workaround?Steps to reproduce:1) Compile an app with an url-scheme2) call this app from e.g. Safari by using myapp://openThe app opens and then crashes with EXC_BAD_ACCESS
Replies
8
Boosts
0
Views
3.1k
Activity
Apr ’18
Reply to Hide iMessage URL from Mac and older iOS devices
pdm, is your answer more accurate than the Messages framework documentation, or am I misunderstanding the question? Looking at the Messages framework documentation: https://developer.apple.com/reference/messages/msmessage/1649739-url my understanding was that:The URL property must use an http, https, or file scheme
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’16
Reply to Can't find a way to get an Xcode-signed receipt for Mac app
Has anyone found a solution to this? I'm on Xcode 12.3, and my Mac is on Big Sur. I've saved StoreKitTestCertificate.cer in my project and I've set the scheme to use the store kit test configuration, but when I call Bundle.main.appStoreReceiptURL there's still no file at that path. Is there something I'm missing?
Replies
Boosts
Views
Activity
Jan ’21
Reply to Emoji Ranger not showing in Add Widget list
It sounds like your normal process is to build and run the App scheme, then once the app is on the simulator, you're enabling the app jiggling, then tapping the + button. The response to your question was, don't build the app scheme, build the widget kit extensions scheme. You can change your scheme by tapping the pulldown in Xcode that is next to the large play button and square stop button on the top left of your Xcode window. In the emoji ranger app it shows either the icon for the app which is like a panda on an orange background or you can select the 2 widget options which don't have an app icon. If you see the panda on your Xcode window you're building the app scheme, not the extension scheme.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’20
Reply to Error converting to 4.2 "Testable names must be unique"
I haven't seen the same message till now.Me neither, although it seems likely that the “testable” mentioned here relates to the Xcode scheme.@dpeace1982, you should check to see if the tests referenced by your scheme (in Product > Scheme > Edit Scheme > Test > Info > Tests) make sense.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’18
Reply to Unable to implement OAuth2 using ASWebAuthenticationSession
The behavior you've described sounds like the scheme you're passing to ASWebAuthenticationSession doesn't match the scheme for the URL being redirected to. Please double check that they match. (Keep in mind that a scheme itself doesn't include any special characters, such as : or /.)
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to can't run app in physical device, Xcode 12.5, iOS 12.5.3
Turns out it is one scheme setting that leads to this error: Debug Executable Steps: Choose the problematic scheme Edit Scheme Choose Run Uncheck “Debug executable” Clean Derived Data: ⌘ Cmd + ↑ Shift + K Run the app again: ⌘ Cmd + R
Replies
Boosts
Views
Activity
Jun ’21
Reply to Xcode unable to find a destination matching the provided destination specifier?
Check whether your runner scheme in Xcode also displays the simulators next to you physical devices? If not recreate the runner scheme by clicking New scheme .... The simulators should be available again. Otherwise delete derived data folder under Xcode > preferences > location
Replies
Boosts
Views
Activity
Dec ’21
xcode building all schemes in parallel extremely slow
I have a project that builds 5 binaries from 5 different schemes. Building each one of them separately takes around 2 minutes, with a large part of time spent on linking (lto I guess). I have a dummy target that builds all of them in parallel - I never managed to successfully build it, it goes on for 40-50 minutes and I just lose patience. What happens is, all the compilation is done ok, but when linking starts, 10 linker processes are spawned (5 binaries x 2 architectures) and they seem to never finish. While they are running, top shows a kernel_task using a lot of cpu (>100%) and the instances of ld using around 20-30 each. This is all happening on m1 macbook air 8/256. My guess is that it is a combination of RAM pressure, thermal throttling and the OS aggressively shuffling the 10 processes over the 8 cores, leading to lots of cache misses and possibly swapping. Is there any workaround I can apply - possibly some xcode setting to limit parallel jobs to 4-6 or something like that.
Replies
0
Boosts
0
Views
447
Activity
Sep ’22
Reply to Deep Link to Files app
I couldn’t find a deep link tag There is Universal Links, but that’s not entirely accurate because your focus is on URL schemes. For URL schemes I recommend Core Services, which is vague but at least it’s something I track (-: You’re asking about iOS, right? Because on macOS we have the activateFileViewerSelecting(_:) method an NSWorkspace. I have some general advice on this topic in this post, and the posts its links to. AFAIK none of the documented schemes do what you want. I recommend that you file a bug requesting an iOS equivalent to the above-mentioned NSWorkspace API. IMPORTANT Don’t ask for NSWorkspace as a whole. That’s unlikely to happen on iOS. Rather, focus on that specific API. Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24