Search results for

“file uri scheme”

85,534 results found

Post

Replies

Boosts

Views

Activity

Reply to AVAssetResourceLoaderDelegate and TS files error: Error Domain=CoreMediaErrorDomain Code=-12881 "custom url not redirect"
Thanks for your reply. I am creating a custom playlists (m3u8) & passing it to player and it is working fine with the custom scheme. In this method shouldWaitForLoadingOfRequestedResource when there is a call for ts segment with the custom scheme . I am replacing the custom scheme with the https. NSURLRequest *redirect = nil; NSString *url = loadingRequest.request.URL.absoluteString; NSRange tldr = [url rangeOfString:@//]; if (![url hasPrefix:@http] && tldr.location != NSNotFound) { url = [url stringByReplacingCharactersInRange:NSMakeRange(0, tldr.location) withString:@https:]; } redirect = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; [loadingRequest setRedirect:redirect]; NSHTTPURLResponse *response = [[NSHTTPURLResponse alloc] initWithURL:[redirect URL] statusCode:302 HTTPVersion:nil headerFields:nil]; [loadingRequest setResponse:response]; [loadingRequest finishLoading]; and it is working fine .. My question is how I can pass downloaded ts file. i
Topic: Media Technologies SubTopic: Streaming Tags:
Jun ’20
Reply to Export Localizations Build Error on Specific Pod's Umbrella.h File
I have a ton of issues Importing and Exporting Localisation files, and have burnt too many evenings ! I usually resort to the XCode command line , that seems pretty reliable .... I do a clean build maybe -SkipMacroValidation helps I cant recall ! /usr/bin/xcodebuild -sdk iphoneos -skipMacroValidation -configuration Debug -workspace my.xcworkspace -scheme myScheme build CODE_SIGNING_ALLOWED=NO Then an Import or export /usr/bin/xcodebuild -sdk iphoneos -configuration Release -workspace my.xcworkspace -scheme myScheme -importLocalizations -localizationPath path-to/my.xcloc CODE_SIGNING_ALLOWED=NO
May ’24
how to use Restrictions URL Scheme?
I've use following source code for directly move to iCloud in setting,it is working fine but i want know it is valid? Please reply me as soon as possible.[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@prefs:root=CASTLE]];
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
224
Dec ’16
Is it possible to view Xcode output from a scheme's archive post actions's script
In Xcode I've: select Product / Scheme / Edit scheme tap on Archive on the left hand side of the select post actions and + to add a new script Then in there I have added a script I want to run on the archive after its created. I'd like to be able to see the output the script churns out as it goes along but doesn't seem possible? If I just add something like echo hello to the start of the script then I don't see hello visible anywhere when I build an archive (via Product/Archive). I'm looking in the build navigator. Is there somewhere else to look or is it possible to get the logging into the navigator?
1
0
216
Apr ’25
custom url scheme launches the app but doesn't call open url
I have a custom url scheme for my app, prior to building with Xcode 10 when a user taps on a URL with the custom scheme my app would launch and a delegate call would be made to:```func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool```However, now that I am building with Xcode 10 this functionality is broken. The app continues to launch when a user taps on the custom url, however the open url method in my app delegate does not get called.I've been trying everything I can think of here and can't seem to figure out why it is not getting called. If I create a sample app using the same URL scheme it works just fine and open url is called. Something has got to be going wrong inside my app, some other item in my info.plist or build settings that could be interfering maybe?Has anyone else seen this?
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
3.3k
Sep ’18
Sign in with Apple - set "http://localhost/oauth2/apple" as return url (redirect uri)
Hi, I found Okta doc says it's not possible. Is it really true? It’s worth noting that Apple doesn’t allow localhost URLs in this step, and if you enter an IP address like 127.0.0.1 it will fail later in the flow. You have to use a real domain here. Because setting up certificate for https locally, or etc/host is hacky and not very friendly. I'm using Spring Security to build Sign in with Apple and following OIDC flow
0
0
4.2k
Dec ’21
Reply to After having received the key server the video doesn't start
This would appear to be a content authoring issue or .m3u8 playlist issue. For debugging purposes only, to determine if it is a content authoring issue we recommend you set your EXT-X-KEY tag KEYFORMAT attribute in the .m3u8 playlist to identity instead of com.apple.streamingkeydelivery, add the initialization vector (IV) of the key you are using to the IV attribute, and set the URI attribute to an http URL pointing to a (16-byte) resource containing only the raw, unencrypted AES key. For example, instead of something like this:#EXT-X-KEY:METHOD=SAMPLE-AES,URI=skd://key67,KEYFORMAT=com.apple.streamingkeydelivery,KEYFORMATVERSIONS=1do something like this:#EXT-X-KEY:METHOD=SAMPLE-AES,URI=http://mysite.com/my16ByteKey.bin,KEYFORMAT=identity,IV=0xA30FE123ECBF1BE323A775A119C553BCand make your 16-byte key available on your mysite.com web server.This allows the client to receive the same content, but instead of decrypting it with FairPlay Streaming it decrypts it with a clear text AES key
Topic: Media Technologies SubTopic: Streaming Tags:
Aug ’15
Reply to CD4CK Syncing after long-term usage concerns
Sad nobody responded.What I ended up doing was creating several Core Data configurations:* Cache* Cloud* LocalCloud of course has the syncing enabled on it. So in your scenario, users can start off on Local and have it sync against the Cloud configuration in the background. Are you actually storing the entire file contents within Core Data? If so, you might want to move to a model of storing just a URI to an iCloud document, after-which a user accessing it can trigger a separate iCloud sync.I'm also fairly sure I saw documentation that there is a hard restraint on cloudkit record sizes as well.
Topic: App & System Services SubTopic: iCloud Tags:
Sep ’19
Url-scheme is not working
Hi everyone! Tried to find out the solution by myself, but I failed =) Problem: I have one app on both iPhones, but the url_scheme works differently on them. 1 phone: Click at web link to the app – opens app 2 phone: click at web link to the app – opens web version. Tried to find info in logs, but didn't find answers there. Associations works correctly, cause on other phones everything works fine. Can you please help me to find out the reason? Maybe some info about what I need to search in logs or maybe you've faced the same problem.
1
0
2.1k
Sep ’23
Reply to StoreKit testing in Xcode for an existing macOS app
It sounds like you've performed the right steps: Create the .storekit file Add the product metadata to the file Select the .storekit configuration file in your scheme's run options Run the app If you're not seeing it at this point, would you be able to collect a sysdiagnose - https://download.developer.apple.com/OS_X/OS_X_Logs/sysdiagnose_Logging_Instructions.pdf and then submit feedback - https://feedbackassistant.apple.com with that sysdiagnose attached? If you reply with the feedback ID we can take a look at it.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’20
Reply to Can't debug on watchOS 2
Select the phone scheme first, then select the watch scheme.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to AVAssetResourceLoaderDelegate and TS files error: Error Domain=CoreMediaErrorDomain Code=-12881 "custom url not redirect"
Thanks for your reply. I am creating a custom playlists (m3u8) & passing it to player and it is working fine with the custom scheme. In this method shouldWaitForLoadingOfRequestedResource when there is a call for ts segment with the custom scheme . I am replacing the custom scheme with the https. NSURLRequest *redirect = nil; NSString *url = loadingRequest.request.URL.absoluteString; NSRange tldr = [url rangeOfString:@//]; if (![url hasPrefix:@http] && tldr.location != NSNotFound) { url = [url stringByReplacingCharactersInRange:NSMakeRange(0, tldr.location) withString:@https:]; } redirect = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; [loadingRequest setRedirect:redirect]; NSHTTPURLResponse *response = [[NSHTTPURLResponse alloc] initWithURL:[redirect URL] statusCode:302 HTTPVersion:nil headerFields:nil]; [loadingRequest setResponse:response]; [loadingRequest finishLoading]; and it is working fine .. My question is how I can pass downloaded ts file. i
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Jun ’20
Reply to Export Localizations Build Error on Specific Pod's Umbrella.h File
I have a ton of issues Importing and Exporting Localisation files, and have burnt too many evenings ! I usually resort to the XCode command line , that seems pretty reliable .... I do a clean build maybe -SkipMacroValidation helps I cant recall ! /usr/bin/xcodebuild -sdk iphoneos -skipMacroValidation -configuration Debug -workspace my.xcworkspace -scheme myScheme build CODE_SIGNING_ALLOWED=NO Then an Import or export /usr/bin/xcodebuild -sdk iphoneos -configuration Release -workspace my.xcworkspace -scheme myScheme -importLocalizations -localizationPath path-to/my.xcloc CODE_SIGNING_ALLOWED=NO
Replies
Boosts
Views
Activity
May ’24
how to use Restrictions URL Scheme?
I've use following source code for directly move to iCloud in setting,it is working fine but i want know it is valid? Please reply me as soon as possible.[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@prefs:root=CASTLE]];
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
224
Activity
Dec ’16
Is there a URL scheme for Swift Playgrounds?
I would love to be able to open Swift Playgrounds externally and pass text to a specific Playground along the lines of Pythonista but haven't found any information about whether that's possible. I'm going to guess that there isn't one but I thought I'd at least ask.
Replies
0
Boosts
0
Views
1.5k
Activity
Jul ’18
Reply to Unable to submit watch OS 2 (Swift 2) for internal testing via TestFlight
Are you trying to submit the archive build using the Watch scheme or the iOS scheme?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’15
Is it possible to view Xcode output from a scheme's archive post actions's script
In Xcode I've: select Product / Scheme / Edit scheme tap on Archive on the left hand side of the select post actions and + to add a new script Then in there I have added a script I want to run on the archive after its created. I'd like to be able to see the output the script churns out as it goes along but doesn't seem possible? If I just add something like echo hello to the start of the script then I don't see hello visible anywhere when I build an archive (via Product/Archive). I'm looking in the build navigator. Is there somewhere else to look or is it possible to get the logging into the navigator?
Replies
1
Boosts
0
Views
216
Activity
Apr ’25
custom url scheme launches the app but doesn't call open url
I have a custom url scheme for my app, prior to building with Xcode 10 when a user taps on a URL with the custom scheme my app would launch and a delegate call would be made to:```func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool```However, now that I am building with Xcode 10 this functionality is broken. The app continues to launch when a user taps on the custom url, however the open url method in my app delegate does not get called.I've been trying everything I can think of here and can't seem to figure out why it is not getting called. If I create a sample app using the same URL scheme it works just fine and open url is called. Something has got to be going wrong inside my app, some other item in my info.plist or build settings that could be interfering maybe?Has anyone else seen this?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
4
Boosts
0
Views
3.3k
Activity
Sep ’18
Sign in with Apple - set "http://localhost/oauth2/apple" as return url (redirect uri)
Hi, I found Okta doc says it's not possible. Is it really true? It’s worth noting that Apple doesn’t allow localhost URLs in this step, and if you enter an IP address like 127.0.0.1 it will fail later in the flow. You have to use a real domain here. Because setting up certificate for https locally, or etc/host is hacky and not very friendly. I'm using Spring Security to build Sign in with Apple and following OIDC flow
Replies
0
Boosts
0
Views
4.2k
Activity
Dec ’21
Reply to Xcode 14 try to build all SPM when building swiftUI preview
I may have found a workaround, detailed here Confirmed to fix FirebaseAnalytics installed via SPM, now my watchOS previews work. Not sure why this isn't default, only annoying thing is having to switch schemes for the relevant file, but not a huge breaker.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to After having received the key server the video doesn't start
This would appear to be a content authoring issue or .m3u8 playlist issue. For debugging purposes only, to determine if it is a content authoring issue we recommend you set your EXT-X-KEY tag KEYFORMAT attribute in the .m3u8 playlist to identity instead of com.apple.streamingkeydelivery, add the initialization vector (IV) of the key you are using to the IV attribute, and set the URI attribute to an http URL pointing to a (16-byte) resource containing only the raw, unencrypted AES key. For example, instead of something like this:#EXT-X-KEY:METHOD=SAMPLE-AES,URI=skd://key67,KEYFORMAT=com.apple.streamingkeydelivery,KEYFORMATVERSIONS=1do something like this:#EXT-X-KEY:METHOD=SAMPLE-AES,URI=http://mysite.com/my16ByteKey.bin,KEYFORMAT=identity,IV=0xA30FE123ECBF1BE323A775A119C553BCand make your 16-byte key available on your mysite.com web server.This allows the client to receive the same content, but instead of decrypting it with FairPlay Streaming it decrypts it with a clear text AES key
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
Aug ’15
Reply to CD4CK Syncing after long-term usage concerns
Sad nobody responded.What I ended up doing was creating several Core Data configurations:* Cache* Cloud* LocalCloud of course has the syncing enabled on it. So in your scenario, users can start off on Local and have it sync against the Cloud configuration in the background. Are you actually storing the entire file contents within Core Data? If so, you might want to move to a model of storing just a URI to an iCloud document, after-which a user accessing it can trigger a separate iCloud sync.I'm also fairly sure I saw documentation that there is a hard restraint on cloudkit record sizes as well.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Sep ’19
Url-scheme is not working
Hi everyone! Tried to find out the solution by myself, but I failed =) Problem: I have one app on both iPhones, but the url_scheme works differently on them. 1 phone: Click at web link to the app – opens app 2 phone: click at web link to the app – opens web version. Tried to find info in logs, but didn't find answers there. Associations works correctly, cause on other phones everything works fine. Can you please help me to find out the reason? Maybe some info about what I need to search in logs or maybe you've faced the same problem.
Replies
1
Boosts
0
Views
2.1k
Activity
Sep ’23
Reply to Xcode Cloud reassigns one ciProduct between app targets with unique bundle IDs
FWIW I ran into this issue today on Xcode 26.6. What worked for me was selecting the target scheme in Product > Scheme > {select target scheme}. This seemed to trick it into associating it with the correct bundle ID
Replies
Boosts
Views
Activity
4d
Reply to StoreKit testing in Xcode for an existing macOS app
It sounds like you've performed the right steps: Create the .storekit file Add the product metadata to the file Select the .storekit configuration file in your scheme's run options Run the app If you're not seeing it at this point, would you be able to collect a sysdiagnose - https://download.developer.apple.com/OS_X/OS_X_Logs/sysdiagnose_Logging_Instructions.pdf and then submit feedback - https://feedbackassistant.apple.com with that sysdiagnose attached? If you reply with the feedback ID we can take a look at it.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’20