Search results for

“file uri scheme”

81,708 results found

Post

Replies

Boosts

Views

Activity

Determine difference between build/clean/archive in Scheme pre/post actions
When running scripts in the Scheme's build pre/post actions, I have been struggling to determine the difference between when the action has been run through a Build, Clean or Archive. The motivation in this case is that I have a Build Post-action that increments build numbers after building^[1]. So far the best solution I have come up with is to select the Provide build settings from and then specify my target. This way I can detemine some things from the environment variables in the script, for example: ACTION is empty when building/cleaning both Debug and Release builds, but set to install when archiving. CONFIGURATION is set to Debug/Release when building/cleaning Debug/Release builds respectively. The biggest gripe I have is that I haven't found a way to determine if a clean is being run vs a build - especially if you relate it to the motivating example that is incrementing build numbers, you don't want them to increment on a clean! Does anyone know of a way to do this? Alternatively, does anyone
1
0
719
Jul ’20
Reply to Unable to use the Enterprise App Store Connect APIs from xcodebuild
@madsolar8582 xcodebuild clean archive -workspace MyApp.xcworkspace -scheme MyApp -configuration Release -archivePath results/artifacts/App.xcarchive -destination generic/platform=iOS -derivedDataPath build -allowProvisioningUpdates -authenticationKeyID **** -authenticationKeyIssuerID **** -authenticationKeyPath /Users/MyUser/MyKey.p8 Running xcodebuild with the authentication API keys only supports exporting archives. This workflow doesn't support building and archiving. To upload your binary, first archive your binary, create a plist file that configures archive exporting, gather your Enterprise Authentication API keys from the portal, then run the following command in Terminal: xcodebuild -exportArchive -archivePath -exportPath -exportOptionsPlist -allowProvisioningUpdates -authenticationKeyPath -authenticationKeyID -authenticationKeyIssuerID The -exportArchive option specifies that xcodebuild should distribute the archive specified by -archivePath using the options specified by -ex
Sep ’24
Reply to SwiftUI Previews Not Working In Swift Packages (XCode 15 beta 6)
I’m seeing the same “FailedToInstallAppError: Failed to install ”XCPreviewAgent.app” Could not install the preview host ”XCPreviewAgent.app” on iPhone 14 Pro” issue (with the same beta build of Xcode 15). In my case, I have a PreviewProvider declared in a file in a framework that is embedded in an app target. The current scheme is configured to launch the app.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’23
Reply to MTLDebugRenderCommandEncoder Error from Swift Charts
As a workaround you can try disabling Metal API Validation when editing the project's scheme under Options and see if that unblocks you. It may also be helpful if you could file a Feedback Assistant report for Swift Charts throwing this error with a reproducible sample or crash log when detached from the debugger. If you can do this please provide the feedback assistant ID here.
Topic: Graphics & Games SubTopic: General Tags:
Nov ’23
Reply to HELP WITH SUBSCRIPTIONS
If you are using SubscriptionStoreView with groupID overload, make sure the groupID entered is matching with the one in App Store Connect, not the one from your Xcode StoreKit configuration file. In Xcode testing, you need a StoreKit config file, and make sure to select Edit Scheme -> Options tab and select StoreKit Configuration to the correct configuration file. But this does not affect your App Store version. You might need to handle unfinished transactions. Take a look at sample code from WWDC25 on StoreKit 2.
Topic: App & System Services SubTopic: StoreKit Tags:
Jan ’26
Reply to UIPickerview as inputview to UITextfield shows weird behavior - shows Keyboard instead of picker selection for working code
How are you sure textDidBeginEditing is not called at all ?console log didn't print for me.Now I am not able to recreate the issue in the release scheme. Now it's working as expected.Not sure how it got fixed. maybe switching between schemes?Have you ever faced similar issues in the past due to any scheme/target issues?
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’19
Reply to WKURLSchemeHandler and fetch
I believe I know the root of this issue. In my case, the webview has its base URL set as a valid location, with a scheme of https. WKWebView sees custom schemes as insecure. WKWebView also does not allow pages loaded with a secure scheme to fetch from domains which are not secure. If I set the base url of my page to nil or an http URL, fetch loads from the custom scheme handler as expected. I haven't yet found any way to change the policy to allow the insecure fetch to proceed.
Topic: Safari & Web SubTopic: General Tags:
Mar ’23
Reply to Xcode debugger doesn't pause on breakpoints (simulator SDK < iOS 17)
Hey guys. There is temporary (I hope) solution to this issue: Scheme -> Edit Scheme Select Wait for executable to be launched Launch an app manually
Replies
Boosts
Views
Activity
Jan ’24
Reply to xcodebuild returns "Error: No such module"
Thanks, the solution with the '-scheme' worked for me but it is odd that the same result can't be achieved with the '-target' parameter. There is only one scheme for a target so what could even go wrong here?
Replies
Boosts
Views
Activity
Feb ’23
Determine difference between build/clean/archive in Scheme pre/post actions
When running scripts in the Scheme's build pre/post actions, I have been struggling to determine the difference between when the action has been run through a Build, Clean or Archive. The motivation in this case is that I have a Build Post-action that increments build numbers after building^[1]. So far the best solution I have come up with is to select the Provide build settings from and then specify my target. This way I can detemine some things from the environment variables in the script, for example: ACTION is empty when building/cleaning both Debug and Release builds, but set to install when archiving. CONFIGURATION is set to Debug/Release when building/cleaning Debug/Release builds respectively. The biggest gripe I have is that I haven't found a way to determine if a clean is being run vs a build - especially if you relate it to the motivating example that is incrementing build numbers, you don't want them to increment on a clean! Does anyone know of a way to do this? Alternatively, does anyone
Replies
1
Boosts
0
Views
719
Activity
Jul ’20
Reply to Unable to use the Enterprise App Store Connect APIs from xcodebuild
@madsolar8582 xcodebuild clean archive -workspace MyApp.xcworkspace -scheme MyApp -configuration Release -archivePath results/artifacts/App.xcarchive -destination generic/platform=iOS -derivedDataPath build -allowProvisioningUpdates -authenticationKeyID **** -authenticationKeyIssuerID **** -authenticationKeyPath /Users/MyUser/MyKey.p8 Running xcodebuild with the authentication API keys only supports exporting archives. This workflow doesn't support building and archiving. To upload your binary, first archive your binary, create a plist file that configures archive exporting, gather your Enterprise Authentication API keys from the portal, then run the following command in Terminal: xcodebuild -exportArchive -archivePath -exportPath -exportOptionsPlist -allowProvisioningUpdates -authenticationKeyPath -authenticationKeyID -authenticationKeyIssuerID The -exportArchive option specifies that xcodebuild should distribute the archive specified by -archivePath using the options specified by -ex
Replies
Boosts
Views
Activity
Sep ’24
Reply to SwiftUI Previews Not Working In Swift Packages (XCode 15 beta 6)
I’m seeing the same “FailedToInstallAppError: Failed to install ”XCPreviewAgent.app” Could not install the preview host ”XCPreviewAgent.app” on iPhone 14 Pro” issue (with the same beta build of Xcode 15). In my case, I have a PreviewProvider declared in a file in a framework that is embedded in an app target. The current scheme is configured to launch the app.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to MTLDebugRenderCommandEncoder Error from Swift Charts
As a workaround you can try disabling Metal API Validation when editing the project's scheme under Options and see if that unblocks you. It may also be helpful if you could file a Feedback Assistant report for Swift Charts throwing this error with a reproducible sample or crash log when detached from the debugger. If you can do this please provide the feedback assistant ID here.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to HELP WITH SUBSCRIPTIONS
If you are using SubscriptionStoreView with groupID overload, make sure the groupID entered is matching with the one in App Store Connect, not the one from your Xcode StoreKit configuration file. In Xcode testing, you need a StoreKit config file, and make sure to select Edit Scheme -> Options tab and select StoreKit Configuration to the correct configuration file. But this does not affect your App Store version. You might need to handle unfinished transactions. Take a look at sample code from WWDC25 on StoreKit 2.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to Cannot create a shared texture with iosurface on Apple silicon mac.
This worked for me You should be able to work around it by turning off Metal Validation in Scheme -> Edit Scheme -> Run -> Diagnostics -> Metal API Validation
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Is it allowed to hopover from one app from another app?
Links between apps are fine and and can be achieved by using a custom URL scheme. Apple have some great document on this to get you started.Using URL Schemes to Communicate with Apps- Tom
Replies
Boosts
Views
Activity
Jul ’15
Reply to Generating Memgraph with leaks tool in a UI test does not generate backtraces.
You can also do this in the scheme. In your app's scheme, enable Malloc Stack logging for Live Allocations. This is under Diagnostics. Make sure to enable this in the approprate operation, Run or Test.
Replies
Boosts
Views
Activity
Dec ’19
Reply to Display a popup over the native camera
this sounds like the user of a custom URL scheme. https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app or do you have something else in mind?
Replies
Boosts
Views
Activity
Dec ’24
Reply to UIPickerview as inputview to UITextfield shows weird behavior - shows Keyboard instead of picker selection for working code
How are you sure textDidBeginEditing is not called at all ?console log didn't print for me.Now I am not able to recreate the issue in the release scheme. Now it's working as expected.Not sure how it got fixed. maybe switching between schemes?Have you ever faced similar issues in the past due to any scheme/target issues?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’19
Xcode console color theme/scheme
Hi fellow Saplings,I'm wondering if there is any preference pane where I can set the colors/contents of the output console? I'd like to make my logs more readable (within XCode), and coloring would be quite nice (or changing timestamp formats, etc)...Thanks
Replies
1
Boosts
0
Views
4.8k
Activity
Aug ’17
Reply to Target is null when adding an extension (Device Activity Monitor Extension)
Same Question: This scheme has been created for the “(null)” target. Choose Activate to use this scheme for building and debugging. Schemes can be chosen in the toolbar or Product menu. This problem caused the app extension not working. I used Xcode on another mac to create the app extesion and solve this problem. But not a good idea..
Replies
Boosts
Views
Activity
Oct ’23
Reply to WKURLSchemeHandler and fetch
I believe I know the root of this issue. In my case, the webview has its base URL set as a valid location, with a scheme of https. WKWebView sees custom schemes as insecure. WKWebView also does not allow pages loaded with a secure scheme to fetch from domains which are not secure. If I set the base url of my page to nil or an http URL, fetch loads from the custom scheme handler as expected. I haven't yet found any way to change the policy to allow the insecure fetch to proceed.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’23