Search results for

“file uri scheme”

84,452 results found

Post

Replies

Boosts

Views

Activity

canOpenURL failing for system-wide URL schemes
I'm running iOS 9b5.In my app, if a device can make a phone call, I want to color the text blue so it looks tappable. If not, I leave it black.In order to determine the device capabilities, I use:[[UIApplcation sharedApplication] canOpenURL:@telprompt://5555555555]As we all know, iOS 9 requires we whitelist any URL schemes we'll be using in our app as a privacy measure.I have this in my Info.plist:<key>LSApplicationQueriesSchemes</key> <array> <string>telprompt</string> </array>No matter what I do, I still get canOpenURL: failed for URL: telprompt:// - error: (null). I've tried tel:// and sms:// and I can't seem to avoid that syslog warning.Does anybody know of a way to detect whether or not a device can make a phone call wtihout triggering these warnings?
1
0
2.8k
Aug ’15
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
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 Lost connection to the debugger
In Xcode Version 15.0 beta 5 Create a file called LLDBInitFile in the SRCROOT folder (the folder containing the project) Add this line to the file: settings set plugin.process.gdb-remote.packet-timeout 300 Restart Xcode and try again In the Edit Scheme -> Run > Info Tab there is a field to locate the LLDBInitFile but is disabled.
Aug ’23
Reply to Widgets & Live activities debug install dosen't work
The way I resolved the problem is the following: In Products -> Schemes -> Manage Schemes, I created a new scheme with the application instead of the widget extension (which was the default scheme made by Xcode). When I built with this scheme, no error showed up. I think it solved the problem, I just can't test it right now because my developer license isn't activated yet. Thanks to Jackson-G for the help!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
Reply to Xcode randomly modifies my scheme content
I have this same issue with our Watch app schemes and have also submitted a feedback request (FB9832417) the resolution status has been updated to Potential fix identified - For a future OS update so hopefully we'll have a fix soon. Removing it from the repo doesn't work for us since it results in that scheme not showing up in the schemes drop-down. Using git update-index --skip-worktree doesn't work well on a large team since if everyone doesn't do it then it causes issues, and the docs for that command warn that it isn't meant for this type of use case. My latest workaround is to add a pre-commit hook that discards the changes to those scheme files before committing so that it doesn't show up in our pull requests at least. Still shows up in the local diff before committing which is annoying but it's the best i've been able to work out so far that doesn't depend on everyone aligning on the same behavior.
Apr ’22
Enabling/disabling Package Dependencies on build or across schemes?
My app has it's debug and release schemes. A client had a specific request which meant adding a couple of Swift packages that we only use with said client, and we proceed to install the app directly on their devices; however, on our repository we've been managing this request in its own branch, planning to eventually merge it to the development and master branches, and I am unsure of what to do regarding the client's package dependencies. Therefore, is there a way to manage which package dependencies to include when publishing to the App Store? Or is this an all or nothing situation?
1
0
754
Mar ’22
Swift Package Manager - Crashes on release scheme
Hello, I'm encounter crashes when integrating a company internal package through SPM only when I compile my app with the release scheme. My solution so far was to directly integrate sources into my project to solve theses crashes. For the context, the library use Metal and AVPlayer to manipulate AVPlayerItem and render video. Crashes frequently happened on those following lines: self.playerItem = AVPlayerItem(asset: asset) self.videoOutput = AVPlayerItemVideoOutput(outputSettings: [ kCVPixelBufferPixelFormatTypeKey as String: NSNumber(value:kCVPixelFormatType_32BGRA), kCVPixelBufferMetalCompatibilityKey as String: NSNumber(value: true)]) self.playerItem?.add(self.videoOutput!) The videoOutput variable is becoming nil resulting a crash. I have tried to disable compilation optimization of Apple Clang and Swift Compiler in the app and in the package (I don't know if compilation parameters of a package have any influence at all). I tried this because theses compilation parameters are different in release
0
0
655
Nov ’21
URL Scheme not updating to new versions of Enterprise App
I have taken over managing an older enterprise app that is deployed to target iOS 5.0. We are having random problems with the app after recompiling changes to the content data. The problems seem to only effect 64bit iPads. There are random failures to overwrite existing data. The most obvious being changes to the URL Scheme in xCode is not being reflected in the app. The result is that when the new enterprise app version is deployed some of the new info doesn't seem to be getting replaced for all iPads all the time. Hence calls to a given URL scheme are failing to open that app on some pads and not others.There are other details that I have sussed out but those are the big points. Any comments would be most welcome.
0
0
279
May ’16
canOpenURL failing for system-wide URL schemes
I'm running iOS 9b5.In my app, if a device can make a phone call, I want to color the text blue so it looks tappable. If not, I leave it black.In order to determine the device capabilities, I use:[[UIApplcation sharedApplication] canOpenURL:@telprompt://5555555555]As we all know, iOS 9 requires we whitelist any URL schemes we'll be using in our app as a privacy measure.I have this in my Info.plist:<key>LSApplicationQueriesSchemes</key> <array> <string>telprompt</string> </array>No matter what I do, I still get canOpenURL: failed for URL: telprompt:// - error: (null). I've tried tel:// and sms:// and I can't seem to avoid that syslog warning.Does anybody know of a way to detect whether or not a device can make a phone call wtihout triggering these warnings?
Replies
1
Boosts
0
Views
2.8k
Activity
Aug ’15
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
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 randomly modifies my scheme content
My ultimate solution was to untrack the scheme files by adding their folder to my gitignore, duplicating them to an adjacent folder, and writing a script which will copy the new folder's contents to the ignored folder (must be run locally for each developer).
Replies
Boosts
Views
Activity
Nov ’20
Test scheme "info" "arguments" "options" "diagnostics" tabs moved
Xcode's test scheme info, arguments, options and diagnostics tabs were once visible by pressing Command + Option + U, but they've been moved. Where do I find the corresponding sections, now? Here's the old UI (credit: https://betterprogramming.pub/easy-unit-testing-for-firebase-in-xcode-874842f79d84): Here is the new one:
Replies
1
Boosts
0
Views
811
Activity
Oct ’23
Reply to Lost connection to the debugger
In Xcode Version 15.0 beta 5 Create a file called LLDBInitFile in the SRCROOT folder (the folder containing the project) Add this line to the file: settings set plugin.process.gdb-remote.packet-timeout 300 Restart Xcode and try again In the Edit Scheme -> Run > Info Tab there is a field to locate the LLDBInitFile but is disabled.
Replies
Boosts
Views
Activity
Aug ’23
Reply to Widgets & Live activities debug install dosen't work
The way I resolved the problem is the following: In Products -> Schemes -> Manage Schemes, I created a new scheme with the application instead of the widget extension (which was the default scheme made by Xcode). When I built with this scheme, no error showed up. I think it solved the problem, I just can't test it right now because my developer license isn't activated yet. Thanks to Jackson-G for the help!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Xcode randomly modifies my scheme content
I have this same issue with our Watch app schemes and have also submitted a feedback request (FB9832417) the resolution status has been updated to Potential fix identified - For a future OS update so hopefully we'll have a fix soon. Removing it from the repo doesn't work for us since it results in that scheme not showing up in the schemes drop-down. Using git update-index --skip-worktree doesn't work well on a large team since if everyone doesn't do it then it causes issues, and the docs for that command warn that it isn't meant for this type of use case. My latest workaround is to add a pre-commit hook that discards the changes to those scheme files before committing so that it doesn't show up in our pull requests at least. Still shows up in the local diff before committing which is annoying but it's the best i've been able to work out so far that doesn't depend on everyone aligning on the same behavior.
Replies
Boosts
Views
Activity
Apr ’22
Reply to Application Driven to Crash Only For First Launch
1. Choose Manage Schemes under Product > Scheme.2. Double-click on a scheme.3. Select Run.4. Navigate to Options. And you find it there.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’18
Enabling/disabling Package Dependencies on build or across schemes?
My app has it's debug and release schemes. A client had a specific request which meant adding a couple of Swift packages that we only use with said client, and we proceed to install the app directly on their devices; however, on our repository we've been managing this request in its own branch, planning to eventually merge it to the development and master branches, and I am unsure of what to do regarding the client's package dependencies. Therefore, is there a way to manage which package dependencies to include when publishing to the App Store? Or is this an all or nothing situation?
Replies
1
Boosts
0
Views
754
Activity
Mar ’22
Swift Package Manager - Crashes on release scheme
Hello, I'm encounter crashes when integrating a company internal package through SPM only when I compile my app with the release scheme. My solution so far was to directly integrate sources into my project to solve theses crashes. For the context, the library use Metal and AVPlayer to manipulate AVPlayerItem and render video. Crashes frequently happened on those following lines: self.playerItem = AVPlayerItem(asset: asset) self.videoOutput = AVPlayerItemVideoOutput(outputSettings: [ kCVPixelBufferPixelFormatTypeKey as String: NSNumber(value:kCVPixelFormatType_32BGRA), kCVPixelBufferMetalCompatibilityKey as String: NSNumber(value: true)]) self.playerItem?.add(self.videoOutput!) The videoOutput variable is becoming nil resulting a crash. I have tried to disable compilation optimization of Apple Clang and Swift Compiler in the app and in the package (I don't know if compilation parameters of a package have any influence at all). I tried this because theses compilation parameters are different in release
Replies
0
Boosts
0
Views
655
Activity
Nov ’21
URL Scheme not updating to new versions of Enterprise App
I have taken over managing an older enterprise app that is deployed to target iOS 5.0. We are having random problems with the app after recompiling changes to the content data. The problems seem to only effect 64bit iPads. There are random failures to overwrite existing data. The most obvious being changes to the URL Scheme in xCode is not being reflected in the app. The result is that when the new enterprise app version is deployed some of the new info doesn't seem to be getting replaced for all iPads all the time. Hence calls to a given URL scheme are failing to open that app on some pads and not others.There are other details that I have sussed out but those are the big points. Any comments would be most welcome.
Replies
0
Boosts
0
Views
279
Activity
May ’16