Search results for

“file uri scheme”

84,486 results found

Post

Replies

Boosts

Views

Activity

Reply to "Active scheme does not build this file" Problem
I think you only get this error when you're trying to preview, say, an iOS Home Screen widget but your active scheme is for something else, like a watchOS target. If you're previewing something in an iOS target, make sure to select the scheme that builds the iOS target. If you're trying to preview a watchOS target, select the watchOS scheme, etc.
Jan ’24
"Use custom working directory" is greyed out in Edit Scheme > Run
I'm trying to use XCode to debug a simple toy C++ program built using a Makefile (set up project using 'External Build System').Normally I'm able to debug and run, and use breakpoints within the editor. The way I did this was by going to Edit Scheme > Run > Use custom working directory, then checking the check box and specifying the directory of the executable. Except currently I'm not able to click in the text field or on the folder pop-up dialog at all to change this directory from blank.Such that, when I hit the build and run button with the check box checked I get a popup that asks Would you like to Run anyway? : The working directory (null) for scheme scheduler doesn't exist. Except I can't change the blank text field at all to fix this...I would add a screenshot of the options to clarify but I'm concerned about triggering moderation given this post I read about the forums [https://forums.developer.apple.com/thread/97547]
1
0
2.3k
Oct ’19
Reply to xcodebuild Apple Watch - iOS 16.1/wachOS 9.1 - fails
UPD Everything works fine when we use -target option for xcododebuild command line arguments instead of -scheme, but could not use option due to project -target. The problem is in the scheme configuration or devices visibility for scheme, or both Also, it is working when I use generic destination: xcodebuild -project MyApp.xcodeproj -scheme 'MyApp WatchKit App' -destination generic/platform=watchOS build command I used: xcodebuild -workspace MyApp.xcworkspace -scheme 'MyApp WatchKit App' -destination 'platform=watchOS,id=Watch's ID' And I see this error: (null) needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked.``` P.S. Restarting and unlocking doesn't help
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’22
Reply to Initializing a variable causes crash
Interesting. Yeah, that's really weird. Have you checked out the Zombie Objects or Address Sanitizer features? They might be able to help you pinpoint your problem. Both are accessible when you edit your scheme, head to the Run action and click on the Diagnostics tab. After enabling them, run your app. Now when it crashes, you'll get a detailed readout on what went wrong.Say, did you check to see if anything was wrong with your source file? Take a look in the File Inspector. Maybe also create another Swift file with a function in it that does the same thing as your setup code, and call that function from your original file. Other than that, I'm just as stumped as you are.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to schema.org "Offer", but not "Product" in Spotlight?
Product is not on the list of schemes that's supported because we don't index anything directly from the Product itself other than AggregateRating and Offer. Of course, what we pull out of this markup is potentially changing over time, but at the moment we don't pull info from Product itself. If there's information you think we should be including from Product, please file bug reports with the details.
Topic: App & System Services SubTopic: General Tags:
Jul ’15
Reply to Getting error in previews when are inside of a static framework
Yes this is a known issue. Currently previews are not supported inside of static libraries. As a workaround you could create a dynamic library or framework target in addition to the static library and put the file in both targets. Then, make sure your scheme is building the framework/dynamic library target even if it's not being included into any of your shipping apps, etc.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22
Different Build Schemes -> Error: -Onone Swift optimization level to use previews
I have a sample SwiftUI iOS app. As shown in the screenshot below, my project has three configurations: Debug, MyDebug, Release. If I select the Debug or MyDebug scheme, I get a preview. But if I select the Release scheme, I get an error that says the following. ”***.app” needs -Onone Swift optimization level to use previews (current setting is -O) , where *** is the app name. It probably has nothing to do with the Preview error, but the Info.plist has a dictionary such that the key name is devMode, and the value is $(DEVMODE). And I have a user-defined setting as shown below. My ContentView has the following. import SwiftUI struct ContentView: View { @State private var state: String = var body: some View { VStack { Text(Hello, world!: (state)) } .onAppear { if let devMode = Bundle.main.object(forInfoDictionaryKey: devMode) as? String { print(Development mode: (devMode)) state = devMode } if let path = Bundle.main.path(forResource: Info, ofType: plist) { if let dict = NSDictionary(contentsO
5
0
526
Feb ’25
Reply to Emoji as Custom URL Scheme
I'm wondering if we can use Emoji as the header for custom URL schemes in iOS apps.For instance : U+1F4A9://I’d expect any URL scheme that conforms to the standard (see Section 3.1 of RFC 3986) to work. However, there’s no code in the OS that will interpret U+xxxx notation as Unicode in URL schemes, so you’re just going to end up with a weird looking scheme. Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Sep ’17
Reply to ASWebAuthenticationSession with Universal link never dismiss the sign-in screen
UniversalLink and redirectURI are different things. OAuth standard protocol assumes that once the authentication part on the ASWebAuthenticationSession panel is completed successfully, the backend will redirect you to the URI indicated into the redirectURI parameter you used to instruct the request for the ASWebAuthenticationSession. If this doesn't happen for any reason (like a 302 on the redirectURI), then the ASWebAuthenticationSession isn't completed and your call back is never called.
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’23
Reply to Citrix Workspace App GlobalSign Root CA
I have seen this issue on other versions on macOS as well; I don't think this is specific to this version. You will need to trust the certificate when on the site click the padlock. Show the certificate in the details you should see the CA Issuers, click on the URI. (This will ensure the correct cert required is downloaded) it could be the ones in your keychain may vary. You can then add this certificate into keychain.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’19
Reply to WKWebView Request headers in redirections/links
If it's a critical need for your app and you have tight control over the content loaded, you can use a custom scheme with WKURLSchemeHandler to achieve the same effect. There's no way to do this for genera http(s) loads right now. Please file a request with Feedback Assistant with what you'd be using this for to help us prioritize.
Topic: Safari & Web SubTopic: General Tags:
Jun ’20
Reply to Opening the Extension menu in the System Preferences
Quinn's should be the accepted answer (sorry, this should've been a comment on that—I clicked the wrong button and don't see how to fix it). @eskimo Quinn, Any chance you could push to get the x-apple.systempreferences URL scheme properly documented? It seems like something that user-friendly apps need to be able to do, and people are doing it anyway, so it would be great to have it documented explicitly as stable API somewhere outside of a header file (which only gives two specific examples for Full Disk Access, which is not the location desired here). I understand that things tend to move around in System Settings, but it seems like some needs to commit to supporting a scheme or other API that will allow apps to direct people to where they need to go.
Topic: App & System Services SubTopic: Core OS Tags:
May ’24
Reply to XCode 26.2 not running UItests in parallel in subsequent test runs
Adding more information on this problem. The UI tests are in a separate project in the same workspace. We split this way to reduce the amount of conflicts in the project file since the xcuitests are written by a separate team and the app project gets so many updates per day. I noticed that if I add the UI test target in the app scheme without using test plans I can run the ui tests in parallel many times in a row, but if I convert to test plans or if I keep the UI tests in a separate scheme using test plans I can run the ui tests in parallel only once and then I get this error on the subsequent tries. The only way around it is to delete the simulator and recreate it.
Mar ’26
Reply to "Active scheme does not build this file" Problem
I think you only get this error when you're trying to preview, say, an iOS Home Screen widget but your active scheme is for something else, like a watchOS target. If you're previewing something in an iOS target, make sure to select the scheme that builds the iOS target. If you're trying to preview a watchOS target, select the watchOS scheme, etc.
Replies
Boosts
Views
Activity
Jan ’24
"Use custom working directory" is greyed out in Edit Scheme > Run
I'm trying to use XCode to debug a simple toy C++ program built using a Makefile (set up project using 'External Build System').Normally I'm able to debug and run, and use breakpoints within the editor. The way I did this was by going to Edit Scheme > Run > Use custom working directory, then checking the check box and specifying the directory of the executable. Except currently I'm not able to click in the text field or on the folder pop-up dialog at all to change this directory from blank.Such that, when I hit the build and run button with the check box checked I get a popup that asks Would you like to Run anyway? : The working directory (null) for scheme scheduler doesn't exist. Except I can't change the blank text field at all to fix this...I would add a screenshot of the options to clarify but I'm concerned about triggering moderation given this post I read about the forums [https://forums.developer.apple.com/thread/97547]
Replies
1
Boosts
0
Views
2.3k
Activity
Oct ’19
Reply to xcodebuild Apple Watch - iOS 16.1/wachOS 9.1 - fails
UPD Everything works fine when we use -target option for xcododebuild command line arguments instead of -scheme, but could not use option due to project -target. The problem is in the scheme configuration or devices visibility for scheme, or both Also, it is working when I use generic destination: xcodebuild -project MyApp.xcodeproj -scheme 'MyApp WatchKit App' -destination generic/platform=watchOS build command I used: xcodebuild -workspace MyApp.xcworkspace -scheme 'MyApp WatchKit App' -destination 'platform=watchOS,id=Watch's ID' And I see this error: (null) needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked.``` P.S. Restarting and unlocking doesn't help
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Initializing a variable causes crash
Interesting. Yeah, that's really weird. Have you checked out the Zombie Objects or Address Sanitizer features? They might be able to help you pinpoint your problem. Both are accessible when you edit your scheme, head to the Run action and click on the Diagnostics tab. After enabling them, run your app. Now when it crashes, you'll get a detailed readout on what went wrong.Say, did you check to see if anything was wrong with your source file? Take a look in the File Inspector. Maybe also create another Swift file with a function in it that does the same thing as your setup code, and call that function from your original file. Other than that, I'm just as stumped as you are.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to schema.org "Offer", but not "Product" in Spotlight?
Product is not on the list of schemes that's supported because we don't index anything directly from the Product itself other than AggregateRating and Offer. Of course, what we pull out of this markup is potentially changing over time, but at the moment we don't pull info from Product itself. If there's information you think we should be including from Product, please file bug reports with the details.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to Getting error in previews when are inside of a static framework
Yes this is a known issue. Currently previews are not supported inside of static libraries. As a workaround you could create a dynamic library or framework target in addition to the static library and put the file in both targets. Then, make sure your scheme is building the framework/dynamic library target even if it's not being included into any of your shipping apps, etc.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Different Build Schemes -> Error: -Onone Swift optimization level to use previews
I have a sample SwiftUI iOS app. As shown in the screenshot below, my project has three configurations: Debug, MyDebug, Release. If I select the Debug or MyDebug scheme, I get a preview. But if I select the Release scheme, I get an error that says the following. ”***.app” needs -Onone Swift optimization level to use previews (current setting is -O) , where *** is the app name. It probably has nothing to do with the Preview error, but the Info.plist has a dictionary such that the key name is devMode, and the value is $(DEVMODE). And I have a user-defined setting as shown below. My ContentView has the following. import SwiftUI struct ContentView: View { @State private var state: String = var body: some View { VStack { Text(Hello, world!: (state)) } .onAppear { if let devMode = Bundle.main.object(forInfoDictionaryKey: devMode) as? String { print(Development mode: (devMode)) state = devMode } if let path = Bundle.main.path(forResource: Info, ofType: plist) { if let dict = NSDictionary(contentsO
Replies
5
Boosts
0
Views
526
Activity
Feb ’25
Reply to Emoji as Custom URL Scheme
I'm wondering if we can use Emoji as the header for custom URL schemes in iOS apps.For instance : U+1F4A9://I’d expect any URL scheme that conforms to the standard (see Section 3.1 of RFC 3986) to work. However, there’s no code in the OS that will interpret U+xxxx notation as Unicode in URL schemes, so you’re just going to end up with a weird looking scheme. Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Sep ’17
Reply to ASWebAuthenticationSession with Universal link never dismiss the sign-in screen
UniversalLink and redirectURI are different things. OAuth standard protocol assumes that once the authentication part on the ASWebAuthenticationSession panel is completed successfully, the backend will redirect you to the URI indicated into the redirectURI parameter you used to instruct the request for the ASWebAuthenticationSession. If this doesn't happen for any reason (like a 302 on the redirectURI), then the ASWebAuthenticationSession isn't completed and your call back is never called.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Citrix Workspace App GlobalSign Root CA
I have seen this issue on other versions on macOS as well; I don't think this is specific to this version. You will need to trust the certificate when on the site click the padlock. Show the certificate in the details you should see the CA Issuers, click on the URI. (This will ensure the correct cert required is downloaded) it could be the ones in your keychain may vary. You can then add this certificate into keychain.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’19
Reply to Bad CPU type in executable
This was solved by changing Build/Override Architectures from Match Run Destination to Use Target Settings in the settings window displayed after executing the Product/Scheme/Edit Scheme... menu.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Xcode 16.4 can't choose a lower version iOS simulator to debug
Would you mind sharing the outputs of the following commands? xcodebuild -project YourProject.xcodeproj -scheme YourScheme -showdestinations xcodebuild -project YourProject.xcodeproj -scheme YourScheme -showBuildSettings — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
Aug ’25
Reply to WKWebView Request headers in redirections/links
If it's a critical need for your app and you have tight control over the content loaded, you can use a custom scheme with WKURLSchemeHandler to achieve the same effect. There's no way to do this for genera http(s) loads right now. Please file a request with Feedback Assistant with what you'd be using this for to help us prioritize.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’20
Reply to Opening the Extension menu in the System Preferences
Quinn's should be the accepted answer (sorry, this should've been a comment on that—I clicked the wrong button and don't see how to fix it). @eskimo Quinn, Any chance you could push to get the x-apple.systempreferences URL scheme properly documented? It seems like something that user-friendly apps need to be able to do, and people are doing it anyway, so it would be great to have it documented explicitly as stable API somewhere outside of a header file (which only gives two specific examples for Full Disk Access, which is not the location desired here). I understand that things tend to move around in System Settings, but it seems like some needs to commit to supporting a scheme or other API that will allow apps to direct people to where they need to go.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to XCode 26.2 not running UItests in parallel in subsequent test runs
Adding more information on this problem. The UI tests are in a separate project in the same workspace. We split this way to reduce the amount of conflicts in the project file since the xcuitests are written by a separate team and the app project gets so many updates per day. I noticed that if I add the UI test target in the app scheme without using test plans I can run the ui tests in parallel many times in a row, but if I convert to test plans or if I keep the UI tests in a separate scheme using test plans I can run the ui tests in parallel only once and then I get this error on the subsequent tries. The only way around it is to delete the simulator and recreate it.
Replies
Boosts
Views
Activity
Mar ’26