Search results for

“file uri scheme”

81,722 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 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.
Sep ’19
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
215
Dec ’16
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 Project Won't Build with .h File
More bad news: It isn't just the one .h file. If I select any .h file and use Product>Perform Action>Compile File I get an error 'headerFileName.h' is not a member of any targets in the current scheme that build for running. So it appears that the target is broken and doesn't know it has any headers. If I delete the target and re-build the project will XCode create a new target? Maybe one that works?
Jun ’23
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.1k
Dec ’21
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
151
Apr ’25
Reply to Xcode 15 beta strings catalog
@Developer Tools Engineer - Thank you for answering this question. I do understand that string catalog files are designed to be interfaced by XCode. I would like to also bring your attention that there are other valid and relatively common scenarios where other tools need to read/write to this string catalog file. In an enterprise setting xcstrings file as well as other source code will be tracked in a git repository. This means that there are external localization tools via various integrations that directly read/write to this repository. If an enterprise is using an external tool to manage localizations, that tool can directly commit the changes to that xcstrings file without involving a developer or XCode. In fact this is the very reason enterprises uses external tools because not involving developer in every task increases productivity of the company. You might say that you can export/import xcstrings file to other formats like xliff. However, that still involv
May ’24
Failed to build the scheme "project name"
Hello, Developer team! Does anyone have an idea about the problem I'm facing with the simulator ? I'm learning how to code in SwiftUI and my simulator was working just fine but yesterday I close my laptop the other day and open today and see the code : import SwiftUI import SwiftData @main struct first_projectApp: App { var sharedModelContainer: ModelContainer = { let schema = Schema([ Item.self, ]) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) do { return try ModelContainer(for: schema, configurations: [modelConfiguration]) } catch { fatalError(Could not create ModelContainer: (error)) } }() var body: some Scene { WindowGroup { ContentView() } .modelContainer(sharedModelContainer) } } I don't know where it comes from . I used IOS 17.5 I try to upgrade to IOS 18 but that didn't fix the problem. Currently I'm seeing 3 errors : Showing Recent Errors Only Build target first project of project first project with configuration Debug Ld /Users/amedekatamatode/Library/Devel
2
0
1.6k
Jul ’24
Reply to What's the non-sandboxed path to Downloads folder on the iPhone
On iOS there’s no supported way to construct paths to items outside of your apps containers. The only supported way to get such paths is to ask the user for them, using the file selection API from the UI framework you’re using. Furthermore, this is a concern: [quote='781930021, delingren, /thread/781930, /profile/delingren'] I know the URL scheme is shareddocuments [/quote] AFAIK this is not a a documented URL scheme. I discuss that topic in more detail in Supported URL Schemes. WARNING Don’t build a product that relies on unsupported implementation details like. It’s very likely that your product will break in future releases of iOS and, if it does, there’s a good chance that there’ll be no path forward for your app. If you’d like us to add a supported mechanism to achieve this goal, I encourage you to file an enhancement request describing your requirements. Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Techni
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’25
After Swift3 conversion: Several compiler errors on one scheme only (in XCode 8)
After Swift 3 conversion I am experiencing a frustrating issue. I have two schemes in my project which both use the same target. On one scheme I can run tests, however on the other scheme I get the following 5 errors:`mach-o linker`, `lipo error`, `ditto error`, `can not parse debug map`, and `segmentation fault 11`Based on various things I found online I have tried:- changing build active architecture to NO / YES- changing debug information format to DWARF / DWARF with dSYM File- hard coded the bridging header path- diffed the Bridging Header (it's the same as before Swift 3)- deleted derived data folder (hundreds of times)- deleted cache folder (hundreds of times)- deep cleaned (hundreds of times)- restarted Xcode- restarted the computer itself- set rwx permissions on the project directory- had other people check my podfile to make sure it's fine- checked target membership of every file in the Tests and KIF targets- Enable Bitcode is already set to No
0
0
393
Sep ’16
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 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.
Replies
Boosts
Views
Activity
Sep ’19
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
215
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 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
Reply to Project Won't Build with .h File
More bad news: It isn't just the one .h file. If I select any .h file and use Product>Perform Action>Compile File I get an error 'headerFileName.h' is not a member of any targets in the current scheme that build for running. So it appears that the target is broken and doesn't know it has any headers. If I delete the target and re-build the project will XCode create a new target? Maybe one that works?
Replies
Boosts
Views
Activity
Jun ’23
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.1k
Activity
Dec ’21
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
151
Activity
Apr ’25
Reply to XCTestPlan environment variable not retrieved in xcode 26
Ok, I think I got it to work. I think I was using the wrong build scheme. It appears to work when selecting the test scheme in xcode before running the tests. I think previously xcode would automatically switch schemes, or at least a prompt would appear asking if I wanted to switch schemes, I could be wrong, though. Thanks.
Replies
Boosts
Views
Activity
Oct ’25
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 Xcode 15 beta strings catalog
@Developer Tools Engineer - Thank you for answering this question. I do understand that string catalog files are designed to be interfaced by XCode. I would like to also bring your attention that there are other valid and relatively common scenarios where other tools need to read/write to this string catalog file. In an enterprise setting xcstrings file as well as other source code will be tracked in a git repository. This means that there are external localization tools via various integrations that directly read/write to this repository. If an enterprise is using an external tool to manage localizations, that tool can directly commit the changes to that xcstrings file without involving a developer or XCode. In fact this is the very reason enterprises uses external tools because not involving developer in every task increases productivity of the company. You might say that you can export/import xcstrings file to other formats like xliff. However, that still involv
Replies
Boosts
Views
Activity
May ’24
Failed to build the scheme "project name"
Hello, Developer team! Does anyone have an idea about the problem I'm facing with the simulator ? I'm learning how to code in SwiftUI and my simulator was working just fine but yesterday I close my laptop the other day and open today and see the code : import SwiftUI import SwiftData @main struct first_projectApp: App { var sharedModelContainer: ModelContainer = { let schema = Schema([ Item.self, ]) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) do { return try ModelContainer(for: schema, configurations: [modelConfiguration]) } catch { fatalError(Could not create ModelContainer: (error)) } }() var body: some Scene { WindowGroup { ContentView() } .modelContainer(sharedModelContainer) } } I don't know where it comes from . I used IOS 17.5 I try to upgrade to IOS 18 but that didn't fix the problem. Currently I'm seeing 3 errors : Showing Recent Errors Only Build target first project of project first project with configuration Debug Ld /Users/amedekatamatode/Library/Devel
Replies
2
Boosts
0
Views
1.6k
Activity
Jul ’24
Reply to What's the non-sandboxed path to Downloads folder on the iPhone
On iOS there’s no supported way to construct paths to items outside of your apps containers. The only supported way to get such paths is to ask the user for them, using the file selection API from the UI framework you’re using. Furthermore, this is a concern: [quote='781930021, delingren, /thread/781930, /profile/delingren'] I know the URL scheme is shareddocuments [/quote] AFAIK this is not a a documented URL scheme. I discuss that topic in more detail in Supported URL Schemes. WARNING Don’t build a product that relies on unsupported implementation details like. It’s very likely that your product will break in future releases of iOS and, if it does, there’s a good chance that there’ll be no path forward for your app. If you’d like us to add a supported mechanism to achieve this goal, I encourage you to file an enhancement request describing your requirements. Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Techni
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’25
After Swift3 conversion: Several compiler errors on one scheme only (in XCode 8)
After Swift 3 conversion I am experiencing a frustrating issue. I have two schemes in my project which both use the same target. On one scheme I can run tests, however on the other scheme I get the following 5 errors:`mach-o linker`, `lipo error`, `ditto error`, `can not parse debug map`, and `segmentation fault 11`Based on various things I found online I have tried:- changing build active architecture to NO / YES- changing debug information format to DWARF / DWARF with dSYM File- hard coded the bridging header path- diffed the Bridging Header (it's the same as before Swift 3)- deleted derived data folder (hundreds of times)- deleted cache folder (hundreds of times)- deep cleaned (hundreds of times)- restarted Xcode- restarted the computer itself- set rwx permissions on the project directory- had other people check my podfile to make sure it's fine- checked target membership of every file in the Tests and KIF targets- Enable Bitcode is already set to No
Replies
0
Boosts
0
Views
393
Activity
Sep ’16
Reply to Xcode Cloud: A scheme named "x" does not exist in x.xcodeproj
Seeing the same issue, no visible reason. The scheme clearly exists, project was never renamed, in archive section it has the right scheme selected; though it shows a warning 'The scheme ... may only exist locally...'
Replies
Boosts
Views
Activity
Dec ’23