Search results for

“file uri scheme”

81,720 results found

Post

Replies

Boosts

Views

Activity

Reply to What is, and how would I create a URL scheme for use in an iOS API?
So would something like chiromaster-url-scheme be appropriate?It’s a good start. You definitely want to include the name of your product, which will prevent folks from accidentally reusing the scheme. However, adding -url-scheme is pointless because that’s implicit in the context. Beyond that I agree with Claude31 here: You should see if Square has specific guidance on this topic.WARNING iOS provides no mechanism to ‘vet’ URL schemes. You might declare a custom scheme so that Square can return to your app, but any other app might open a URL with that scheme. If you encode any data in your URL, you must securely parse that data. Failure to do so could result in a malicious app doing bad things.Note URL schemes are officially registered by IANA, although the vast majority of schemes used by developers are not )-:Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskim
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’18
Reply to YouTube play video using app?
tvOS does support Custom URL Schemes, but support for a given scheme is up to the individual developer creating the app that will host said scheme. You will need to get in touch with the developer of the app you wish to interact with to determine if they will support the use case on tvOS.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Xcode schemes and targets messed up
I was having trouble with Xcode and it was telling me that multiple versions of derived data were being produced and I could not build the project. I started to mess around with some build settings and finally got the issue fixed and the project built. However, now when I run the project on my iPhone, my app icon does not appear and the app crashed immediately with the error: Could not find a storyboard named 'Main' in bundle NSBundleI realized that something was wrong with my project. Something looks different on the sidebar now, and when I click on my actual Xcode project, it does not show me the general information like normal.Instead, it shows me the general information in under the Target Hostend instead of the project like it usually would. Also, my Assets.xcassets, my Main.storyboard, and any of my other files don't have the Target Membership checkbox checked for my target, and I cannot enable it because it is grayed out.What is happening with my project and how can I fix this? I'm really stuc
3
0
8.8k
Sep ’19
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
How to open Apple Maps focusing on the services tab ? (URL scheme)
Hi,As explained into this StackOverFlow topic (https://stackoverflow.com/questions/54888856/how-to-open-apple-maps-focusing-on-the-services-tab-url-scheme), I would like to open Apple Maps from my application by using an universal link and to focus the user's view directly on the services tab.After doing a few searches, I thought there was no way to do so and the response I got on StackOverFlow confirmed that.Is it planned to allow the developer to do such thing in the future ? Is there a link I could ask such feature to Apple developers ?I thank you in advance for your time and your response !Best regards,
2
0
662
Feb ’19
Reply to XCODE SwiftUI Preview
My suggestion then would be to: create a framework to host the View and PreviewProviders create a dummy app to be used for previews have both your real app and the dummy app link the framework when attempting to use previews select the dummy app as your active scheme I believe that should cause the previews system to use the dummy app as the context to render the previews. If that does not work, then another (perhaps easier?) workaround is to skip the framework part and just include the file with the View in both apps and again select the dummy app as the active scheme before attempting to preview.
Oct ’21
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.3k
Dec ’20
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 What is, and how would I create a URL scheme for use in an iOS API?
So would something like chiromaster-url-scheme be appropriate?It’s a good start. You definitely want to include the name of your product, which will prevent folks from accidentally reusing the scheme. However, adding -url-scheme is pointless because that’s implicit in the context. Beyond that I agree with Claude31 here: You should see if Square has specific guidance on this topic.WARNING iOS provides no mechanism to ‘vet’ URL schemes. You might declare a custom scheme so that Square can return to your app, but any other app might open a URL with that scheme. If you encode any data in your URL, you must securely parse that data. Failure to do so could result in a malicious app doing bad things.Note URL schemes are officially registered by IANA, although the vast majority of schemes used by developers are not )-:Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskim
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’18
Reply to ASWebAuthenticationSession's callbackURLScheme crash
Hi, had the same issue. The solution in my case was to create a new additional scheme only for authentication purpose e.g. myappauth Don't forget to add the scheme to your Info.plist (URL types - URL Schemes) Regards, Vlad
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to YouTube play video using app?
tvOS does support Custom URL Schemes, but support for a given scheme is up to the individual developer creating the app that will host said scheme. You will need to get in touch with the developer of the app you wish to interact with to determine if they will support the use case on tvOS.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Xcode schemes and targets messed up
I was having trouble with Xcode and it was telling me that multiple versions of derived data were being produced and I could not build the project. I started to mess around with some build settings and finally got the issue fixed and the project built. However, now when I run the project on my iPhone, my app icon does not appear and the app crashed immediately with the error: Could not find a storyboard named 'Main' in bundle NSBundleI realized that something was wrong with my project. Something looks different on the sidebar now, and when I click on my actual Xcode project, it does not show me the general information like normal.Instead, it shows me the general information in under the Target Hostend instead of the project like it usually would. Also, my Assets.xcassets, my Main.storyboard, and any of my other files don't have the Target Membership checkbox checked for my target, and I cannot enable it because it is grayed out.What is happening with my project and how can I fix this? I'm really stuc
Replies
3
Boosts
0
Views
8.8k
Activity
Sep ’19
Reply to Why can I test Widget on simulator but not physical device?
Figured it out - needed to run the main target scheme, not the widgetextension scheme, oddly enough.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’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:
Replies
Boosts
Views
Activity
Feb ’21
How to open Apple Maps focusing on the services tab ? (URL scheme)
Hi,As explained into this StackOverFlow topic (https://stackoverflow.com/questions/54888856/how-to-open-apple-maps-focusing-on-the-services-tab-url-scheme), I would like to open Apple Maps from my application by using an universal link and to focus the user's view directly on the services tab.After doing a few searches, I thought there was no way to do so and the response I got on StackOverFlow confirmed that.Is it planned to allow the developer to do such thing in the future ? Is there a link I could ask such feature to Apple developers ?I thank you in advance for your time and your response !Best regards,
Replies
2
Boosts
0
Views
662
Activity
Feb ’19
Reply to XCUITest Failure - Error: activate application (current state: Running Background)
Can you try this with the most recent version of Xcode? What platform / OS is this on? Have you tried disabling the debugger in the Test action of your scheme? If you're still seeing this in recent versions of Xcode, please file a Feedback Report if you can, and attach the result bundle from a run that failed like this.
Replies
Boosts
Views
Activity
Aug ’21
Reply to SwiftUI MKMapView Crash - queue = 'com.Metal.CompletionQueueDispatch', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
Solved The Fix seems to be to uncheck the 'Metal API Validation' check box in the product scheme settings. In Xcode go to Product->Scheme->Edit Scheme… On the Diagnostics tab uncheck the 'Metal API Validation' checkbox.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to XCODE SwiftUI Preview
My suggestion then would be to: create a framework to host the View and PreviewProviders create a dummy app to be used for previews have both your real app and the dummy app link the framework when attempting to use previews select the dummy app as your active scheme I believe that should cause the previews system to use the dummy app as the context to render the previews. If that does not work, then another (perhaps easier?) workaround is to skip the framework part and just include the file with the View in both apps and again select the dummy app as the active scheme before attempting to preview.
Replies
Boosts
Views
Activity
Oct ’21
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.3k
Activity
Dec ’20
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 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 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