Search results for

“file uri scheme”

81,710 results found

Post

Replies

Boosts

Views

Activity

Reply to xcodeproj and Swift package localization
Thanks, I filed feedback: https://feedbackassistant.apple.com/feedback/7763715 With regards to the recommendation to use xcodebuild. I am aware that I can use xcodebuild to build even platform-specific, e.g. xcodebuild -scheme SomePackage -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build but I was under the impression that Xcode project might still be required in certain situations?!? For example testing may lead to error like the following xcodebuild: error: Scheme SomePackage is not currently configured for the test action. which I don't encounter when building with -project SomePackage.xcodeproj option
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’20
Reply to I could not see my text file at my files
You'll have to specify the path to the file. When you are running in the Xcode debugger, you may be able to specify that in the scheme settings somewhere. Normally these kinds of simple apps are designed to be compiled and run from the command line. In this case watch.txt would be located in the current working directory of wherever your Terminal shell happened to be using at that time.
Dec ’24
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.6k
Jul ’22
Reply to Can't Test StoreKit in Sandbox or Xcode
One thing you can do in Xcode 12 is to test purchases in the simulator, if you set up a StoreKit Configuration file and enable it in the project scheme... Then you can do the full range of purchase testing in the simulator. On device Sandbox should still present a login (make sure your scheme does not have a StoreKit configuration active if you want to test using Sandbox), if you go to Settings->AppStore are you already logged in to a testing account? If you are it would not present a new login. I get the same crash in Xcode using the Transactions window and clicking on manage subscriptions, though Xcode 12.2 seems to have a release candidate now and that might fix things.
Topic: App & System Services SubTopic: StoreKit Tags:
Nov ’20
Reply to Why SFSymbol "face.smiling" will changed to "face.smiling.fill" when switching to dark mode.
Environment Variable? I know in SwiftUI you can: struct SmileyFaceView: View { @Environment(.colorScheme) var scheme var body: some View { Image(systemName: face.smiling) .foregroundColor(scheme == .light ? .black : .white) // this is to change to color according to the scheme .environment(.colorScheme, .light) // This is to force the icon to the face.smily } } for your need not sure in UIKit
Topic: Design SubTopic: General Tags:
Sep ’22
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 XCode: uncaught exception of type NSException on ios 9-10 vs ios 11
Issue was resolved by enabling OS_ACTIVITY_MODE variable. I believe I disabled it in XCode 8 to prevent unwanted output.Select from Xcode menu Product -> Scheme -> Edit Scheme.. Select the Run scheme and look under Arguments. If you see the OS_ACTIVITY_MODE variable checked, deselect it.
Replies
Boosts
Views
Activity
Feb ’18
Reply to xcodeproj and Swift package localization
Thanks, I filed feedback: https://feedbackassistant.apple.com/feedback/7763715 With regards to the recommendation to use xcodebuild. I am aware that I can use xcodebuild to build even platform-specific, e.g. xcodebuild -scheme SomePackage -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build but I was under the impression that Xcode project might still be required in certain situations?!? For example testing may lead to error like the following xcodebuild: error: Scheme SomePackage is not currently configured for the test action. which I don't encounter when building with -project SomePackage.xcodeproj option
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’20
Reply to How Can I Debug With WidgetKit Extension?
I was running the extension scheme and still not seeing breakpoints or print statements. I got it to work by having the widget extension running, and then running the application scheme.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to I could not see my text file at my files
You'll have to specify the path to the file. When you are running in the Xcode debugger, you may be able to specify that in the scheme settings somewhere. Normally these kinds of simple apps are designed to be compiled and run from the command line. In this case watch.txt would be located in the current working directory of wherever your Terminal shell happened to be using at that time.
Replies
Boosts
Views
Activity
Dec ’24
Reply to Screenshot iPhone iPad for App Store
It is quite common to use simulator screenshots.View at 100% (even if that means going larger than you can view on your monitor), then use the simulator's menu to capture/save.Crop/resize down as needed via your favorite image editor, then save, being aware of applicable file naming schemes, etc.
Replies
Boosts
Views
Activity
Jan ’19
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
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.6k
Activity
Jul ’22
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
Reply to ASWebAuthenticationSession Not Recognizing LinkedIn https Redirect
I faced the same issue. What I have found out is ASWebAuthenticationSession only uses custom URL scheme. I tried with universal link, still does not work. Callback is not happening back to the app. I would suggest you to use WKWebview for http/https scheme or use custom URL scheme.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’20
Reply to Can't Test StoreKit in Sandbox or Xcode
One thing you can do in Xcode 12 is to test purchases in the simulator, if you set up a StoreKit Configuration file and enable it in the project scheme... Then you can do the full range of purchase testing in the simulator. On device Sandbox should still present a login (make sure your scheme does not have a StoreKit configuration active if you want to test using Sandbox), if you go to Settings->AppStore are you already logged in to a testing account? If you are it would not present a new login. I get the same crash in Xcode using the Transactions window and clicking on manage subscriptions, though Xcode 12.2 seems to have a release candidate now and that might fix things.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’20
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 Why SFSymbol "face.smiling" will changed to "face.smiling.fill" when switching to dark mode.
Environment Variable? I know in SwiftUI you can: struct SmileyFaceView: View { @Environment(.colorScheme) var scheme var body: some View { Image(systemName: face.smiling) .foregroundColor(scheme == .light ? .black : .white) // this is to change to color according to the scheme .environment(.colorScheme, .light) // This is to force the icon to the face.smily } } for your need not sure in UIKit
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
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