Search results for

“file uri scheme”

84,444 results found

Post

Replies

Boosts

Views

Activity

Apple's tvOS URL schemes?
I've got an app that lets people load user-defined content into it, and displays that content (for example for e-signage applications, interactive kiosks, et cetera).One of the things I'd like to do in it is put up a description of a podcast, and then put a button on the screen that tells Apple's Podcasts app to open it.I tried to do this via [[UIApplication sharedApplication] openURL: ]; with the URL for the podcast from the iTunes store, based on the claim I saw elsewhere that that works on iOS. It did not work for me on tvOS (9.3b2).I know our apps can provide custom URL schemes, and supposedly the openURL: method will work for one third-party app to open another third-party app. But right now I'm more interested in opening things in Apple's own apps (music, tv, movies, trailers, podcasts, and the app store).Do the tvOS versions of Apple's apps support any URL schems at all right now? Are they documented anywhere?
4
0
760
Jan ’16
FileWrapper and duplicate children naming scheme
I have a FileWrapper that holds a bunch of child documents. FileWrapper automatically handles assigning unique filenames to duplicates, but it does so in a pretty ugly manner – rather than, for example, Untitled, Untitled 2, Untitled 3 it gives me:Untitled, and then 1__#$!@%!#__Untitled, 2__#$!@%!#__UntitledIs there a better way to assign names to these? Ideally I'd be able to supply a desired scheme for unique-ifying filenames, like a format string. Otherwise, what's the best way to ensure a child wrapper gets a sane suffix when there's duplicates?
Topic: UI Frameworks SubTopic: AppKit Tags:
4
0
1.3k
Apr ’18
EXC_BAD_ACCESS : UIButton : touchDown() : Release Scheme
The following code crashes in XCode when run on a 'Release' scheme to crash (on any iDevice).It crashes with EXC_BAD_ACCESS(code=EXC_I386_GPFLT) trying to do a 'swift_arrayDestroy' with Xcode on line 19.Note : It does NOT crash when running on a 'Debug' scheme.+) Can anyone else reproduce this (just cut an paste -> Run -> click a few times on the RED Box that appears on the screen).+) Any ideas if this is a program error or an Xcode Release optimisation bug?+) Does anyone know if '@objc func touchDown(_ sender: MY_UIButton)' is safe?Should I use 'Any' .. and then attempt to cast to 'MY_UIButton'.Thanks,AJ.import UIKit var g_but = MY_UIButton(frame: CGRect(x: 100, y: 100,width: 200,height: 200)) let g_false = false let opt_zero : Int? = 0 class EMPTY_CLASS {} let g_empty_arr : [EMPTY_CLASS] = [] class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() g_but.backgroundColor = UIColor.red view.addSubview(g_but) g_but.addTarget(g_but,action: #selector(MY_U
1
0
1k
Apr ’18
Reply to Sign interpretation as alternate media in HLS
Are you talking about two equivalent video versions - one with someone signing the audio? If so, here's the simplest example I can think of - two video options, each with three bit rates and also trick play versions of same. The audio is multiplexed with the video to make the playlist simpler. You end up with a group-id for each video variant. Note the lack of URI for the Plain option - so that option is the same as the variant. I'm not sure how well third-party players will handle this. #EXTM3U #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=500kbs,NAME=WithSign,AUTOSELECT=YES,DEFAULT=NO,URI=Item/WithSign/500kbs-AV/prog_index.m3u8 #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=500kbs,NAME=Plain,AUTOSELECT=YES,DEFAULT=YES #EXT-X-STREAM-INF:BANDWIDTH=750000,CODECS=mp4a.40.2, avc1.4d401e,VIDEO=500kbs Item/Plain/500kbs-AV/prog_index.m3u8 #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=1Mbs,NAME=WithSign,AUTOSELECT=YES,DEFAULT=NO,URI=Item/WithSign/1Mbs-AV/prog_index.m3u8 #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=1Mbs,NAME=Plain,AUTOSELECT
Topic: Media Technologies SubTopic: General Tags:
Oct ’22
Reply to How can I trigger the Full Disk Access prompt to write to a raw block device?
Update: notes to self: looks like it may be a hacky-do of using a uri to open system preferences, polling until a known-inaccessible file becomes accessible, and then forking a call to authopen, dupilating a descriptor, and carrying on... https://github.com/raspberrypi/rpi-imager/tree/qml/src/mac https://github.com/MacPaw/PermissionsKit/blob/master/PermissionsKit/Private/FullDiskAccess/MPFullDiskAccessAuthorizer.m#L140
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
Test plans being deleted and replaced by old test schemes
I am currently using Xcode 15.2, but I am sure this issue exists on other versions too. If you have any packages made pre Xcode 14.3, i.e. ones without an automatically made test plan, then the following issue happens: Let's call the package in this example PackageX, and you have with this a corresponding test scheme, called PackageXTests. PackageXTests is a test scheme saved on disk, that is on the test scheme of PackageX, meaning that when you test the package directly, it will run the test scheme. Now, with test plans becoming the norm, we want to move away from having these test schemes on disk and instead align old packages with new and have each package's tests dictated by its own corresponding test plan, the same way that any newly made package would work. So we click 'convert to test plan', success we have a test plan, we delete the test scheme from the disk. All appears to be working fine. However, if you now swap branch and come back, the test pl
0
0
938
Mar ’24
Url Scheme dialog doesn't appear after reinstall
We are facing a behaviour we are not quite sure if it is as expected or not.We have an app that can be opened by an other app using an URL Scheme. If the opening app is freshly installed, a dialog appears telling that the app wants to open the url scheme and if you agree. That's how it is expected. Now if you agree and the app wants to reopen the url scheme it does not ask about it again. Also, this is expected.If I uninstall the opening app now and reinstall, we usually expected that the app asks again for the url scheme, but here it doesn't. It just opens the url scheme.Is it the expected behaviour? Does the device store the selected response for an url scheme somewhere? Meaning, once accepted the OS remembers?All answers are appreciated!Greetings
0
0
212
Feb ’17
Reply to SwiftUI and dragging a file onto the app icon
So it does help to drag the file to the right icon... (since I was debugging it under Xcode, but had the real one in my dock). That seems to do it better, but weirdly, it's not happening the first time I drag a file onto the icon. Also, I have this in the main view: .handlesExternalEvents(preferring: [my-scheme], allowing: [my-scheme]) // activate existing window if exists .onOpenURL { url in // stuff } and both the .openURL and the app delegate method are being triggered. I think this is probably due to confusion on my part, though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
Automatic iOS Build: Scheme missing without opening XCode
Hi folks,for an iOS app, I am currently trying to run an automated iOS build from command line to generate the signed .ipa file.What the command line does, is:xcodebuild -xcconfig ../../buildSettings.xcconfig -scheme ProjectName -configuration Release -archivePath ../../build/ProjectName.xcarchive archive xcrun xcodebuild -exportArchive -exportOptionsPlist ../../exportPlist.plist -archivePath ../../build/ProjectName.xcarchive -exportPath ../../buildThe is that the XCode project is missing any scheme which is needed for the build with xcodebuild. This is because the xcodeproj is automatically generated by the cordova framework command line tools.I found out that XCode automatically generates new scheme files when the project is opened with XCode. What I did not find is any command line tool options to create that scheme. I think to open XCode from the command line and kill it again before building the project is a workaround and I would rather prefer a clean solutio
1
0
2.3k
May ’17
How create a private SDK Scheme used only for Main Project?
How to create a scheme that should have the ability to provide public methods that are only accessible to the main application. For example, I have my Main Test project on XCode, I added my custom local Dependency Swift Package SDK, and I want to create a scheme only for access to the swift classes SDK and SDK+TestApp, the main project must not access/could to any other file, I research in the official documentation but are the main example, I'm looking for theses specifically details, any help, please?
0
0
615
Nov ’22
Reply to /v1/financeReports returns 400 error with HTML dump
Some amendment: Our URI actually was: ?filter[regionCode]=Z1&filter[reportDate]=2025-10&filter[reportType]=FINANCE_DETAIL&filter[vendorNumber]=XXXXXX
Replies
Boosts
Views
Activity
Aug ’25
Reply to iPhone 14 simulator not loading SKProducts
I'm filing a radar on this issue, as the simulator should load products from AppStoreConnect if a StoreKit configuration profile has not been specified in the Scheme you are running.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’20
Apple's tvOS URL schemes?
I've got an app that lets people load user-defined content into it, and displays that content (for example for e-signage applications, interactive kiosks, et cetera).One of the things I'd like to do in it is put up a description of a podcast, and then put a button on the screen that tells Apple's Podcasts app to open it.I tried to do this via [[UIApplication sharedApplication] openURL: ]; with the URL for the podcast from the iTunes store, based on the claim I saw elsewhere that that works on iOS. It did not work for me on tvOS (9.3b2).I know our apps can provide custom URL schemes, and supposedly the openURL: method will work for one third-party app to open another third-party app. But right now I'm more interested in opening things in Apple's own apps (music, tv, movies, trailers, podcasts, and the app store).Do the tvOS versions of Apple's apps support any URL schems at all right now? Are they documented anywhere?
Replies
4
Boosts
0
Views
760
Activity
Jan ’16
Reply to Background Assets: BAURLDownload is finish, but the file cannot be read, the file does not exist
Instead of: [[NSFileManager defaultManager] fileExistsAtPath:fileURL.absoluteString] Use: [[NSFileManager defaultManager] fileExistsAtPath:fileURL.path] absoluteString will create a string that includes the URL's scheme (i.e. file:///path/to/file), which will not work with [NSFileManager fileExistsAtPath].
Replies
Boosts
Views
Activity
Jul ’23
FileWrapper and duplicate children naming scheme
I have a FileWrapper that holds a bunch of child documents. FileWrapper automatically handles assigning unique filenames to duplicates, but it does so in a pretty ugly manner – rather than, for example, Untitled, Untitled 2, Untitled 3 it gives me:Untitled, and then 1__#$!@%!#__Untitled, 2__#$!@%!#__UntitledIs there a better way to assign names to these? Ideally I'd be able to supply a desired scheme for unique-ifying filenames, like a format string. Otherwise, what's the best way to ensure a child wrapper gets a sane suffix when there's duplicates?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
4
Boosts
0
Views
1.3k
Activity
Apr ’18
EXC_BAD_ACCESS : UIButton : touchDown() : Release Scheme
The following code crashes in XCode when run on a 'Release' scheme to crash (on any iDevice).It crashes with EXC_BAD_ACCESS(code=EXC_I386_GPFLT) trying to do a 'swift_arrayDestroy' with Xcode on line 19.Note : It does NOT crash when running on a 'Debug' scheme.+) Can anyone else reproduce this (just cut an paste -> Run -> click a few times on the RED Box that appears on the screen).+) Any ideas if this is a program error or an Xcode Release optimisation bug?+) Does anyone know if '@objc func touchDown(_ sender: MY_UIButton)' is safe?Should I use 'Any' .. and then attempt to cast to 'MY_UIButton'.Thanks,AJ.import UIKit var g_but = MY_UIButton(frame: CGRect(x: 100, y: 100,width: 200,height: 200)) let g_false = false let opt_zero : Int? = 0 class EMPTY_CLASS {} let g_empty_arr : [EMPTY_CLASS] = [] class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() g_but.backgroundColor = UIColor.red view.addSubview(g_but) g_but.addTarget(g_but,action: #selector(MY_U
Replies
1
Boosts
0
Views
1k
Activity
Apr ’18
Reply to Sign interpretation as alternate media in HLS
Are you talking about two equivalent video versions - one with someone signing the audio? If so, here's the simplest example I can think of - two video options, each with three bit rates and also trick play versions of same. The audio is multiplexed with the video to make the playlist simpler. You end up with a group-id for each video variant. Note the lack of URI for the Plain option - so that option is the same as the variant. I'm not sure how well third-party players will handle this. #EXTM3U #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=500kbs,NAME=WithSign,AUTOSELECT=YES,DEFAULT=NO,URI=Item/WithSign/500kbs-AV/prog_index.m3u8 #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=500kbs,NAME=Plain,AUTOSELECT=YES,DEFAULT=YES #EXT-X-STREAM-INF:BANDWIDTH=750000,CODECS=mp4a.40.2, avc1.4d401e,VIDEO=500kbs Item/Plain/500kbs-AV/prog_index.m3u8 #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=1Mbs,NAME=WithSign,AUTOSELECT=YES,DEFAULT=NO,URI=Item/WithSign/1Mbs-AV/prog_index.m3u8 #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=1Mbs,NAME=Plain,AUTOSELECT
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to How can I trigger the Full Disk Access prompt to write to a raw block device?
Update: notes to self: looks like it may be a hacky-do of using a uri to open system preferences, polling until a known-inaccessible file becomes accessible, and then forking a call to authopen, dupilating a descriptor, and carrying on... https://github.com/raspberrypi/rpi-imager/tree/qml/src/mac https://github.com/MacPaw/PermissionsKit/blob/master/PermissionsKit/Private/FullDiskAccess/MPFullDiskAccessAuthorizer.m#L140
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’25
Test plans being deleted and replaced by old test schemes
I am currently using Xcode 15.2, but I am sure this issue exists on other versions too. If you have any packages made pre Xcode 14.3, i.e. ones without an automatically made test plan, then the following issue happens: Let's call the package in this example PackageX, and you have with this a corresponding test scheme, called PackageXTests. PackageXTests is a test scheme saved on disk, that is on the test scheme of PackageX, meaning that when you test the package directly, it will run the test scheme. Now, with test plans becoming the norm, we want to move away from having these test schemes on disk and instead align old packages with new and have each package's tests dictated by its own corresponding test plan, the same way that any newly made package would work. So we click 'convert to test plan', success we have a test plan, we delete the test scheme from the disk. All appears to be working fine. However, if you now swap branch and come back, the test pl
Replies
0
Boosts
0
Views
938
Activity
Mar ’24
Reply to invalid_client for authorization_code
It looks like I have very similar (or same) issue as you had. Could you please point me out what did you do to make redirect URI whitelisted in Apple developer services dashboard?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’20
Url Scheme dialog doesn't appear after reinstall
We are facing a behaviour we are not quite sure if it is as expected or not.We have an app that can be opened by an other app using an URL Scheme. If the opening app is freshly installed, a dialog appears telling that the app wants to open the url scheme and if you agree. That's how it is expected. Now if you agree and the app wants to reopen the url scheme it does not ask about it again. Also, this is expected.If I uninstall the opening app now and reinstall, we usually expected that the app asks again for the url scheme, but here it doesn't. It just opens the url scheme.Is it the expected behaviour? Does the device store the selected response for an url scheme somewhere? Meaning, once accepted the OS remembers?All answers are appreciated!Greetings
Replies
0
Boosts
0
Views
212
Activity
Feb ’17
Reply to SwiftUI and dragging a file onto the app icon
So it does help to drag the file to the right icon... (since I was debugging it under Xcode, but had the real one in my dock). That seems to do it better, but weirdly, it's not happening the first time I drag a file onto the icon. Also, I have this in the main view: .handlesExternalEvents(preferring: [my-scheme], allowing: [my-scheme]) // activate existing window if exists .onOpenURL { url in // stuff } and both the .openURL and the app delegate method are being triggered. I think this is probably due to confusion on my part, though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Automatic iOS Build: Scheme missing without opening XCode
Hi folks,for an iOS app, I am currently trying to run an automated iOS build from command line to generate the signed .ipa file.What the command line does, is:xcodebuild -xcconfig ../../buildSettings.xcconfig -scheme ProjectName -configuration Release -archivePath ../../build/ProjectName.xcarchive archive xcrun xcodebuild -exportArchive -exportOptionsPlist ../../exportPlist.plist -archivePath ../../build/ProjectName.xcarchive -exportPath ../../buildThe is that the XCode project is missing any scheme which is needed for the build with xcodebuild. This is because the xcodeproj is automatically generated by the cordova framework command line tools.I found out that XCode automatically generates new scheme files when the project is opened with XCode. What I did not find is any command line tool options to create that scheme. I think to open XCode from the command line and kill it again before building the project is a workaround and I would rather prefer a clean solutio
Replies
1
Boosts
0
Views
2.3k
Activity
May ’17
How create a private SDK Scheme used only for Main Project?
How to create a scheme that should have the ability to provide public methods that are only accessible to the main application. For example, I have my Main Test project on XCode, I added my custom local Dependency Swift Package SDK, and I want to create a scheme only for access to the swift classes SDK and SDK+TestApp, the main project must not access/could to any other file, I research in the official documentation but are the main example, I'm looking for theses specifically details, any help, please?
Replies
0
Boosts
0
Views
615
Activity
Nov ’22
Xcode edit scheme didn't show ARKit
I followed the article Recording and Replaying ARSession Data and want to Use a recorded session in an app. But when I edit scheme as instructed I didn't find the ARKit label.
Replies
1
Boosts
0
Views
850
Activity
Nov ’22