Search results for

“file uri scheme”

84,452 results found

Post

Replies

Boosts

Views

Activity

iOS9 redirect to url scheme if app installed
I have created a landing page in my webapp that will attempt to redirect to my native app's URL scheme if the app is installed and if it is not, I have a timeout set to redirect to the normal webapp URL as discussed here.My code looks like this:$(document).ready(function() { window.location.href = urlScheme://; setTimeout(function() { window.location.href = http://foo.bar/webappurl }, 500); })The app redirects to 'http://foo.bar/webappurl' no matter what, even when the app is installed. I can see the do you want to open this in your app? dialog for a split second before it redirects, but it always redirects no matter what.Can anyone tell me what I'm doing wrong here or recommed a better way to check to see if the app is installed and then redirect there using Javascript?
Topic: Safari & Web SubTopic: General Tags:
0
0
1.7k
Dec ’15
Reply to Sign in with Apple missing email claim in the (JWT) identityToken
I've wasted weeks searching for true reason why I randomly fail to get email information. Following are the conclusions I came up after long suffering: You do not define scope and response_mode in the login uri(url which you would link to the button click event), you will get email in the id_token as JWT only once and this cannot be reverted unless you change the uri and add scope and response_mode first and delete the app you once signed in with 'Sign in with apple' in the appleid.apple.com manage page consequently. If you do not specify scope and response_mode, this will let you use GET method to redirect(or return) to your frontend and it will enable easy login feature just like other major service providers. However, you cannot use email(true email or anonymous email all together) to authorize your users later and your only option is to use sub values in the id_token. You define scope and reponse_mode in the login uri, you will get email in the id_token everytime. You can use th
Topic: App & System Services SubTopic: General Tags:
Apr ’22
Swift URL with Custom Scheme in Query String Fails
I'm trying to call a URL using URLSession to log out of an oauth2 session in swift in an iOS app. The URL is something like this:Notice that some parameters are URL Encoded* https://xxxxxx.auth.us-east-1.amazoncognito.com/logout?client_id=49jaf4a848hakh&logout_uri=myapp%3A%2F%2F&redirect_uri=myapp%3A%2F%2F&response_type=token I get a run time error using this URL in a data task that says:* Error Domain=NSURLErrorDomain Code=-1002 unsupported URL UserInfo={NSUnderlyingError=0x60000202ccf0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 (null)}, NSErrorFailingURLStringKey=myapp://, NSErrorFailingURLKey=myapp://, NSLocalizedDescription=unsupported URL} I already have myapp in my info.plist.* <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>com.xxx.yyy</string> <key>CFBundleURLSchemes</key> <array> <string>myapp</string> </array> </dict> </array
5
0
5.7k
Aug ’20
Reply to Fail to raise open file limit
This is the exact diagnostic given by Xcode. I am building a Single View App project. I didn't use an external library. I am doing some demo, but this error occurs.failed to raise open file limit----------------------------------------SchemeBuildError: Failed to build the scheme Memorizefailed to raise open file limitBuild system information:error: failed to raise open file limit--------------------------------------Solved. Just a system setting issue
May ’20
Reply to Bad CPU type in executable
Thank you for reply. I already performed the below actions and got Bad CPU type... result. I changed Build Active Architecture Only setting to No for both Debug and Release. And I run the Product/Scheme/Edit Scheme... menu and changed everything from Debug to Release. The compiled file was created in the Release folder, and I notarize it on M3 Machine. After then I manually copied this file to the Intel machine and run it. Notarize Steps are as Follows and it successfully done. ditto -c -k --keepParent $APP_NAME $APP_ZIP xcrun notarytool submit ./$APP_ZIP --wait --keychain-profile $AC_KEYCHAIN xcrun stapler staple $APP_NAME
Topic: App & System Services SubTopic: Core OS Tags:
May ’24
How to use frameworks with the same name for different scheme
So I have 2 schemes: prod and staging. And both have their own Debug and Release configuration settings (one of which is the bundle ID, eg. prod-Release: com.mycomp.myApp, prod-Debug: com.myComp.myApp.debug, staging-Release: com.myComp.myApp.staging.debug, staging-Debug: com.myComp.myApp.staging.debug). Now, there is a framework that is bound to each bundle ID. The framework is not from a So I need 4 instances of the same framework for each bundle ID. I tried separating the frameworks into folders and just link them whenever I need to run the appropriate scheme. Basically like so: {PROJECT_ROOT}FrameworksMyFrameworkprod-DebugMyFramework.xcframework {PROJECT_ROOT}FrameworksMyFrameworkprod-ReleaseMyFramework.xcframework {PROJECT_ROOT}FrameworksMyFrameworkstaging-DebugMyFramework.xcframework {PROJECT_ROOT}FrameworksMyFrameworkstaging-ReleaseMyFramework.xcframework I've added a Run script to create the link before Compile Sources step like so: cd ${SRCROOT}/zDefend if [ ${CONFIGURATION} = prod-D
0
0
569
Jun ’24
XCode 14 and XCode Cloud: issue creating a scheme
Hello, my name is David. I'm trying to test XCode Cloud with Version 14.0 beta (14A5228q) in a MacBookPro. I have an issue: as a developer with my Apple ID i have access to several companies and Apps (managed by me) in the Apple Store Connect. But when i try to do Product > XCode Cloud > Create workflow allways show the first company that i have access and cant switch to another one. Can you tell me if this is a known bug please? How can I create a Scheme but with the account/company/app that I want, please? Thank you very much and greetings.
1
0
1.1k
Jun ’22
Confused between custom URL schemes and Universal linking and redirecting to the app store
I have a requirement to launch an app from another app (there is no requirement to launch the app from a website), and if its not installed then for the user to be redirected to the app store to download the app. The app already has a custom url scheme implemented, however the documentation and tutorials in this area are confusing and unclear. In order to launch the app, the custom url scheme will provide that, however, in order to get the redirection to the app store then firstly does the custom url scheme have to be replaced with universal links? Secondly, is it necessary to have a webpage that links to the app store? Is it possible to get this behaviour without having a website? Is it the case that Apple doesn't provide this functionality and developers have to have the hassle of hosting a website purely just for the sake of redirecting to the App Store?
1
0
1.2k
Aug ’24
Reply to Unable to open phone application in IOS 9 swift
It's not a file URL; it's a regular URL. You're using the wrong NSURL constructor. And the string you have there is not a valid URL. It is missing the slashes. URLs start with scheme colon slash slash...
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’16
Xcode 7 crashes when clicking on Product > Edit Scheme
Xcode crashes when I want to open Scheme editor of C++ Console project. I tried reinstall, recreate project .. etc.I want to add option < test_inputs.txt to compiling command.I have Macbook Air 2015, OSX Yosemite.Thanks
Replies
2
Boosts
0
Views
349
Activity
Sep ’15
iOS9 redirect to url scheme if app installed
I have created a landing page in my webapp that will attempt to redirect to my native app's URL scheme if the app is installed and if it is not, I have a timeout set to redirect to the normal webapp URL as discussed here.My code looks like this:$(document).ready(function() { window.location.href = urlScheme://; setTimeout(function() { window.location.href = http://foo.bar/webappurl }, 500); })The app redirects to 'http://foo.bar/webappurl' no matter what, even when the app is installed. I can see the do you want to open this in your app? dialog for a split second before it redirects, but it always redirects no matter what.Can anyone tell me what I'm doing wrong here or recommed a better way to check to see if the app is installed and then redirect there using Javascript?
Topic: Safari & Web SubTopic: General Tags:
Replies
0
Boosts
0
Views
1.7k
Activity
Dec ’15
Reply to Building multiple build configurations using Xcode Cloud
Could you do this by having multiple schemes and specifying the build configuration within the scheme. The 'Actions' section of the workflow let's you select which scheme to use.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Sign in with Apple missing email claim in the (JWT) identityToken
I've wasted weeks searching for true reason why I randomly fail to get email information. Following are the conclusions I came up after long suffering: You do not define scope and response_mode in the login uri(url which you would link to the button click event), you will get email in the id_token as JWT only once and this cannot be reverted unless you change the uri and add scope and response_mode first and delete the app you once signed in with 'Sign in with apple' in the appleid.apple.com manage page consequently. If you do not specify scope and response_mode, this will let you use GET method to redirect(or return) to your frontend and it will enable easy login feature just like other major service providers. However, you cannot use email(true email or anonymous email all together) to authorize your users later and your only option is to use sub values in the id_token. You define scope and reponse_mode in the login uri, you will get email in the id_token everytime. You can use th
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Swift URL with Custom Scheme in Query String Fails
I'm trying to call a URL using URLSession to log out of an oauth2 session in swift in an iOS app. The URL is something like this:Notice that some parameters are URL Encoded* https://xxxxxx.auth.us-east-1.amazoncognito.com/logout?client_id=49jaf4a848hakh&logout_uri=myapp%3A%2F%2F&redirect_uri=myapp%3A%2F%2F&response_type=token I get a run time error using this URL in a data task that says:* Error Domain=NSURLErrorDomain Code=-1002 unsupported URL UserInfo={NSUnderlyingError=0x60000202ccf0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 (null)}, NSErrorFailingURLStringKey=myapp://, NSErrorFailingURLKey=myapp://, NSLocalizedDescription=unsupported URL} I already have myapp in my info.plist.* <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>com.xxx.yyy</string> <key>CFBundleURLSchemes</key> <array> <string>myapp</string> </array> </dict> </array
Replies
5
Boosts
0
Views
5.7k
Activity
Aug ’20
Reply to Fail to raise open file limit
This is the exact diagnostic given by Xcode. I am building a Single View App project. I didn't use an external library. I am doing some demo, but this error occurs.failed to raise open file limit----------------------------------------SchemeBuildError: Failed to build the scheme Memorizefailed to raise open file limitBuild system information:error: failed to raise open file limit--------------------------------------Solved. Just a system setting issue
Replies
Boosts
Views
Activity
May ’20
Reply to Bad CPU type in executable
Thank you for reply. I already performed the below actions and got Bad CPU type... result. I changed Build Active Architecture Only setting to No for both Debug and Release. And I run the Product/Scheme/Edit Scheme... menu and changed everything from Debug to Release. The compiled file was created in the Release folder, and I notarize it on M3 Machine. After then I manually copied this file to the Intel machine and run it. Notarize Steps are as Follows and it successfully done. ditto -c -k --keepParent $APP_NAME $APP_ZIP xcrun notarytool submit ./$APP_ZIP --wait --keychain-profile $AC_KEYCHAIN xcrun stapler staple $APP_NAME
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24
How to use frameworks with the same name for different scheme
So I have 2 schemes: prod and staging. And both have their own Debug and Release configuration settings (one of which is the bundle ID, eg. prod-Release: com.mycomp.myApp, prod-Debug: com.myComp.myApp.debug, staging-Release: com.myComp.myApp.staging.debug, staging-Debug: com.myComp.myApp.staging.debug). Now, there is a framework that is bound to each bundle ID. The framework is not from a So I need 4 instances of the same framework for each bundle ID. I tried separating the frameworks into folders and just link them whenever I need to run the appropriate scheme. Basically like so: {PROJECT_ROOT}FrameworksMyFrameworkprod-DebugMyFramework.xcframework {PROJECT_ROOT}FrameworksMyFrameworkprod-ReleaseMyFramework.xcframework {PROJECT_ROOT}FrameworksMyFrameworkstaging-DebugMyFramework.xcframework {PROJECT_ROOT}FrameworksMyFrameworkstaging-ReleaseMyFramework.xcframework I've added a Run script to create the link before Compile Sources step like so: cd ${SRCROOT}/zDefend if [ ${CONFIGURATION} = prod-D
Replies
0
Boosts
0
Views
569
Activity
Jun ’24
Reply to Xcode 14.1 & 14.2 modifies pbxproj files automatically
@Scott Thanks for your response. We have a custom script which is added as part of Post-actions under Scheme -> Build. This iterates over all the .pbxproj using xUnique and applies sorts the modified files.
Replies
Boosts
Views
Activity
Feb ’23
Reply to preferredColorScheme does not work with previewContext
Hi, Sorry to hear you are having trouble getting the color scheme to apply to the Widget previews. Worth filing a bug with a simple sample project. As a workaround could you try using Xcode 14's preview variants support?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to How to make Xcode use the correct configuration when archiving a Target
I was using the wrong scheme (whatever that is). To set the right scheme, use the Scheme menu (just to the right of the square Stop button on the menu bar).
Replies
Boosts
Views
Activity
Sep ’20
XCode 14 and XCode Cloud: issue creating a scheme
Hello, my name is David. I'm trying to test XCode Cloud with Version 14.0 beta (14A5228q) in a MacBookPro. I have an issue: as a developer with my Apple ID i have access to several companies and Apps (managed by me) in the Apple Store Connect. But when i try to do Product > XCode Cloud > Create workflow allways show the first company that i have access and cant switch to another one. Can you tell me if this is a known bug please? How can I create a Scheme but with the account/company/app that I want, please? Thank you very much and greetings.
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’22
Confused between custom URL schemes and Universal linking and redirecting to the app store
I have a requirement to launch an app from another app (there is no requirement to launch the app from a website), and if its not installed then for the user to be redirected to the app store to download the app. The app already has a custom url scheme implemented, however the documentation and tutorials in this area are confusing and unclear. In order to launch the app, the custom url scheme will provide that, however, in order to get the redirection to the app store then firstly does the custom url scheme have to be replaced with universal links? Secondly, is it necessary to have a webpage that links to the app store? Is it possible to get this behaviour without having a website? Is it the case that Apple doesn't provide this functionality and developers have to have the hassle of hosting a website purely just for the sake of redirecting to the App Store?
Replies
1
Boosts
0
Views
1.2k
Activity
Aug ’24
URL scheme whitelist - submission
Hi, what is the process for providing justification for the apps outlined in our whitelist for canOpenURL. Will we need to provide this detail in iTunes Connect when we submit or elsewhere? Thanks.
Replies
0
Boosts
0
Views
943
Activity
Aug ’15