Search results for

file uri scheme

78,716 results found

Post

Replies

Boosts

Views

Activity

Reply to Xcode creates schemes for some referenced Swift Packages
This is indeed undesirable behavior. I'm not sure whether Apple is aware but you should file a feedback for it. In the meantime, there's a workaround you can propose to your third party libraries' maintainers to adopt, and it consists on using an xcworkspace as the scheme container as opposed to .swiftpm. Example: https://github.com/sideeffect-io/AsyncExtensions/pull/29. As I said, unfortunately this is up to the maintainers to adopt, not you, as Xcode reads the checked in .swiftpm folder from your dependencies and grabs the schemes from there without you having a say in it. Again, probably undersirable behavior and an oversight from the Xcode team, so worth filing a radar.
Nov ’22
Reply to Strange behavior from FileManager.getRelationship(_:of:in:to)
I’m not sure if anything else is going on here but your isInTrash(…) function has a serious bug. Specifically, this code is incorrect: guard let fileURL = URL(string: file) else { You should be using init(fileURLWithPath:). What you’re constructing here is as scheme-less URL that just contains a path. While you want is a URL with the file scheme. Consider: import Foundation let u1 = URL(fileURLWithPath: /Users/quinn/Test) let u2 = URL(string: /Users/quinn/Test)! print(u1) // file:///Users/quinn/Test/ print(u2) // /Users/quinn/Test Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: App & System Services SubTopic: General Tags:
Dec ’21
Reply to mediastreamvalidator always signals 'unsupported sudo track codec' with AES sample encrypted streams
Hi, I have also observed the same error Unsupported audio track codec: Unknown for the below unencrypted playlist when i run with media stream validator (version - v1.20.7). Unsupported audio track codec: Unknown Rendition #5 Below is the playlist; #EXTM3U #EXT-X-VERSION:5 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=audio-ac3,LANGUAGE=en,NAME=English,AUTOSELECT=YES,CHANNELS=6,URI=var7031966/aud135/playlist.m3u8?device_profile=hls #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=audio-aac,LANGUAGE=mul,NAME=Multiple,AUTOSELECT=YES,CHANNELS=2,URI=var7031966/aud138/playlist.m3u8?device_profile=hls #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=audio-aac,LANGUAGE=ang,NAME=Old English,AUTOSELECT=YES,CHANNELS=2,URI=var7031966/aud139/playlist.m3u8?device_profile=hls #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID=subs,LANGUAGE=en,NAME=English,AUTOSELECT=YES,URI=subs/eng_2/playlist.m3u8?device_profile=hl s #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=6700000,CODECS=ac-3,avc1.64002a,RESOLUTION=1920x1080,AUDIO=a
Topic: Media Technologies SubTopic: Streaming Tags:
Aug ’23
"prefs:root=" non-public URL scheme
I'm working on an app which I inherited from another developer. The app had previously been published to the app store.When I tried to publish it again with my updates, Apple rejected it with this complaint:Your app uses the prefs:root= non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.I did not add this code. I did search the app and did find a reference to prefs:root=Bluetooth. It looks like the previous developer was trying to open the Bluetooth preferences on behalf of the user in the case when Bluetooth is not enabled. As the app is made specifically to communicate with a Bluetooth device, this is a helpful feature.Is there some other way to do this, or must I simply remove this functionality in order to pass App Review?Thanks,Frank
1
0
3.7k
Nov ’18
Reply to Xcode 13 or iOS15 BUG?
If your app is linked on or after iOS 9.0, you must declare the URL schemes you pass to this method by adding the LSApplicationQueriesSchemes key to your app's Info.plist file. This method always returns false for undeclared schemes, whether or not an appropriate app is installed. Apps linked on or after iOS 15 are limited to a maximum of 50 entries in the LSApplicationQueriesSchemes key. https://developer.apple.com/documentation/uikit/uiapplication/1622952-canopenurl
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’22
ui testing - custom url scheme
Hi,I was wondering how we can test opening a custom url within an XCTestCase while performing UI testing. I am trying:// this custom url is registered within the application let customURL = NSURL(string: foo://localhost/doSomething let sharedApp = UIApplication.sharedApplication() let fileURL = // an NSURL file path UIPasteboard.generalPasteboard().setValue(fileURL, forPasteboardType: com.foo) XCTAssert(sharedApp.canOpenURL(customURL!), cannot open url) // this passes let status = sharedApp.openURL(customURL!) XCTAssert(status, did not open url) // this does NOT passcanOpenURL passes, but openURL does not succeed. Furthermore, the openURL delegate method in my application is never called. In the above snippet, I am also pasting a URL to the paste board because I am trying to open this test data file which was why I decided to try this with a custom URL.Any one have any ideas? Am I not approaching this correctly? I was trying to use an .xcappdata file but since that file loa
3
0
2.5k
Sep ’15
Reply to Preview crashes consistency in Xcode 16 beta
Posted in July, and filed Feedback about it with Apple. After some back and forth they said **Thank you so much for providing the built products! We’ve identified that object files for this project are built as universal. There’s a known issue with the new Previews execution mode that projects built in debug mode as universal can run into this exact error. We’re working on a fix. But in the meantime can you check your scheme build settings? Open up the scheme editor by choosing the “Product > Scheme > Edit Scheme” menu item. Click on the “Build” sidebar tap in the modal window. You should see a control in the middle labeled Override Architectures. We’re pretty sure you have yours set to Universal. If you set that to “Match Run Destination” then your debug build products will just focus on building the architecture that you’re targeting to build-and-run. That should be sufficient! Please let us know if now. Note that this only affects local developmen
Oct ’24
Default iOS apps url schemes calls problem
I'm trying to check which default apps are installed on users phone. I add to LSApplicationQueriesSchemes array strings with apps schemes names (for example calc for calculator), then I use this function to check: func isAppInstalled(_ appName:String) - Bool{ let appScheme = (appName)://app let appUrl = URL(string: appScheme) if UIApplication.shared.canOpenURL(appUrl! as URL){ return true } else { return false } } and use it like let result = isAppInstalled(calc) but receive this error in consolecanOpenURL: failed for URL: calc://app - error: The operation couldn’t be completed. (OSStatus error -10814.) which mean app is not installed. This code work for appstore app, books, apple tv, facetime, messages etc but not working with calculator, time app, compass, contacts, tips. What is wrong with my code? Or maybe Apple changed this apps schemes? Tested on iOS 14 device.
0
0
1.2k
Apr ’21