Search results for

“file uri scheme”

81,744 results found

Post

Replies

Boosts

Views

Activity

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
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 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 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
Reply to Fetching XCFramework dependencies
It would be safer to run this as a pre-build script so the files are copied locally before the build begins to reduce any problems with network connectivity fluctuating mid-build or a race between targets in a parallel build. You can automate this in Xcode by using a feature of the scheme called a build pre-action. When you go to edit your scheme, open the disclosure triangle on the Build action, and you'll see 3 options, Pre-actions, Build, and Post-actions. You can add a shell script to the pre-action that does the copy.
Apr ’20
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
740
Mar ’22
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
273
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?
1
0
2.8k
Aug ’15
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
638
Nov ’21
Reply to how to generate the .ipa from the terminal
Hi @kandavel, I am trying to run the project using terminal instead of Xcode->Product->Archieve. We have completed the clean, build and archive successfully. When export .ipa I am getting this following error “The file “ExportOptions.plist” couldn’t be opened because there is no such file.”. When I surf in stack overflow I can’t get any idea about the plist file.For example, we have an app with the original name MyApp:xcodebuild clean -workspace MyApp.xcworkspace -scheme Developmentxcodebuild build -workspace MyApp.xcworkspace -scheme Developmentxcodebuild archive -workspace MyApp.xcworkspace -scheme Development -archivePath ~/Users/Desktop/SampleApp/MyApp.xcarchive The above code works fine. When using the below line I am getting the “ExportOptions.plist” error. xcodebuild -exportArchive -archivePath ~/Users/Desktop/SampleApp/MyApp.xcarchive -exportPath ~/Users/Desktop/SampleApp/MyApp -exportOptionsPlist ~/Users/Desktop/SampleApp/ExportOptions.plist My quest
Oct ’19
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
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 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
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
924
Activity
Aug ’15
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 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
Reply to Fetching XCFramework dependencies
It would be safer to run this as a pre-build script so the files are copied locally before the build begins to reduce any problems with network connectivity fluctuating mid-build or a race between targets in a parallel build. You can automate this in Xcode by using a feature of the scheme called a build pre-action. When you go to edit your scheme, open the disclosure triangle on the Build action, and you'll see 3 options, Pre-actions, Build, and Post-actions. You can add a shell script to the pre-action that does the copy.
Replies
Boosts
Views
Activity
Apr ’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
776
Activity
Oct ’23
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
740
Activity
Mar ’22
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
273
Activity
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
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
638
Activity
Nov ’21
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
Reply to how to generate the .ipa from the terminal
Hi @kandavel, I am trying to run the project using terminal instead of Xcode->Product->Archieve. We have completed the clean, build and archive successfully. When export .ipa I am getting this following error “The file “ExportOptions.plist” couldn’t be opened because there is no such file.”. When I surf in stack overflow I can’t get any idea about the plist file.For example, we have an app with the original name MyApp:xcodebuild clean -workspace MyApp.xcworkspace -scheme Developmentxcodebuild build -workspace MyApp.xcworkspace -scheme Developmentxcodebuild archive -workspace MyApp.xcworkspace -scheme Development -archivePath ~/Users/Desktop/SampleApp/MyApp.xcarchive The above code works fine. When using the below line I am getting the “ExportOptions.plist” error. xcodebuild -exportArchive -archivePath ~/Users/Desktop/SampleApp/MyApp.xcarchive -exportPath ~/Users/Desktop/SampleApp/MyApp -exportOptionsPlist ~/Users/Desktop/SampleApp/ExportOptions.plist My quest
Replies
Boosts
Views
Activity
Oct ’19
Reply to Xcode 12.5.1 (12E507) Unable to add GPS Exchange to project
It completely works on Xcode12* once deleting Xcode13. But in my case, temporarily storing Xcode13 in Trash without deleting, GPX files showed up. If they don’t show up or Simulate Location button itself is not displayed, try edit scheme > options > default location > choose gpx file and build.
Replies
Boosts
Views
Activity
Oct ’21