Search results for

“file uri scheme”

85,537 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
756
Jul ’20
Failed to build the scheme on Preview canvas
I am developing a multi-platform app. Added a package that imports UIKit to the project under development. Changed Allow any platform to iOS in the framework settings of the project. In the source using the library, #if os(iOS) is applied to iOS only. The project compiles without errors on iOS and macOS and runs normally. It works normally in the preview canvas of iOS. The preview canvas on macOS throws a UIKit error in the library. With just a few lines of code you can check this error. [Package] import UIKit <-------- public struct MyLibrary { public private(set) var text = Hello, World! public init() { } } [Project] import SwiftUI #if os(iOS) <--------------- import MyLibrary #endif struct ContentView: View { var body: some View { VStack { Image(systemName: globe) .imageScale(.large) .foregroundColor(.accentColor) Text(Hello, world!) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
0
0
1.7k
Jul ’22
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 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 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 App Custom URL to be available only for Managed Apps
I'm not positive, but I believe the Managed Open In restrictions also affect opening apps via custom URL schemes. For example, if the allowOpenFromManagedToUnmanaged restriction is applied, when a managed app calls open with a custom URL scheme, and the app that handles that scheme is unmanaged, I would expect the call to fail.
Replies
Boosts
Views
Activity
Jun ’24
Reply to IOS Extremelly high CPU usage when using Metal
You can either click the scheme popup button to edit a particular scheme, or press Command+Option+R to edit the current scheme and then run.The settings you're looking for are GPU Frame Capture and Metal API Validation. Set both to Disabled to avoid this runtime overhead.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’16
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
756
Activity
Jul ’20
Failed to build the scheme on Preview canvas
I am developing a multi-platform app. Added a package that imports UIKit to the project under development. Changed Allow any platform to iOS in the framework settings of the project. In the source using the library, #if os(iOS) is applied to iOS only. The project compiles without errors on iOS and macOS and runs normally. It works normally in the preview canvas of iOS. The preview canvas on macOS throws a UIKit error in the library. With just a few lines of code you can check this error. [Package] import UIKit <-------- public struct MyLibrary { public private(set) var text = Hello, World! public init() { } } [Project] import SwiftUI #if os(iOS) <--------------- import MyLibrary #endif struct ContentView: View { var body: some View { VStack { Image(systemName: globe) .imageScale(.large) .foregroundColor(.accentColor) Text(Hello, world!) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
Replies
0
Boosts
0
Views
1.7k
Activity
Jul ’22
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 Why does Xcode 12 beta report "unexpectedly called multiple times.:
Check the release notes - I'd wonder if has to do w/the new vend schemes... Create a fresh sample using an applicable template and see if those calls persist. Feel free to file bugs against the beta, being sure to add your report #(s) to your thread for ref., thanks and good luck.
Replies
Boosts
Views
Activity
Sep ’20
Reply to My iOS application cannot connect to the Sandbox environment.
The subscription success popup now always shows the environment as “xcode. When you enable StoreKit Testing in Xcode, all your purchases occur in the local environment. When you disable StoreKit Testing in Xcode , purchases occur in the sandbox environment. To test in the sandbox, remove the StoreKit configuration file from your scheme's run options.
Replies
Boosts
Views
Activity
Feb ’25
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
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 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 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
Reply to Command line Build Issue - xcodebuild - Xcode 15.1
I fixed the issue by deleting and re-adding the test scheme for one of my internal frameworks in the Schemes management screen. This resolved the problem with xcodebuild.
Replies
Boosts
Views
Activity
Sep ’24