Search results for

“file uri scheme”

81,725 results found

Post

Replies

Boosts

Views

Activity

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
546
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 Set the ringtone for a contact programmatically
You can use ContactsContract.Contacts which has a column CUSTOM_RINGTONE (which is a read/write column!) for this purpose. Uri contactUri; ContentValues values = new ContentValues(); values.put(ContactsContract.Contacts.CUSTOM_RINGTONE, newRingtoneUri.toString()); context.getContentResolver().update(contactUri, values, where, args);
Topic: App & System Services SubTopic: General Tags:
May ’22
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
Reply to iOS 10 UIWebView not opening App scheme
Also seeing this on iOS10 final release and have filed bug rdar://28311471This seems like an undocumented functionality change with iOS 10.Workaround is to add Info.plist key LSApplicationQueriesSchemes as an Array, with item 0 being the URL scheme you want eg myappURL in your example, and any other items.Please file a bug too on bugreporter.apple.com!
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’16
Reply to Filemanager won't remove file
No, your zipFiles array consists of a URL string (it has the file: scheme at the start of it), so it's not a file path.Whatever is producing your documentSTRINGS array is putting the wrong thing in that array.P.S. In general, do not use path-based APIs like removeItem(atPath:). Use URL-based APIs instead, such as removeItem(at:).
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’18
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.1k
Aug ’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:
Replies
Boosts
Views
Activity
May ’24
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
546
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 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 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
337
Activity
Sep ’15
Reply to Is it possible to switch back to App Clip from third-party app
I'd also like to do this in an app. The app I'm building uses Spotify's API, so I need users to go to Safari to sign in to Spotify and authorise my app to access their data, then be redirected to my app via a redirect URI callback.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Set the ringtone for a contact programmatically
You can use ContactsContract.Contacts which has a column CUSTOM_RINGTONE (which is a read/write column!) for this purpose. Uri contactUri; ContentValues values = new ContentValues(); values.put(ContactsContract.Contacts.CUSTOM_RINGTONE, newRingtoneUri.toString()); context.getContentResolver().update(contactUri, values, where, args);
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
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 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 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
Reply to iOS 10 UIWebView not opening App scheme
Also seeing this on iOS10 final release and have filed bug rdar://28311471This seems like an undocumented functionality change with iOS 10.Workaround is to add Info.plist key LSApplicationQueriesSchemes as an Array, with item 0 being the URL scheme you want eg myappURL in your example, and any other items.Please file a bug too on bugreporter.apple.com!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’16
Reply to Filemanager won't remove file
No, your zipFiles array consists of a URL string (it has the file: scheme at the start of it), so it's not a file path.Whatever is producing your documentSTRINGS array is putting the wrong thing in that array.P.S. In general, do not use path-based APIs like removeItem(atPath:). Use URL-based APIs instead, such as removeItem(at:).
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’18
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.1k
Activity
Aug ’24