Search results for

“file uri scheme”

84,438 results found

Post

Replies

Boosts

Views

Activity

Cannot reset schemes on 'canOpenUrl'
The official API reference says as follows.https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instm/UIApplication/canOpenURL: If your app is linked against an earlier version of iOS but is running in iOS 9.0 or later, you can call this method on 50 distinct URL schemes. After hitting this limit, subsequent calls to this method return NO. If a user reinstalls or upgrades the app, iOS resets the limit. I made an AdHoc .ipa and tried to reinstall to confirm whether the limit of URL schemes were reset or not through iTunes. However, unlike the sentence says, the limit was not reset.How should we do reset the URL limit ?
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
410
Oct ’15
Reply to AssetId is malformed in Safari Demo Application if URI is greater than 16 characters
Hey,Here are the details of the work around that I used to fix this (for me)/** In the Safari Sample App **/function extractContentId(data) { myContentId = arrayToString(data); console.log('AssetID : ' + myContentId); // contentId is passed up as a URI, from which the host must be extracted: - Karl: Bug in Safari if URI is longer that 16 chars var link = document.createElement('a'); var uri = encodeURIComponent(myContentId); link.href = myContentId; //return link.hostname; console.log('AssetId :' + myContentId.split('//')[1]); return myContentId.split('//')[1]; //Karl: work around for bug }/** Parsing AssetId in C# **/System.Text.Encoding.ASCII.GetString(bytes);
Topic: Media Technologies SubTopic: Streaming Tags:
Mar ’17
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
539
Jun ’24
xfail in XCTest or scheme?
I am wondering if Xcode has a capability to describe that certain tests are expected to fail.I searched the web with keyword mixes like xcode, xfail, expect to fail, xctest, test scheme and so on. None got what I want and I came up here, the dev forum.I am writing some test utility for my classes. So, the goal is to fail when the test utility detects anything wrong.The test codes for the test utility are written purposely to fail. And I would like to take those failures as successes of the test.I may add up some more codes in the test utility to flip the assert expressions not to fail for xfail purpose. However, it may introduce unexpected bugs and I don't want to take the additional risk (and unnecessary risk if xfail is supported in xcode)I appreciate any feedbacks. Thanks!dpdo
1
0
385
Dec ’15
URL Scheme Incorrect Format
I've been publishing an app on the App Store using the Adobe DPS service for the past few years. I've now just moved onto a new app development software and have started experiencing errors upon uploading a new app to update the previous one on the App Store.After checking everything is correct on the new app development software (Twixl Publisher), I receive this error when uploading my build via Application Loader:ERROR ITMS-90158: The following URL schemes found in your app are not in the correct format: [.co.uk.websitename.websitename]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail.My Bundle ID in iTunes Connect is: .co.uk.websitename.websitename and has always worked perfectly before. Now it's causing problems and I can't figure out how to fix it so I can update the app with the version.Could anyone advise on the next steps I should take to resolve this
0
0
4.3k
Aug ’16
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
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
7k
Jan ’21
TARGET_OS_IOS evalutes to 0 when using iOS scheme
In a cross-platform project (iOS/macOS) some files are shared between platforms i.e. they have the Target Membership checkbox set for both the iOS and the OS X target. But TARGET_OS_IOSevaluates to 0 in both the iOS and the OS X scheme. Consequently, TARGET_OS_OSX evaluates to 1 in both schemes. A cmd-click on the macro opens TargetConditionals.h in the OS X SDK for both schemes.Only when I remove the OS X checkbox under Target Membership, both macros evaluate correctly in both schemes.When I copy the complete project folder over to another user on the same machine, some of the files suddenly work correctly, but not all of them !?!?!Does anybody know what's going on? I made a clean Xcode re-install just before I started this new project.
0
0
2.1k
Nov ’16
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
499
Jan ’25
Cannot reset schemes on 'canOpenUrl'
The official API reference says as follows.https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instm/UIApplication/canOpenURL: If your app is linked against an earlier version of iOS but is running in iOS 9.0 or later, you can call this method on 50 distinct URL schemes. After hitting this limit, subsequent calls to this method return NO. If a user reinstalls or upgrades the app, iOS resets the limit. I made an AdHoc .ipa and tried to reinstall to confirm whether the limit of URL schemes were reset or not through iTunes. However, unlike the sentence says, the limit was not reset.How should we do reset the URL limit ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
410
Activity
Oct ’15
Reply to AssetId is malformed in Safari Demo Application if URI is greater than 16 characters
Hey,Here are the details of the work around that I used to fix this (for me)/** In the Safari Sample App **/function extractContentId(data) { myContentId = arrayToString(data); console.log('AssetID : ' + myContentId); // contentId is passed up as a URI, from which the host must be extracted: - Karl: Bug in Safari if URI is longer that 16 chars var link = document.createElement('a'); var uri = encodeURIComponent(myContentId); link.href = myContentId; //return link.hostname; console.log('AssetId :' + myContentId.split('//')[1]); return myContentId.split('//')[1]; //Karl: work around for bug }/** Parsing AssetId in C# **/System.Text.Encoding.ASCII.GetString(bytes);
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Mar ’17
Reply to Xcode project and source control
This is contains the html describing the build scheme. It should only change when you change the scheme. Another file contains breakpoints, no use to source control. AFAIU, it should be safe to ignore all in your account (igorkorot) userData.
Replies
Boosts
Views
Activity
Oct ’21
Custom URL schemes and deep linking
As universal links require iOS 9 and are not compatible with iOS 8, is it possible to cater for custom URL schemes and universal links in the same app so that if an app is installed on an iPhone running iOS 8 and on an iPhone running iOS 9 the URL scheme will forward the user to the app? If not are there any other solutions to this?
Replies
0
Boosts
0
Views
439
Activity
Jan ’16
Whats is the openURL scheme for Notes.app in iOS
Can I open Notes.app using openURL scheme ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
471
Activity
Aug ’16
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
539
Activity
Jun ’24
xfail in XCTest or scheme?
I am wondering if Xcode has a capability to describe that certain tests are expected to fail.I searched the web with keyword mixes like xcode, xfail, expect to fail, xctest, test scheme and so on. None got what I want and I came up here, the dev forum.I am writing some test utility for my classes. So, the goal is to fail when the test utility detects anything wrong.The test codes for the test utility are written purposely to fail. And I would like to take those failures as successes of the test.I may add up some more codes in the test utility to flip the assert expressions not to fail for xfail purpose. However, it may introduce unexpected bugs and I don't want to take the additional risk (and unnecessary risk if xfail is supported in xcode)I appreciate any feedbacks. Thanks!dpdo
Replies
1
Boosts
0
Views
385
Activity
Dec ’15
Reply to extract asset id from playlist (fairplay)
I place mine in the key uri. For example, skd://token?assetid=23asdf
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Sep ’18
Reply to Can't retrieve name and email from Sign In flow
This. We only get state and code in the redirect uri, no email address.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’19
URL Scheme Incorrect Format
I've been publishing an app on the App Store using the Adobe DPS service for the past few years. I've now just moved onto a new app development software and have started experiencing errors upon uploading a new app to update the previous one on the App Store.After checking everything is correct on the new app development software (Twixl Publisher), I receive this error when uploading my build via Application Loader:ERROR ITMS-90158: The following URL schemes found in your app are not in the correct format: [.co.uk.websitename.websitename]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail.My Bundle ID in iTunes Connect is: .co.uk.websitename.websitename and has always worked perfectly before. Now it's causing problems and I can't figure out how to fix it so I can update the app with the version.Could anyone advise on the next steps I should take to resolve this
Replies
0
Boosts
0
Views
4.3k
Activity
Aug ’16
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 ASWebAuthenticationSession's callbackURLScheme crash
Before adding the uri, try url encoding it : callBackURI.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) This worked for me.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21
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
7k
Activity
Jan ’21
TARGET_OS_IOS evalutes to 0 when using iOS scheme
In a cross-platform project (iOS/macOS) some files are shared between platforms i.e. they have the Target Membership checkbox set for both the iOS and the OS X target. But TARGET_OS_IOSevaluates to 0 in both the iOS and the OS X scheme. Consequently, TARGET_OS_OSX evaluates to 1 in both schemes. A cmd-click on the macro opens TargetConditionals.h in the OS X SDK for both schemes.Only when I remove the OS X checkbox under Target Membership, both macros evaluate correctly in both schemes.When I copy the complete project folder over to another user on the same machine, some of the files suddenly work correctly, but not all of them !?!?!Does anybody know what's going on? I made a clean Xcode re-install just before I started this new project.
Replies
0
Boosts
0
Views
2.1k
Activity
Nov ’16
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
499
Activity
Jan ’25