Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

URL scheme in Info.plist
I use the following entry in Info.plist to make the program handle the tidal url scheme, but it launches the program without the URL itself. The entry is: keyCFBundleURLTypes/key array dict keyCFBundleTypeRole/key stringViewer/string keyCFBundleURLName/key stringorg.strawberrymusicplayer.strawberry/string keyCFBundleURLSchemes/key array stringtidal/string /array /dict /array Full Info.plist here: https://github.com/strawberrymusicplayer/strawberry/blob/master/dist/macos/Info.plist.in The URL looks like this: tidal://login/auth With the url parameters that contains the authorization code, the total length is 692 characters. It works fine on Linux and Windows, but not on macOS. I've tested both with Safari and Firefox. Is the URL perhaps too long?
1
0
11k
Apr ’21
Scheme Setting Not Persisting For Associated Target
I have an Xcode 15.4 project with 4 targets (i.e. 2 UI and 2 CLI). Next, I'm looking to set a unique scheme for each target but it keeps changing to one of the previously set schemes. For example, I have the following four targets and I would like to have the associated: Target 1 - > Scheme 1 Target 2 -> Scheme 2 Target 3 -> Scheme 3 Target 4 -> Scheme 4 When the target is selected, shouldn't the corresponding scheme be updated in the Xcode toolbar? Or is there a setting that I'm missing to enable/disable within Xcode that would resolve this issue? Finally, I'm seeing similar behavior in Xcode 16 beta 1.
1
0
503
Jun ’24
Force color scheme at the press of a button
This is once again about that Lunch Card app. There's a section in my app's settings that controls the appearance - color scheme, if you will - of the whole app. The three options are System Default Light Dark The picker is set up, and it works as normal, but what would I specify the action of these buttons to be to force a certain color scheme, whether that be dark, light, or auto. Here's the code for where the picker is: struct SettingsView: View { @State private var selectedAppearance = 1 var body: some View { // ... Picker(selection: $selectedAppearance, label: Text(Appearance)) { Button(action: { // Change app color scheme to be auto }) { Text(System Default) }.tag(1) Button(action: { // Change app color scheme to be light }) { Text(Light) }.tag(2) Button(action: { // Change app color scheme to be dark }) { Text(Dark) }.tag(3) } // ... }
9
0
7.0k
Jan ’21
Reply to touchesMoved in SwiftUI?
As promised, here's a sample:import SwiftUI struct ContentView: View { @GestureState var translation: CGSize = .zero var body: some View { Circle() .fill(Color.blue) .frame(width: 100, height: 100) .offset(translation) .gesture(DragGesture().updating($translation) { value, state, _ in state = value.translation }) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’19
Reply to NSPanGestureRecognizer.LocationInView not accounting for Transform
Maybe the problem I'm having is not related to the loactionInView, but the way I'm translating a view. In IOS, I set myView.transform and that affects the frame coordinate system of the view, but in macOS there is no transform in view, so I'm setting myView.layer.transform, and this seems to be ignored by the frame coordinate system, despite it works to translate the object. Is there any way to set a translation so the frame is also altered accordingly?
Topic: UI Frameworks SubTopic: AppKit Tags:
Dec ’17
photos-navigation://album scheme
In my app SexyPeri (https://apps.apple.com/fr/app/id6738291985), I create an album with some pics Album is called SexyPeri Now, I wish to redirect the user from my app SexyPeri DIRECTLY to the album SexyPeri There is no doc about your scheme photos-navigation, or I didn't see it. Some guys retro-engineered it, but I couldn't make this work. photos-navigation://album?name=SexyPeri doesn't work. So my question is: how can I redirect to the album directly ?
1
0
421
Jan ’25
Scheme is not currently configured for the build action.
In the Resolve package dependencies step I see this error occur: Scheme is not currently configured for the build action. I cannot reproduce locally. When I run the command: xcodebuild -resolvePackageDependencies it finishes fine. I'm on Xcode 13.4.1 and MacOS 12.4.1 Other things I've tried: Verified scheme is in the workspace (not the project) Deleted all schemes and auto created schemes again Recreating the build action in the scheme Enabled all actions in the scheme
5
0
5.3k
Sep ’22
Reply to Import localizations error: "Two files will try to write translations to same path"
I have investigated this problem a little further. I exported using the Product > Export Localizations... > MyApp Workspace... option, then imported the xcloc file to the project without any touch. I got the same error. I exported using the Product > Export Localizations... > MyApp... option, then imported the xcloc file to the project without any touch. This time I didn't get the error above, instead, I got a warning window, full of Empty Translations and Over-Localized Do not Translate warnings. Strangely, these warning are mostly about the note lines of the translations, that are written between /* and */ tags. These lines are coming from comment strings in the example code below: NSLocalizedString(Hello!, comment: Greeting in the welcome screen) You aren't supposed to translate Greeting in the welcome screen here, but Xcode gives Empty Translations warnings about them. I wonder why.
May ’22
Reply to How to fix Subtitle?
If you are having trouble with subtitles, please follow these steps: Check your subtitle file and make sure it is the same format as your video file. Ensure that the subtitle file is in the same folder as the video file. Make sure the subtitle file has the same name as the video file. If the subtitle file is stored in a different folder than the video file, use a full path when loading the subtitle file. I recently used https://ekitaisolutions.com/ to translate something into Nepali for a project, and I'm very happy with how it turned out. They have a team of professional, skilled translators who can do any job. The translations were perfect, and the customer service was great. I think that anyone who wants a good translation should use this service.
Apr ’23
Reply to I encountered some problems while developing the default translation app.
I have followed the steps in the documentation to create a default translation app extension, but I am unable to launch my project. https://developer.apple.com/documentation/translationuiprovider/preparing-your-app-to-be-the-default-translation-app
Replies
Boosts
Views
Activity
Apr ’25
URL scheme in Info.plist
I use the following entry in Info.plist to make the program handle the tidal url scheme, but it launches the program without the URL itself. The entry is: keyCFBundleURLTypes/key array dict keyCFBundleTypeRole/key stringViewer/string keyCFBundleURLName/key stringorg.strawberrymusicplayer.strawberry/string keyCFBundleURLSchemes/key array stringtidal/string /array /dict /array Full Info.plist here: https://github.com/strawberrymusicplayer/strawberry/blob/master/dist/macos/Info.plist.in The URL looks like this: tidal://login/auth With the url parameters that contains the authorization code, the total length is 692 characters. It works fine on Linux and Windows, but not on macOS. I've tested both with Safari and Firefox. Is the URL perhaps too long?
Replies
1
Boosts
0
Views
11k
Activity
Apr ’21
Reply to Localization of 3D Touch shortcuts?
For static shortcuts you put the translation key in the Info.plist where you define your shortcuts. E. g. UIApplicationShortcutItemTitle: translationKeyYou add the translations then in the localized InfoPlist.strings files. translationKey = My localized title;
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Scheme Setting Not Persisting For Associated Target
I have an Xcode 15.4 project with 4 targets (i.e. 2 UI and 2 CLI). Next, I'm looking to set a unique scheme for each target but it keeps changing to one of the previously set schemes. For example, I have the following four targets and I would like to have the associated: Target 1 - > Scheme 1 Target 2 -> Scheme 2 Target 3 -> Scheme 3 Target 4 -> Scheme 4 When the target is selected, shouldn't the corresponding scheme be updated in the Xcode toolbar? Or is there a setting that I'm missing to enable/disable within Xcode that would resolve this issue? Finally, I'm seeing similar behavior in Xcode 16 beta 1.
Replies
1
Boosts
0
Views
503
Activity
Jun ’24
Force color scheme at the press of a button
This is once again about that Lunch Card app. There's a section in my app's settings that controls the appearance - color scheme, if you will - of the whole app. The three options are System Default Light Dark The picker is set up, and it works as normal, but what would I specify the action of these buttons to be to force a certain color scheme, whether that be dark, light, or auto. Here's the code for where the picker is: struct SettingsView: View { @State private var selectedAppearance = 1 var body: some View { // ... Picker(selection: $selectedAppearance, label: Text(Appearance)) { Button(action: { // Change app color scheme to be auto }) { Text(System Default) }.tag(1) Button(action: { // Change app color scheme to be light }) { Text(Light) }.tag(2) Button(action: { // Change app color scheme to be dark }) { Text(Dark) }.tag(3) } // ... }
Replies
9
Boosts
0
Views
7.0k
Activity
Jan ’21
Reply to How to localize permission description string?
I've created a String catalog named InfoPlist.xcstrings and built the project. XCode recognized it and added all the strings that need translations. I've added the translations and it all worked well.
Replies
Boosts
Views
Activity
Nov ’24
Reply to iOS 15.0 NSInternalInconsistencyException eason: 'Shouldn't have translate session'
I saw a post saying that long press translation in UITextField caused the crash. You overload the method: - (BOOL)canPerformAction:(SEL)action withSender:(id)sender,Then disable the translation function
Replies
Boosts
Views
Activity
Oct ’22
Reply to touchesMoved in SwiftUI?
As promised, here's a sample:import SwiftUI struct ContentView: View { @GestureState var translation: CGSize = .zero var body: some View { Circle() .fill(Color.blue) .frame(width: 100, height: 100) .offset(translation) .gesture(DragGesture().updating($translation) { value, state, _ in state = value.translation }) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’19
Reply to NSPanGestureRecognizer.LocationInView not accounting for Transform
Maybe the problem I'm having is not related to the loactionInView, but the way I'm translating a view. In IOS, I set myView.transform and that affects the frame coordinate system of the view, but in macOS there is no transform in view, so I'm setting myView.layer.transform, and this seems to be ignored by the frame coordinate system, despite it works to translate the object. Is there any way to set a translation so the frame is also altered accordingly?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Dec ’17
photos-navigation://album scheme
In my app SexyPeri (https://apps.apple.com/fr/app/id6738291985), I create an album with some pics Album is called SexyPeri Now, I wish to redirect the user from my app SexyPeri DIRECTLY to the album SexyPeri There is no doc about your scheme photos-navigation, or I didn't see it. Some guys retro-engineered it, but I couldn't make this work. photos-navigation://album?name=SexyPeri doesn't work. So my question is: how can I redirect to the album directly ?
Replies
1
Boosts
0
Views
421
Activity
Jan ’25
Xcode 26.4 does not restore the most recent scheme
When opening a project or workspace in Xcode 26.4 the most recently active scheme is not restored. Instead, the scheme reverts to the first scheme in the list. I've tried opening and closing Xcode a few times, and removing the user data for a workspace. No luck. Any suggestions or workarounds?
Replies
0
Boosts
0
Views
24
Activity
2d
Scheme is not currently configured for the build action.
In the Resolve package dependencies step I see this error occur: Scheme is not currently configured for the build action. I cannot reproduce locally. When I run the command: xcodebuild -resolvePackageDependencies it finishes fine. I'm on Xcode 13.4.1 and MacOS 12.4.1 Other things I've tried: Verified scheme is in the workspace (not the project) Deleted all schemes and auto created schemes again Recreating the build action in the scheme Enabled all actions in the scheme
Replies
5
Boosts
0
Views
5.3k
Activity
Sep ’22
Reply to Import localizations error: "Two files will try to write translations to same path"
I have investigated this problem a little further. I exported using the Product > Export Localizations... > MyApp Workspace... option, then imported the xcloc file to the project without any touch. I got the same error. I exported using the Product > Export Localizations... > MyApp... option, then imported the xcloc file to the project without any touch. This time I didn't get the error above, instead, I got a warning window, full of Empty Translations and Over-Localized Do not Translate warnings. Strangely, these warning are mostly about the note lines of the translations, that are written between /* and */ tags. These lines are coming from comment strings in the example code below: NSLocalizedString(Hello!, comment: Greeting in the welcome screen) You aren't supposed to translate Greeting in the welcome screen here, but Xcode gives Empty Translations warnings about them. I wonder why.
Replies
Boosts
Views
Activity
May ’22
Reply to Is there a uiscrollview programming guide that is written is swift?
Search for UIScrollView tutorials written in Swift. Internet is full of them. 🙂 If you have a specific problem post it here so we can help. Also it's quite easy to translate Objective-C code to Swift and there are also online translation tools for that.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to How to fix Subtitle?
If you are having trouble with subtitles, please follow these steps: Check your subtitle file and make sure it is the same format as your video file. Ensure that the subtitle file is in the same folder as the video file. Make sure the subtitle file has the same name as the video file. If the subtitle file is stored in a different folder than the video file, use a full path when loading the subtitle file. I recently used https://ekitaisolutions.com/ to translate something into Nepali for a project, and I'm very happy with how it turned out. They have a team of professional, skilled translators who can do any job. The translations were perfect, and the customer service was great. I think that anyone who wants a good translation should use this service.
Replies
Boosts
Views
Activity
Apr ’23