Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Build scheme for App disappears.
Hi. I am developing an App with Network Extension, and when I use git stash or checkout, the Build scheme for App disappears and only the Build scheme for Extension remains. When I restart Xcode, the Build Scheme for App appears, but it is hard to restart it every time. So, please tell me how to solve this problem. Now I'm using Xcode Version 14.0.1 (14A400) on macOS12.6.
0
0
421
Oct ’22
openUrl with scheme in tvos
I read a post here on these forums where an Apple staff member posted that openUrl with schemes works in TvOS like they do in iOS and the documentation here states the url formats to access a YouTube video in iOS but it's not clear if those work with openURLI'm attempting to open a URL with openURL via an IBAction from a button and I wanted to open YouTube to render the content seeing as how there is no access currently to UIWebView so I can't (without breaking youtube's TOS) render the video directly. I've tested and been able to get access to the direct links with a youtube parser class but again that breaks their TOS so I'm not interested in publishing an app that way.Thanks for any info on the status of url schemes in TvOS
1
0
1.2k
Nov ’15
iOS user with language of "en", no region code, translation lookup fails
We have a bug reported where a user has a device with an en language and nil region code, and thus all NSLocalizedString lookups in are failing, meaning our string key is what is rendered onscreen. Thus, if we had this in our en.lproj/Localizable.strings file: some_key = Some string.; It would render some_key instead of Some string. in our UI. First question: how do I replicate this scenario locally? This question on Stack seems to almost describe the issue, but does not describe how one enters this state. Second question: why would iOS not fall back to English in the event the region code was nil?
3
0
1.6k
Sep ’22
iPhone URL Schemes 2018
Hi,Does anyone know where I can find URL Schemes?I've been following a guide on Stack Overflow but the Schemes no longer seem to workI wish to open the devices do not disturb settings.. I can open the main device setting with this SchemeApp-prefs:root=GeneralBut the following does not work:App-prefs:root=General&path=DO_NOT_DISTURBDoes anyone have any suggestions?
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
2.4k
Jun ’18
SFSafariViewController url scheme issue
As of iOS 10 the SFSafariViewController is no longer working the way it did in iOS 9 with url schemes and getting back to the application after the web page is done. In iOS 9 this worked.Launch url in SFSafariViewController from iOS appHave a button on the web page shown in safari that will set the window.location.href to the url scheme of the app that launched the SFSafariViewControllerapplicationDidBecomeActive was called for the url scheme (same app as in step #1) and SFSafariViewController could be closedIn iOS 10 the step #3 no longer happens.Questions related to iOS 10.What is the proper way to get back to the application that created the SFSafariViewController? Without using Done button.Can you close the SFSafariViewController from the web page? JS window.close() doesn't work.What is called in the app when calling the url scheme from SFSafariViewController? It is no longer applicationDidBecomeActive.
2
0
3.6k
Sep ’16
URL scheme for the Movies app
How would you link to a specific movie in the movies app from your app? Using UIApplication.sharedApplication().openURL and an iTunes link (such as http://geo.itunes.apple.com/us/movie/mad-max-fury-road/id990549112?mt=6) does not work and gives the error LaunchServices: ERROR: There is no registered handler for URL scheme http.Is there an URL scheme for the default Movies app on tvOS and if so, how do you use it to open a specific movie?
5
0
1.4k
Sep ’15
Scheme Destination Toolbar Missing
For one project in XCode, the toolbar near the upper left that shows Scheme and Destination have disappeared. They show when XCode is viewed full screen, but not when smaller. Other projects dont have this issue.I also note that at the upper right corner two right pointing arrows have appeared that show Scheme grayed out. I suspect this is related.How do I get the menus to show normally?
4
0
3.5k
Jul ’15
xCode 6.4 scheme names
Hi,All my active schemes names seem to be corrupted they are showing a GUID rather than the iOS version number.(This is the same in all projects)xCode 6.4 (6E35b)The scheme look likeiPhone 6 (6C .... a guid here ... )iPhone 6 (4A .... a 2nd GUID guid here ... ).... etcRather thaniPhone 6 (8.1)iPhone 6 (8.2).... etcEverything compiles correctly, but it makes it hard to know which version of iOS I am compiling against.I also have xCode 7.0 (&A121l) installed, which shows the Scheme names correctly.Any ideas on how to fix this ?Cheers,Phil
9
0
725
Jul ’15
Xcodebuild archive without scheme
Hello, we want to build our projects with the command line, like :xcodebuild -target OurTarget -configuration OurConfig -archivePath project.xcarchive -scheme OurScheme archiveto be able to then, make a build with :xcodebuild -exportArchive -archivePath project.xcarchive -exportPath build -exportOptionsPlist build/exportOptions.plistThe problem is that we are using a script to export our project which remove all user data like scemes.So, what would be the best solution to use these commands without scheme ?Best regards
1
0
1.7k
Mar ’16
Reply to Is there a way to avoid generating InfoPlist.xcstrings for framework targets?
Hello, Xcode knows that these keys in frameworks are typically not displayed to the user, so it automatically marks them as “Don’t Translate”. This way, they can still be translated if needed by removing the “Don’t Translate” status. When exporting to an xcloc/XLIFF file, the element will have the translate=no attribute to indicate this. That attribute can be removed by the developer or translator if it turns out it does need to be translated (for example because the CFBundleName is being manually looked up and displayed by the framework code).
Jun ’25
Reply to Generic Translation Layer Design
In Xcode 7 beta 2, just using the == operator seems to work to compare meta-types in a playgroundprivate func translatorFor<T:Model>(type: T.Type) -> Translator? { for translator in translators { if translator.modelType == type { return translator } } return nil }
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Mach-O symbol tables: Translating addresses in the main binary to addresses in a corresponding object file
I am trying to understand Mach-O symbol tables and essentially reproduce the output of dsymutil -dump-debug-map. I have a binary with a symbol table that looks like ... [ 157] 00000001 64 (N_SO ) 01 0000 0000000000000000 [ 158] 00003756 64 (N_SO ) 00 0000 0000000000000000 '/path/to/project/' [ 159] 00003773 64 (N_SO ) 00 0000 0000000000000000 'test.cpp' [ 160] 0000377c 66 (N_OSO ) 03 0001 000000006510bf32 '/path/to/project/test.cpp.o' [ 161] 00000001 2e (N_BNSYM ) 01 0000 0000000100004e60 [ 162] 000037bd 24 (N_FUN ) 01 0000 0000000100004e60 '_Z3fooi' [ 163] 00000001 24 (N_FUN ) 00 0000 0000000000000170 [ 164] 00000001 4e (N_ENSYM ) 01 0000 0000000100004e60 [ 165] 00000001 2e (N_BNSYM ) 01 0000 0000000100004fd0 ... [ 213] 00000001 2e (N_BNSYM ) 01 0000 0000000100005470 [ 214] 00003a90 24 (N_FUN ) 01 0000 0000000100005470 '_Z3bari' [ 215] 00000001 24 (N_FUN ) 00 0000 0000000000000020 [ 216] 00000001 4e (N_ENSYM ) 01 0000 0000000100005470 The dumped debug map includes --- triple: 'x86_64-apple-darwin' binary-pat
0
0
641
Sep ’23
Reply to Generic Translation Layer Design
Well, I don't know if I would recommend doing the following in production code, but I'm pretty sure it still worked back in 1.2...private func translatorFor<T:Model>(type: T.Type) -> Translator? { for translator in translators { if (translator.modelType) == (type) { return translator } } return nil }
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Build scheme for App disappears.
Hi. I am developing an App with Network Extension, and when I use git stash or checkout, the Build scheme for App disappears and only the Build scheme for Extension remains. When I restart Xcode, the Build Scheme for App appears, but it is hard to restart it every time. So, please tell me how to solve this problem. Now I'm using Xcode Version 14.0.1 (14A400) on macOS12.6.
Replies
0
Boosts
0
Views
421
Activity
Oct ’22
openUrl with scheme in tvos
I read a post here on these forums where an Apple staff member posted that openUrl with schemes works in TvOS like they do in iOS and the documentation here states the url formats to access a YouTube video in iOS but it's not clear if those work with openURLI'm attempting to open a URL with openURL via an IBAction from a button and I wanted to open YouTube to render the content seeing as how there is no access currently to UIWebView so I can't (without breaking youtube's TOS) render the video directly. I've tested and been able to get access to the direct links with a youtube parser class but again that breaks their TOS so I'm not interested in publishing an app that way.Thanks for any info on the status of url schemes in TvOS
Replies
1
Boosts
0
Views
1.2k
Activity
Nov ’15
iOS user with language of "en", no region code, translation lookup fails
We have a bug reported where a user has a device with an en language and nil region code, and thus all NSLocalizedString lookups in are failing, meaning our string key is what is rendered onscreen. Thus, if we had this in our en.lproj/Localizable.strings file: some_key = Some string.; It would render some_key instead of Some string. in our UI. First question: how do I replicate this scenario locally? This question on Stack seems to almost describe the issue, but does not describe how one enters this state. Second question: why would iOS not fall back to English in the event the region code was nil?
Replies
3
Boosts
0
Views
1.6k
Activity
Sep ’22
iPhone URL Schemes 2018
Hi,Does anyone know where I can find URL Schemes?I've been following a guide on Stack Overflow but the Schemes no longer seem to workI wish to open the devices do not disturb settings.. I can open the main device setting with this SchemeApp-prefs:root=GeneralBut the following does not work:App-prefs:root=General&path=DO_NOT_DISTURBDoes anyone have any suggestions?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
4
Boosts
0
Views
2.4k
Activity
Jun ’18
SFSafariViewController url scheme issue
As of iOS 10 the SFSafariViewController is no longer working the way it did in iOS 9 with url schemes and getting back to the application after the web page is done. In iOS 9 this worked.Launch url in SFSafariViewController from iOS appHave a button on the web page shown in safari that will set the window.location.href to the url scheme of the app that launched the SFSafariViewControllerapplicationDidBecomeActive was called for the url scheme (same app as in step #1) and SFSafariViewController could be closedIn iOS 10 the step #3 no longer happens.Questions related to iOS 10.What is the proper way to get back to the application that created the SFSafariViewController? Without using Done button.Can you close the SFSafariViewController from the web page? JS window.close() doesn't work.What is called in the app when calling the url scheme from SFSafariViewController? It is no longer applicationDidBecomeActive.
Replies
2
Boosts
0
Views
3.6k
Activity
Sep ’16
URL scheme for the Movies app
How would you link to a specific movie in the movies app from your app? Using UIApplication.sharedApplication().openURL and an iTunes link (such as http://geo.itunes.apple.com/us/movie/mad-max-fury-road/id990549112?mt=6) does not work and gives the error LaunchServices: ERROR: There is no registered handler for URL scheme http.Is there an URL scheme for the default Movies app on tvOS and if so, how do you use it to open a specific movie?
Replies
5
Boosts
0
Views
1.4k
Activity
Sep ’15
Scheme Destination Toolbar Missing
For one project in XCode, the toolbar near the upper left that shows Scheme and Destination have disappeared. They show when XCode is viewed full screen, but not when smaller. Other projects dont have this issue.I also note that at the upper right corner two right pointing arrows have appeared that show Scheme grayed out. I suspect this is related.How do I get the menus to show normally?
Replies
4
Boosts
0
Views
3.5k
Activity
Jul ’15
xCode 6.4 scheme names
Hi,All my active schemes names seem to be corrupted they are showing a GUID rather than the iOS version number.(This is the same in all projects)xCode 6.4 (6E35b)The scheme look likeiPhone 6 (6C .... a guid here ... )iPhone 6 (4A .... a 2nd GUID guid here ... ).... etcRather thaniPhone 6 (8.1)iPhone 6 (8.2).... etcEverything compiles correctly, but it makes it hard to know which version of iOS I am compiling against.I also have xCode 7.0 (&A121l) installed, which shows the Scheme names correctly.Any ideas on how to fix this ?Cheers,Phil
Replies
9
Boosts
0
Views
725
Activity
Jul ’15
xcode active scheme default
Is there a way to set a default active scheme? Every time I open a project it defaults to iphone 6s plus even though the projects are saved with different schemes. Thanks.
Replies
3
Boosts
0
Views
3.0k
Activity
Jun ’16
Xcodebuild archive without scheme
Hello, we want to build our projects with the command line, like :xcodebuild -target OurTarget -configuration OurConfig -archivePath project.xcarchive -scheme OurScheme archiveto be able to then, make a build with :xcodebuild -exportArchive -archivePath project.xcarchive -exportPath build -exportOptionsPlist build/exportOptions.plistThe problem is that we are using a script to export our project which remove all user data like scemes.So, what would be the best solution to use these commands without scheme ?Best regards
Replies
1
Boosts
0
Views
1.7k
Activity
Mar ’16
Reply to Is there a way to avoid generating InfoPlist.xcstrings for framework targets?
Hello, Xcode knows that these keys in frameworks are typically not displayed to the user, so it automatically marks them as “Don’t Translate”. This way, they can still be translated if needed by removing the “Don’t Translate” status. When exporting to an xcloc/XLIFF file, the element will have the translate=no attribute to indicate this. That attribute can be removed by the developer or translator if it turns out it does need to be translated (for example because the CFBundleName is being manually looked up and displayed by the framework code).
Replies
Boosts
Views
Activity
Jun ’25
Why am I suddenly getting translation errors in parts I didn't even modify, when I just added something else?
Localizable.strings:1:1 validation failed: Couldn't parse property list because the input data was in an invalid format
Replies
1
Boosts
0
Views
870
Activity
Nov ’23
Reply to Generic Translation Layer Design
In Xcode 7 beta 2, just using the == operator seems to work to compare meta-types in a playgroundprivate func translatorFor<T:Model>(type: T.Type) -> Translator? { for translator in translators { if translator.modelType == type { return translator } } return nil }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Mach-O symbol tables: Translating addresses in the main binary to addresses in a corresponding object file
I am trying to understand Mach-O symbol tables and essentially reproduce the output of dsymutil -dump-debug-map. I have a binary with a symbol table that looks like ... [ 157] 00000001 64 (N_SO ) 01 0000 0000000000000000 [ 158] 00003756 64 (N_SO ) 00 0000 0000000000000000 '/path/to/project/' [ 159] 00003773 64 (N_SO ) 00 0000 0000000000000000 'test.cpp' [ 160] 0000377c 66 (N_OSO ) 03 0001 000000006510bf32 '/path/to/project/test.cpp.o' [ 161] 00000001 2e (N_BNSYM ) 01 0000 0000000100004e60 [ 162] 000037bd 24 (N_FUN ) 01 0000 0000000100004e60 '_Z3fooi' [ 163] 00000001 24 (N_FUN ) 00 0000 0000000000000170 [ 164] 00000001 4e (N_ENSYM ) 01 0000 0000000100004e60 [ 165] 00000001 2e (N_BNSYM ) 01 0000 0000000100004fd0 ... [ 213] 00000001 2e (N_BNSYM ) 01 0000 0000000100005470 [ 214] 00003a90 24 (N_FUN ) 01 0000 0000000100005470 '_Z3bari' [ 215] 00000001 24 (N_FUN ) 00 0000 0000000000000020 [ 216] 00000001 4e (N_ENSYM ) 01 0000 0000000100005470 The dumped debug map includes --- triple: 'x86_64-apple-darwin' binary-pat
Replies
0
Boosts
0
Views
641
Activity
Sep ’23
Reply to Generic Translation Layer Design
Well, I don't know if I would recommend doing the following in production code, but I'm pretty sure it still worked back in 1.2...private func translatorFor<T:Model>(type: T.Type) -> Translator? { for translator in translators { if (translator.modelType) == (type) { return translator } } return nil }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15