Search results for

“file uri scheme”

85,531 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
Reply to The customized GPX file for Xcode 16 cannot be selected.
I think, Sequoia doesn't recognize the GPX-Files. If you add this file into your project scheme manually, it works. Just put the file name into the file: .xcsheme: and it will work. The .gpx musst be in your Xcode project, of course. If you don't know at which place in the .xcsceme file it hast to be put, you can put in Xcode some standard location (for example Honolulu), exit Xcode and replace Honolulu- sequence with the sequence above in the .xcscheme file. Best DM
Nov ’24
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
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
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
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
574
Jun ’24
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 How to pass data from Customer App to Admin App
I think the standard approach is a custom URL scheme if your data is short enough to fit in a URL (not sure what limits, if any, there are on the length). There's also the keychain with the same sort of limit - it's meant for small bits of info like passwords.I believe as of iOS 8 you can now have a shared app container so apps from the same developer can share data. One app could write a file and the other app could read it. That, in combination with the URL scheme, may be a more flexible approach.
Topic: Programming Languages SubTopic: General Tags:
Jun ’15
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 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
Reply to The customized GPX file for Xcode 16 cannot be selected.
I think, Sequoia doesn't recognize the GPX-Files. If you add this file into your project scheme manually, it works. Just put the file name into the file: .xcsheme: and it will work. The .gpx musst be in your Xcode project, of course. If you don't know at which place in the .xcsceme file it hast to be put, you can put in Xcode some standard location (for example Honolulu), exit Xcode and replace Honolulu- sequence with the sequence above in the .xcscheme file. Best DM
Replies
Boosts
Views
Activity
Nov ’24
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 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
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 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
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
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
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
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
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
574
Activity
Jun ’24
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 How to pass data from Customer App to Admin App
I think the standard approach is a custom URL scheme if your data is short enough to fit in a URL (not sure what limits, if any, there are on the length). There's also the keychain with the same sort of limit - it's meant for small bits of info like passwords.I believe as of iOS 8 you can now have a shared app container so apps from the same developer can share data. One app could write a file and the other app could read it. That, in combination with the URL scheme, may be a more flexible approach.
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’15