Search results for

“file uri scheme”

84,455 results found

Post

Replies

Boosts

Views

Activity

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
212
Apr ’25
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
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
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
221
Dec ’16
Reply to HLS Video in Simulator getting `segPumpRequestCustomURLForCryptKey` crash:
It appears to be centered around the usage of a custom scheme in the HLS m3u8 file link to the encryption key: if I use http(s) to link the encryption key, it works fine. If I use something custom like fakey, it never even makes it to the delegate method for AVAssetResourceLoaderDelegate called resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) where I'd swap out the scheme for a real one, because it crashes first. So far, I can only replicate this on the iOS 15 simulator. I've opened a feedback: FB9764319
Nov ’21
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
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 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 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
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.7k
Jul ’24
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 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
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
212
Activity
Apr ’25
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
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
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
221
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 HLS Video in Simulator getting `segPumpRequestCustomURLForCryptKey` crash:
It appears to be centered around the usage of a custom scheme in the HLS m3u8 file link to the encryption key: if I use http(s) to link the encryption key, it works fine. If I use something custom like fakey, it never even makes it to the delegate method for AVAssetResourceLoaderDelegate called resourceLoader(_ resourceLoader: AVAssetResourceLoader, shouldWaitForLoadingOfRequestedResource loadingRequest: AVAssetResourceLoadingRequest) where I'd swap out the scheme for a real one, because it crashes first. So far, I can only replicate this on the iOS 15 simulator. I've opened a feedback: FB9764319
Replies
Boosts
Views
Activity
Nov ’21
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
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 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 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
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.7k
Activity
Jul ’24
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
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 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