Search results for

file uri scheme

78,913 results found

Post

Replies

Boosts

Views

Activity

Reply to Unit test not working on Xcode 14 RC
In my case, this happened when I had an environment variable set manually for the project via the scheme. What caused it was an accidentally added environment variable without a name or value. (Check for it under Product > Scheme > (pick a scheme), select Run from left nav, and inspect the manually configured environment variables. This won't be the cause for everyone, but the empty name/value pair for the env var definitely is a cause for this error (easily reproducible)
May ’23
Got a rejection for piracy storefront and itms-services URL scheme
Hello, Guys,I have two games received the same rejection but cannot figure out what does the review team mean and how to fix these issues.Guideline 2.3 - Performance - Accurate MetadataWe noticed that your app's metadata includes the following information, which is not relevant to the app's content and functionality.Specifically, this app contains references to an app piracy storefront.Guideline 2.3.1 - PerformanceWe discovered that your app contains hidden features. Specifically, this app contains references to an app piracy storefront.Guideline 2.5.2 - Performance - Software RequirementsDuring review, your app installed or launched executable code, which is not permitted on the App Store. Specifically, your app uses the itms-services URL scheme to install an app.Please note that while educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code, such code may not be used for other purposes and such apps must make the source code
5
0
4.1k
Sep ’17
Reply to Can't change time in Xcode Simulator
I have same issue while using fastlane snapshot. Based on Matt_PeakRidge's answer, here is my workaround. As my app only works with iOS 16 I couldn't use iOS 15.5 simulator. But iOS 16.0 worked so: Install iOS 16.0 simulator from Xcode Set deployment target to iOS 16.0 in Test scheme. In Snapfile file add ios_version(16.0).
Dec ’22
Reply to Open URL with Browser
You should use ASWebAuthenticationSession for this. That error about : and / is to catch a common misunderstanding about schemes: the scheme part of a URL does not include the trailing ://. For example, let's say was we had myscheme://success?authToken=abc. The scheme of the URL would by myscheme, which is the value that you would pass to ASWebAuthenticationSession. You can see this yourself if you ran something like this in a playground: let url = URL(string: myscheme://success?authToken=abc)! print(url.scheme!)
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’23
Open specific viewcontroller by using URL scheme
Just wondering is there is any way to open a viewcontroller by using URL scheme.This is my class:class SwishManager: NSObject, URLSessionDelegate{ . . . . . func schemeAvailable(token: String){ let notAllowedCharactersSet = CharacterSet(charactersIn: !*'();:@&=+$,/?%#[]) let allowedCharactersSet: CharacterSet = notAllowedCharactersSet.inverted let callbackURLStr = helpie:// let encodedCallbackURLStr = callbackURLStr.addingPercentEncoding(withAllowedCharacters: allowedCharactersSet) let swishURLStr = swish://paymentrequest?token=(token)&callbackurl=(encodedCallbackURLStr ?? ) let swishURL = URL(string: swishURLStr) if let anURL = swishURL { if UIApplication.shared.canOpenURL(anURL) { print(app has been installed) if UIApplication.shared.canOpenURL(anURL) { UIApplication.shared.open(swishURL!, options: [:], completionHandler: { (success) in self.confirmpayment() }) } else { print(Failed) } } else { print(app has been installed, NOT!) } } } . . . . . . }What I want to do is when user going back from the
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
1.2k
Nov ’18
Incorporate an executable file
I have a code written in C++ that I want to incorporate into my Xcode project. From that code, I have also created an executable (.exe) file. How would I link the executable file with my Xcode project, in such a way that I am able to send parameters from the Xcode project to the funcitons in my .exe file? I have been able to wrap my C++ code in Objective-C and incorporate it that way, however it would be simplest for me if I could find a way to get an executable file to run. So far I have tried to edit the product scheme (product -> scheme->edit scheme->info) and add my .exe file to the Executable field, but that has done nothing except give me the error Found an unexpected Mach-O header code: 0x905a4d. I have also tried to add the .exe file to the Linking section of the project Build Settings, and have not had any success there either. I would really appreciate step-bystep instructions as to how I could accomplish this.
1
0
2.2k
Jul ’19
Reply to Universal Links in Web Markup
Well there is always smart app banners. They now want you to use the universal link for that but it has the App Store ID (as do some of the other meta schemes) but that doesn't give you any way to open the app. The smart app banner open/download logic is all controlled by Apple. The best the rest of us can do with an App Store ID is send someone to the download page.While I'm sure Apple wants to move away from the custom URL schemes. They are still acknowledging that the other schemes like Twitter cards and Applinks use custom URL schemes. I think the custom schemes are ok for the time being, especially if you support pre 9. I say that because even the new web markup validation tool acknowledges them:https://search.developer.apple.com/appsearch-validation-tool
Topic: App & System Services SubTopic: General Tags:
Sep ’15
Reply to Xcode Cloud: How to trigger testing for packages?
I just stumbled into this forum post from Mastodon, but I can at least share how I've set this up for one of my projects, Fedigardens. Fedigardens has a workspace that I use which contains the main iOS app project and all of its internal Swift packages like networking libraries and feature modules. I have a test plan file that contains the tests that I want to execute, which is tied to the main app's scheme. When I set up the testing workflow, I made sure to select the test plan I created with all the unit tests. Suffice to say, this approach seems to work well for my use cases. So, a step-by-step process: Create an Xcode workspace and iOS app project. Add the Swift packages and iOS app to that workspace. Create a test plan file (.xctestplan) by going to File > New > File... and select 'Test Plan'. In that test plan, add the Swift package tests (and any other tests) you'd like to execute. In the test section of the iOS app's scheme, add the existing
Jun ’23
Reply to Open specific screen in App Delegate after iOS 18 Control Center widget is tapped (failed to open URL)
I think it's failing because you setup your URL scheme in the editor to a bad format. Follow this closely and try using that first. You just setup the scheme and you can parse the query property in the app delegate method. https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app You have your control setup correctly to open the url, but the answer on this Stack is also helpful for parsing and adding query items. You can add that bit of code in your intent / app delegate for parsing and formulating the URL: https://stackoverflow.com/questions/73418995/open-url-scheme-through-widget-tap-ios-16-widget-kit
Topic: UI Frameworks SubTopic: General Tags:
Sep ’24