Search results for

“file uri scheme”

81,729 results found

Post

Replies

Boosts

Views

Activity

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 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
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 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
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
803
Jul ’24
[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
705
Feb ’24
"Failed to build the scheme (app name)"
Good morning, I have a problem. I'm a newbie on coding and I'm studying Swift with an old course online with Xcode 11 but I have Xcode 14 and some things are different. I'm building a test app to learn code but now I don't view the canvas, is in error, and the diagnostic give me this: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) SchemeBuildError: Failed to build the scheme PizzaList API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) Compile asset catalogs: CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) /* com.apple.actool.errors */ : error: ERROR: Identical key for two renditions (E)Key element: Grouped/Packed Images part: Artwork Image value: (null) identifier: 0 dim
3
0
4.3k
Mar ’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
Jul ’19
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
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 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
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 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 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
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
803
Activity
Jul ’24
Reply to Scheme Destination Toolbar Missing
This seems to be a bug to me, please dupe rdar://21855495.The thing that seemed to trigger it for me was a wider than usual Schemes menu, thanks to some duplication of iOS 8.4 device simulators (also filed a bug for that: rdar://21855393
Replies
Boosts
Views
Activity
Jul ’15
Reply to Using Simulator in Xcode 7.3.1 causes Xcode 8 projects to lose Scheme setting
Workaround: Close Xcode 8 beta 2 and delete the Username.xcuserdatad subfolder of the xcuserdata folder inside the project's xcodeproj file. When you open the project in Xcode 8 beta 2 again, the scheme is visible.Worked for me
Replies
Boosts
Views
Activity
Jul ’16
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
[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
705
Activity
Feb ’24
"Failed to build the scheme (app name)"
Good morning, I have a problem. I'm a newbie on coding and I'm studying Swift with an old course online with Xcode 11 but I have Xcode 14 and some things are different. I'm building a test app to learn code but now I don't view the canvas, is in error, and the diagnostic give me this: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) SchemeBuildError: Failed to build the scheme PizzaList API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) Compile asset catalogs: CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) /* com.apple.actool.errors */ : error: ERROR: Identical key for two renditions (E)Key element: Grouped/Packed Images part: Artwork Image value: (null) identifier: 0 dim
Replies
3
Boosts
0
Views
4.3k
Activity
Mar ’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