Search results for

file uri scheme

78,696 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 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
705
Mar ’22
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
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
271
May ’16
macos notes:// url scheme
I see that notes:// url will open notes.app, but what is the syntax to show a specific note? I am interested in showing notes that are not explicitly shared. For example, I have a note with title Movies and note id x-coredata://1C50AF52-CC9F-4BBE-8122-D5F713B198E8/ICNote/p22972 I tried things like: notes://Movies notes://?name=Movies notes://1C50AF52-CC9F-4BBE-8122-D5F713B198E8/ICNote/p22972 but none of those work.
3
0
3.6k
Mar ’22
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 Unable to see source editor extension commands in Xcode 16
Geting Xcode to recognise your source editor extension can be tricky. There are two cases to consider: Debugging Production I recommend you start with the debugging case. When you create a new source editor extension target, Xcode create a scheme for it. That scheme isn’t very useful out of the box. Do this: Use your primary copy of Xcode for this work. Ideally it’d be the one in the Applications folder. Select the extension scheme in Product > Scheme. Choose Product > Scheme > Edit Scheme. In the Run action, switch to the Info tab. On the Executable popup, choose Other and select your primary copy of Xcode. Make sure Debug Executable is not checked. Close the sheet and then choose Product > Run. Xcode should launch a second copy of itself. In the Dock, you’ll see the icon with an orangey tint. Bring that to the front. In this copy, open a test project and navigate to a source file. Your extension should be visible at the bottom of the
Mar ’25
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
600
Nov ’21