Search results for

file uri scheme

78,522 results found

Post

Replies

Boosts

Views

Activity

ERROR: "Failed to build the scheme (APP NAME)"
Hello, I'm kinda new to Xcode and I was trying to get back to programming while I follow a course. There seemed to be a problem with the preview and it looks like there was nothing wrong with the code, at least from what I know. I can say this because the code is the default one that Xcode gives you when you start a new project. here is the error log. == PREVIEW UPDATE ERROR: SchemeBuildError: Failed to build the scheme “App” linker command failed with exit code 1 (use -v to see invocation) Link App.debug.dylib (arm64): Undefined symbols for architecture arm64: _main, referenced from: ___debug_main_executable_dylib_entry_point in command-line-aliases-file ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) == PREVIEW UPDATE ERROR: SchemeBuildError: Failed to build the scheme “App” linker command failed with exit code 1 (use -v to see invocation) Link App.debug.dylib (arm64): Undefined symbols for architecture
1
0
761
Nov ’24
Reply to Unit test environment in scheme is gone?
Hi @imneo, in recent versions of Xcode the setting you're referring to — Environment Variables — may be specified via a test plan file, and test plan files are referenced by a scheme's Test action. To customize this setting, first go to the Test action of the scheme, click the arrow next to the test plan in the list to open it in the editor, navigate to the Configurations tab, and edit the Environment Variables setting. If this is the first time you have made edits to the test plan, you may be prompted to save the file to a location in your project.
Mar ’24
SchemeBuildError: Failed to build the scheme
I have an iOS app, and I am trying to add a companion WatchOS app. My iOS app depends on 2 libraries: GoogleMobileAds FirebaseAnalyticsWithoutAdIdSupport When I add a new target for WatchOS, the preview build starts to fail. I am not adding any libraries to WatchOS. The Google Ads and Firebase Analytics libs are only under the iOS target. I am unable to run the preview, I get an error when trying to build the watch scheme. The preview does not work. The build just crashes. I've included the error log below. But, here are the steps I've tried so far: Delete folders inside Derived Data Run a clean build (Cmd + Option + Shift + K) Delete scheme and create a new one Reset Package Cache Restart Xcode Restart Macbook But, it just does not work. I do not understand why the watchOS target is erroring for GoogleUserMessagingPlatform and GoogleMobileAdsTarget when those packages are not linked/used for the watchOS. SchemeBuildError: Failed to build the scheme “timerWatch Watch App” While buil
0
0
67
Apr ’25
Reply to Include Notification Scene is missing in Xcode Version 14.2
Hey, I have left an answer to your question on SO, but just in case I'll answer here as well. The checkbox is in fact missing in Xcode 14+ (as of Jan 2023). In Xcode 13 it creates additional files when you selected the checkbox, these files are: NotificationView.swift, NotificationController.swift, ComplicationController.swift, PushNotificationPayload.apns, as well as two schemes to launch the notification and the complication. Fortunately, you don't need complications to complete the tutorial, so you have only to create 3 files and one scheme before moving to the Section 5 — Create a Custom Notification Interface. I provided the detailed explanation with screenshots in a blog post: https://artemsmikh.me/2023/01/28/adding-a-notification-scene-to-an-apple-watch-app-in-xcode-14/, but here is a short description of what you have to do to continue with the tutorial: Step 1: Create a NotificationView.swift Create a new SwiftUI View file in the WatchLandmarks Wa
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Redirecting to Custom URL Scheme in iOS 13 Safari
My app Frax makes use of custom URL schemes to share presets via custom URL scheme links. This is done by sharing normal URLs, e.g. fr.ax/fe0ci, which our server then redirects to the custom URL scheme link; e.g. fraxhd://fr.ax/fe0ci.frx . This link opens in our app and tells it where to find the preset file (in this case, fr.ax/fe0ci.frx).This worked fine in iOS 12 and earlier (all the way back to iOS 3), and in all other apps we've tried it with (e.g. Facebook). However, it is broken in iOS 13 Safari. The server attempts to redirect to the custom URL scheme link, but our app is never called or opened. The links still work fine from other apps (e.g. Facebook), and also when the custom URL scheme is pasted by hand into Safari. Only the server-based redirect mechanism has stopped working, and only in Safari.Any idea why this might be, or what changed from Safari iOS 12 to Safari iOS 13, or how I might go about troubleshooting it? Thanks in advance!
1
0
9.4k
Sep ’19
Issues with Handling URL Schemes and App State Transitions in iOS App
I'm working on an iOS app that integrates with Spotify for authentication. I’m facing a problem where the app doesn’t handle URL schemes and app state transitions properly. Specifically, when Spotify redirects back to my app, it either doesn’t handle the URL correctly or doesn’t transition between states as expected. The authorization for spotify is successful, then my app reopens and nothing happens after that. Expected Behavior: When Spotify redirects to my app, it should correctly handle the URL and process authentication parameters. Actual Behavior: Even with URL handling code commented out, the app reopens from Spotify, which suggests a possible issue with how URL schemes or app state transitions are managed. The app’s state transitions don’t seem to be handled as expected. Troubleshooting Steps Taken: Verified URL schemes and redirect URIs. Implemented application(_:open:options:) for URL handling. Tested various app states (foreground, background, suspended). //This
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
612
Sep ’24
Do custom URL schemes work in iOS10?
Our app uses custom URL scemes. For example: ourApp:// which relies on this delegate method:- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)urlTried this too:-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotationFrom testing, I notice these methods are not being called.From the documenation, I notice these methods are deprecated.My questions are:a.) Are custom URL schemes still being supported in iOS10?b.) If not, what is the alternative?EDIT:I also notice that typing some well known custom URL schemes in the browser works as expected. For example mailto:// or tel://. However, typing ourApp:// results in a page not found error. This is not true for 9.x.
1
0
2.2k
Jun ’16
EXC_BAD_ACCESS : UIButton : touchDown() : Release Scheme
The following code crashes in XCode when run on a 'Release' scheme to crash (on any iDevice).It crashes with EXC_BAD_ACCESS(code=EXC_I386_GPFLT) trying to do a 'swift_arrayDestroy' with Xcode on line 19.Note : It does NOT crash when running on a 'Debug' scheme.+) Can anyone else reproduce this (just cut an paste -> Run -> click a few times on the RED Box that appears on the screen).+) Any ideas if this is a program error or an Xcode Release optimisation bug?+) Does anyone know if '@objc func touchDown(_ sender: MY_UIButton)' is safe?Should I use 'Any' .. and then attempt to cast to 'MY_UIButton'.Thanks,AJ.import UIKit var g_but = MY_UIButton(frame: CGRect(x: 100, y: 100,width: 200,height: 200)) let g_false = false let opt_zero : Int? = 0 class EMPTY_CLASS {} let g_empty_arr : [EMPTY_CLASS] = [] class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() g_but.backgroundColor = UIColor.red view.addSubview(g_but) g_but.addTarget(g_but,action: #selector(MY_U
1
0
1k
Apr ’18
URL Schemes in Google Search iOS App
Hi,We are from MasterCard iOS development team.We have a web application from which we are opening iOS apps using custom url schemes. This functionality works fine for the all the browser (Safari/chrome).But When we tried to open the same web app from Google Search app and then if we try to open iOS app on the same device using custom url schemes it does not do anything.From our research we are assuming Google search app in iOS is a native iOS app and has embedded web view.And according to Apple if we try to open custom url schemes from embedded web view, we must implement web view delegates in the app which is embedding this web view.Could you please give us more inputs or the resolution for opening the apps using custom url schemes from iOS Google Search app.
Topic: Safari & Web SubTopic: General Tags:
0
0
1.3k
May ’20