Search results for

“file uri scheme”

81,716 results found

Post

Replies

Boosts

Views

Activity

Context menus, alerts, popovers and tips do not respect preferred color scheme
It seems like some UI elements just don't use the preferred color scheme of their parent element: import SwiftUI struct ContentView: View { var body: some View { VStack { Button(Hold Me) { } .contextMenu(ContextMenu(menuItems: { Button(I should be dark) { } })) } .padding() .preferredColorScheme(.dark) } } If you set the device appearance to dark, then the context menu shows the correct color scheme. Setting .preferredColorScheme(.dark) to Button directly doesn't help. Aside from context menus, this applies to all sorts of elements: popovers, alerts, tips, ... Is there a workaround for this? Apple folks: FB13391355
0
0
674
Nov ’23
Reply to Using handleExternalEvents scene modifier to route external events to the correct scene
Thank you for your post. When utilizing Universal Links to initiate a call to your application, the delegate that will be invoked in SwiftUI is: func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { You can see that and how it works in the link: https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app In case you are using deep linking to call your app, how have you registered the link in the info.plist? Scene Matching Rules: The handlesExternalEvents(matching:) modifier is used to specify which external events a scene should respond to. Ensure Correct URL Schemes: Double-check that the URL schemes you're trying to handle match exactly with what your app is set up to receive. For deep links like Companion://, ensure that this scheme is properly registered in your Info.plist under the CFBundleURLTypes key.
xml
 Review Scene Initialization: Your URLHandlerScene is initialized with a tem
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
Reply to A signed resource has been added, modified, or deleted
The problem seems to be that extension targets that contain swift code aren't being handled properly.There's a workaround for this given in stackoverflow:You can put the following in your scheme so that it executes with every build:rm -rf ~/Library/Developer/Xcode/DerivedData/YourAppName-*/Build/Products/Debug-iphoneos/com.yourcompany.Name.extension.*Or, alternatively:touch ${PROJECT_DIR}/SOME SWIFT FILE IN EXTENSION.SWIFTYou need to add either of these, making adjustments for your particular project of course, here:Edit scheme... > Expand the Run mode in the sidebar > Pre-actions > Click '+' > New Run Script Action.It doesn't solve the underlying issue, but perhaps Apple will if they recieve bug reports.
Jul ’15
xCode Server sometimes picks up wrong target when building test scheme
Hello everyone,We want to use xCode Server to run automated tests, and we encouter a problem here. xCode Server picks up wrong target when it builds the test scheme.Here is the details. We have three targets, call it OurApp, OurApp-ent, and AutomatedTests. The AutomatedTests target is a test target with host application being set to OurApp. A scheme called AutomatedTests is created based on the AutomatedTests target. So this scheme SHOULD only depend on the OurApp target and it should NOT depend on OurApp-ent target. If we build or run this AutomatedTests scheme within xCode, it works fine. It builds only the AutomatedTests target and the OurApp target.Then we create a Bot based on this AutomatedTests scheme. Then we have trouble. Sometimes xCode Server just builds the OurApp and AutomatedTests targets. This is correct. But SOMETIMES, xCode Server decides to build the OurApp-ent target as well, without any change in the source code or the settings! And this will fail becaus
2
0
446
Jun ’15
SwiftUI Previews for Watch Fail When Scheme Includes iOS App
I have a Watch companion app. The SwiftUI previews fail to build for the watch app. The errors indicate it is trying to build Swift package targets that are meant for iOS only, not the watch. The watch does not include these dependencies so it is perplexing it will try to build them. Digging into the scheme for the watch app, it includes the iOS target as you can see the screenshot. This seems to be the default when you create a new watch target. If I uncheck the boxes for the iOS target, previews will build fine. But I think this means that each time I build my Watch target, it will not simultaneously build my iOS target. I'm not sure of the impact of that. Is this a known limitation with Previews? Is there another workaround?
8
0
2.8k
Jan ’24
Xcode Cloud macOS won't run test scheme - "Failed to load the test bundle"
I'm new to Xcode cloud - working with a Mac OS app, build is working great. Now I am trying to add a Test action; the testing target builds but won't run, and the error indicates it can't find the testing bundle in the expected build output. There's also mention of a code signing error, but I have automatic code signing enabled with the same settings on test target as the app. I am only running the unit test (XCTest) scheme, not the UI tests. When I run it locally from the IDE it works fine, either selecting the test scheme explicitly or as the test step of the app scheme. I notice the XCTest target's scheme setup uses Debug builds and expects the test output to be in the Debug .app bundle, I thought perhaps that was the problem (in case only the release app bundle actually gets built in the Xcode Cloud environment). So I created a duplicate scheme and set the build targets to Release - again I can run this fine locally (after creating a release build), but it fail
11
0
5.3k
Dec ’22
Reply to Citrix Workspace (formerly Receiver) Certificate Trust Error - Beta1
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) You can then add this certificate into keychain.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’19
Reply to Extraneous http request being made by AVFoundation
I thought reserved schemes like HTTP and HTTPS will not work if we use AVAssetResourceLoaderDelegate. It's great if these schemes also work with that mechanisms.
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to How to handle URL Image if has non English characters SwiftUI
Actually it does the reason I didn't write https:// because site didn't allow me to write scheme that's why I write url without scheme.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’21
Reply to How to I archive macros into a static library as xcframework?
[quote='806051022, DTS Engineer, /thread/764739?answerId=806051022#806051022'] What is the scheme here? [/quote] Scheme is name of my macros's target
Replies
Boosts
Views
Activity
Sep ’24
Reply to Preview crashes consistency in Xcode 16 beta
Seeing similar. SPM previews work—when selecting appropriate scheme—but main app previews don't, failing to launch with very unhelpful message. Tried all the usual resets, cache deletions, restarts and rebuilds, to no avail. Have filed FB13954069 with report and diagnostics.
Replies
Boosts
Views
Activity
Jun ’24
Context menus, alerts, popovers and tips do not respect preferred color scheme
It seems like some UI elements just don't use the preferred color scheme of their parent element: import SwiftUI struct ContentView: View { var body: some View { VStack { Button(Hold Me) { } .contextMenu(ContextMenu(menuItems: { Button(I should be dark) { } })) } .padding() .preferredColorScheme(.dark) } } If you set the device appearance to dark, then the context menu shows the correct color scheme. Setting .preferredColorScheme(.dark) to Button directly doesn't help. Aside from context menus, this applies to all sorts of elements: popovers, alerts, tips, ... Is there a workaround for this? Apple folks: FB13391355
Replies
0
Boosts
0
Views
674
Activity
Nov ’23
Reply to Using handleExternalEvents scene modifier to route external events to the correct scene
Thank you for your post. When utilizing Universal Links to initiate a call to your application, the delegate that will be invoked in SwiftUI is: func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { You can see that and how it works in the link: https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app In case you are using deep linking to call your app, how have you registered the link in the info.plist? Scene Matching Rules: The handlesExternalEvents(matching:) modifier is used to specify which external events a scene should respond to. Ensure Correct URL Schemes: Double-check that the URL schemes you're trying to handle match exactly with what your app is set up to receive. For deep links like Companion://, ensure that this scheme is properly registered in your Info.plist under the CFBundleURLTypes key.
xml
 Review Scene Initialization: Your URLHandlerScene is initialized with a tem
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to How can I use private AI agents in Xcode 26.3?
This is a different issue, which a long-standing bug in Xcode Intelligence. Many model providers don't support the /v1/models uri, and Xcode chokes on it. You can probably work around the problem with a proxy like tingly-box, but it's one more thing to set up.
Replies
Boosts
Views
Activity
Feb ’26
Reply to A signed resource has been added, modified, or deleted
The problem seems to be that extension targets that contain swift code aren't being handled properly.There's a workaround for this given in stackoverflow:You can put the following in your scheme so that it executes with every build:rm -rf ~/Library/Developer/Xcode/DerivedData/YourAppName-*/Build/Products/Debug-iphoneos/com.yourcompany.Name.extension.*Or, alternatively:touch ${PROJECT_DIR}/SOME SWIFT FILE IN EXTENSION.SWIFTYou need to add either of these, making adjustments for your particular project of course, here:Edit scheme... > Expand the Run mode in the sidebar > Pre-actions > Click '+' > New Run Script Action.It doesn't solve the underlying issue, but perhaps Apple will if they recieve bug reports.
Replies
Boosts
Views
Activity
Jul ’15
Unit test environment in scheme is gone?
I use ProcessInfo.processInfo.environment[key] to get test parameters, but all of a sudden I could not find the UI like below: In the screenshot above, the 2 environment variables were actually what I entered for the unit test target. I don't have any idea why they were moved there! Any similar problems?
Replies
2
Boosts
0
Views
1.7k
Activity
Mar ’24
xCode Server sometimes picks up wrong target when building test scheme
Hello everyone,We want to use xCode Server to run automated tests, and we encouter a problem here. xCode Server picks up wrong target when it builds the test scheme.Here is the details. We have three targets, call it OurApp, OurApp-ent, and AutomatedTests. The AutomatedTests target is a test target with host application being set to OurApp. A scheme called AutomatedTests is created based on the AutomatedTests target. So this scheme SHOULD only depend on the OurApp target and it should NOT depend on OurApp-ent target. If we build or run this AutomatedTests scheme within xCode, it works fine. It builds only the AutomatedTests target and the OurApp target.Then we create a Bot based on this AutomatedTests scheme. Then we have trouble. Sometimes xCode Server just builds the OurApp and AutomatedTests targets. This is correct. But SOMETIMES, xCode Server decides to build the OurApp-ent target as well, without any change in the source code or the settings! And this will fail becaus
Replies
2
Boosts
0
Views
446
Activity
Jun ’15
SwiftUI Previews for Watch Fail When Scheme Includes iOS App
I have a Watch companion app. The SwiftUI previews fail to build for the watch app. The errors indicate it is trying to build Swift package targets that are meant for iOS only, not the watch. The watch does not include these dependencies so it is perplexing it will try to build them. Digging into the scheme for the watch app, it includes the iOS target as you can see the screenshot. This seems to be the default when you create a new watch target. If I uncheck the boxes for the iOS target, previews will build fine. But I think this means that each time I build my Watch target, it will not simultaneously build my iOS target. I'm not sure of the impact of that. Is this a known limitation with Previews? Is there another workaround?
Replies
8
Boosts
0
Views
2.8k
Activity
Jan ’24
Reply to SwiftUI Preview: Updating took more than 5 seconds for non-main target (framework target)
I've the same problem. Preview on iOs scheme is working fine but if I switch to macOS scheme I got the same error. Did you find a fix?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to VPA info: plugin is INTEL, AVD_id = 1080020, AVD_api.Create:0x110adff2c
You can disable that log with: 1 - From Xcode menu open: Product > Scheme > Edit Scheme 2 - On your Environment Variables set OS_ACTIVITY_MODE = disable
Replies
Boosts
Views
Activity
Dec ’22
Xcode Cloud macOS won't run test scheme - "Failed to load the test bundle"
I'm new to Xcode cloud - working with a Mac OS app, build is working great. Now I am trying to add a Test action; the testing target builds but won't run, and the error indicates it can't find the testing bundle in the expected build output. There's also mention of a code signing error, but I have automatic code signing enabled with the same settings on test target as the app. I am only running the unit test (XCTest) scheme, not the UI tests. When I run it locally from the IDE it works fine, either selecting the test scheme explicitly or as the test step of the app scheme. I notice the XCTest target's scheme setup uses Debug builds and expects the test output to be in the Debug .app bundle, I thought perhaps that was the problem (in case only the release app bundle actually gets built in the Xcode Cloud environment). So I created a duplicate scheme and set the build targets to Release - again I can run this fine locally (after creating a release build), but it fail
Replies
11
Boosts
0
Views
5.3k
Activity
Dec ’22
Reply to Citrix Workspace (formerly Receiver) Certificate Trust Error - Beta1
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) You can then add this certificate into keychain.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’19