Search results for

“file uri scheme”

84,452 results found

Post

Replies

Boosts

Views

Activity

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.6k
Sep ’15
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
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
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
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.3k
Apr ’21
Reply to App store login with sandbox account, and everything else StoreKit
Here's an answer to the part of your question regarding signing in. There are 3 ways of testing in-app purchases, as I understand it: (1) in Xcode; (2) with the Sandbox; and (3) in TestFlight. [I am assuming you are not trying to set up your own server, but are making purchases from an app on your device.' I think you may be confusing the first two methods. To test in Xcode, you supply a .StoreKit Configuration file and select the file on the Product / Scheme / Edit Scheme page in Xcode. This lets you test locally on the simulator and does not use a sandbox account. To test with Sandbox you disable the .StoreKit Configuration file by selecting none in the Xcode Product / Scheme / Edit Scheme page. Then you must define products in App Store Connect (this will be the real data that you previously emulated in the .storekit file) and also create a Sandbox tester account in App store Connect. Now you must test by running from Xcode on your dev
Topic: App & System Services SubTopic: StoreKit Tags:
Apr ’22
[Widgets] [Gallery] Add system URL Scheme to widget gallery
WidgetKit library was presented appeared on WWDC20, and since then there has been no way to bring users to the Widget Gallery, and this becomes a stumbling block for many developers, since we are not able to send our users to developed widgets I suggest Apple add a custom URL scheme similar to that for system applications: facetime://user@example.com sms:1-111-111-0037 And this URL Scheme is up to Apple, but there is a few thoughts about it: How the URL might look like: widgetgallery: widgetgallery:type=<...>&family=<...> URL Scheme parameters: type - widget's kind string identifier, defined in app family - family of widget This will help make widgets more common among users, as well as increase conversion in their additions. For this reason, the development of widgets will become an appropriate feature for companies
0
0
728
Feb ’24
Reply to Custom Product Page Deep Link Execution Issue
Thanks to the iOS Developer Support team, we were able to identify the root cause of the issue. They pointed us toward the Apple App Site Association (AASA) file, which is required for Universal Links to function. It appears that this file is downloaded asynchronously after app installation, leading to the observed delay in executing the deep link. With this insight, we implemented a URL scheme deep link instead of relying on a Universal Link. Since URL schemes work immediately after installation, this resolved the problem entirely. I would suggest adding a hint or recommendation in the Custom Product Pages deep link input field in App Store Connect to encourage the use of URL scheme links instead of Universal Links, particularly for scenarios where immediate link execution is critical.
Dec ’24
Reply to Apple Pay for the Web Merchant Validation
Hi,I am trying to validate merchant through node express.js . Below is my codeapp.get('/merchant-session/new', function (req, res) { var uri = req.query.validationURL || 'https://apple-pay-gateway-cert.apple.com/paymentservices/startSession'; var options = { uri: uri, json: { merchantIdentifier: merchant..., displayName: ...., domainName: fe-uat2-... }, agentOptions: { cert: cert, key: cert } }; request.post(options, function (error, response, body) { if (body) { // Apple returns a payload with `displayName`, but passing this // to `completeMerchantValidation` causes it to error. delete body.displayName; } console.log('body =>>>>>', body); console.log('respnse =>>>>>', response) res.send(body); }, (error) => { console.error(`error =>>>>`, error); }); });I am getting undefined in response.I have generate certificate from KeyChain Access and uploaded that to get Apple Pay Merchant Identity Certificate.Then dowloaded the certificate and save
Jul ’19
xcodebuild -exportLocalizations does not respect build scheme or configuration
Description of Problem We are exporting strings for localization using the command line tool xcodebuild -exportLocalizations. However, Xcode does not respect the scheme or configuration that we specify. It always builds the Debug configuration. This results in extraneous or incorrect strings being exported, e.g. strings from SwiftUI previews. Note: Exporting strings from within the Xcode IDE respects the selected scheme and configuration. However, exporting from the command line does not. Our real app’s Xcode project cannot export strings from within the Xcode IDE at all, as Xcode always attempts to build our iOS project using the macOS SDK, which obviously fails. So we must use the command line export. Also, a command line export is required for CI/CD pipelines. Sample Code ContentView.swift import SwiftUI struct ContentView: View { var body: some View { VStack { Text(Always) #if DEBUG Text(Debug-Explicit) Text(Debug-Implicit) #else Text(Release-Explicit) Text(Release-Implicit) #endif } .pa
3
0
840
Jul ’24
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
Replies
3
Boosts
0
Views
2.6k
Activity
Sep ’15
Xcode build Scheme not configured for build action
I'm using a xcodebuild comand to build my apps, but when i try to run the comand, i get the following error:Scheme SchemeName is not currently configured for the clean action.I've checked the shared option for my scheme, but now i don't know what to do to solve this problem.
Replies
2
Boosts
0
Views
6.4k
Activity
Jul ’16
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:
Replies
Boosts
Views
Activity
Jan ’22
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
Replies
Boosts
Views
Activity
Oct ’24
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:
Replies
Boosts
Views
Activity
Aug ’23
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.
Replies
0
Boosts
0
Views
1.3k
Activity
Apr ’21
Reply to App store login with sandbox account, and everything else StoreKit
Here's an answer to the part of your question regarding signing in. There are 3 ways of testing in-app purchases, as I understand it: (1) in Xcode; (2) with the Sandbox; and (3) in TestFlight. [I am assuming you are not trying to set up your own server, but are making purchases from an app on your device.' I think you may be confusing the first two methods. To test in Xcode, you supply a .StoreKit Configuration file and select the file on the Product / Scheme / Edit Scheme page in Xcode. This lets you test locally on the simulator and does not use a sandbox account. To test with Sandbox you disable the .StoreKit Configuration file by selecting none in the Xcode Product / Scheme / Edit Scheme page. Then you must define products in App Store Connect (this will be the real data that you previously emulated in the .storekit file) and also create a Sandbox tester account in App store Connect. Now you must test by running from Xcode on your dev
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Apr ’22
[Widgets] [Gallery] Add system URL Scheme to widget gallery
WidgetKit library was presented appeared on WWDC20, and since then there has been no way to bring users to the Widget Gallery, and this becomes a stumbling block for many developers, since we are not able to send our users to developed widgets I suggest Apple add a custom URL scheme similar to that for system applications: facetime://user@example.com sms:1-111-111-0037 And this URL Scheme is up to Apple, but there is a few thoughts about it: How the URL might look like: widgetgallery: widgetgallery:type=<...>&family=<...> URL Scheme parameters: type - widget's kind string identifier, defined in app family - family of widget This will help make widgets more common among users, as well as increase conversion in their additions. For this reason, the development of widgets will become an appropriate feature for companies
Replies
0
Boosts
0
Views
728
Activity
Feb ’24
Reply to Custom Product Page Deep Link Execution Issue
Thanks to the iOS Developer Support team, we were able to identify the root cause of the issue. They pointed us toward the Apple App Site Association (AASA) file, which is required for Universal Links to function. It appears that this file is downloaded asynchronously after app installation, leading to the observed delay in executing the deep link. With this insight, we implemented a URL scheme deep link instead of relying on a Universal Link. Since URL schemes work immediately after installation, this resolved the problem entirely. I would suggest adding a hint or recommendation in the Custom Product Pages deep link input field in App Store Connect to encourage the use of URL scheme links instead of Universal Links, particularly for scenarios where immediate link execution is critical.
Replies
Boosts
Views
Activity
Dec ’24
Reply to UI testing: how to set location?
You can set the location in the scheme. For custom locations you can create a gpx file and have it use it as well. There is this article is a little old but gives most of the details.https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html
Replies
Boosts
Views
Activity
May ’16
Reply to StoreKit testing in XCode
This could happen if you added StoreKit configuration file and added it to Options of Run scheme: Get wrong receipt data from Apple - https://developer.apple.com/forums/thread/729543?answerId=752823022#752823022
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Apple Pay for the Web Merchant Validation
Hi,I am trying to validate merchant through node express.js . Below is my codeapp.get('/merchant-session/new', function (req, res) { var uri = req.query.validationURL || 'https://apple-pay-gateway-cert.apple.com/paymentservices/startSession'; var options = { uri: uri, json: { merchantIdentifier: merchant..., displayName: ...., domainName: fe-uat2-... }, agentOptions: { cert: cert, key: cert } }; request.post(options, function (error, response, body) { if (body) { // Apple returns a payload with `displayName`, but passing this // to `completeMerchantValidation` causes it to error. delete body.displayName; } console.log('body =>>>>>', body); console.log('respnse =>>>>>', response) res.send(body); }, (error) => { console.error(`error =>>>>`, error); }); });I am getting undefined in response.I have generate certificate from KeyChain Access and uploaded that to get Apple Pay Merchant Identity Certificate.Then dowloaded the certificate and save
Replies
Boosts
Views
Activity
Jul ’19
xcodebuild -exportLocalizations does not respect build scheme or configuration
Description of Problem We are exporting strings for localization using the command line tool xcodebuild -exportLocalizations. However, Xcode does not respect the scheme or configuration that we specify. It always builds the Debug configuration. This results in extraneous or incorrect strings being exported, e.g. strings from SwiftUI previews. Note: Exporting strings from within the Xcode IDE respects the selected scheme and configuration. However, exporting from the command line does not. Our real app’s Xcode project cannot export strings from within the Xcode IDE at all, as Xcode always attempts to build our iOS project using the macOS SDK, which obviously fails. So we must use the command line export. Also, a command line export is required for CI/CD pipelines. Sample Code ContentView.swift import SwiftUI struct ContentView: View { var body: some View { VStack { Text(Always) #if DEBUG Text(Debug-Explicit) Text(Debug-Implicit) #else Text(Release-Explicit) Text(Release-Implicit) #endif } .pa
Replies
3
Boosts
0
Views
840
Activity
Jul ’24
Reply to Erreur 34 311
malware massage Scheme fix (macOS) is not testable. Last login: Wed Mar 12 04:37:21 on ttys000 login: /usr/bin/zsh: No such file or directory
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Big Sur 11 beta 10 & Xcode: Nothing is working
try turning off Debug executable in the active scheme, Product->Scheme->Edit scheme->Run->Info
Replies
Boosts
Views
Activity
Oct ’20