How to launch flavour of flutter module from native side?
iOS on Stack Overflow | Featured questions tagged ios
by rv7284
1d ago
I'm using flutter module to add some screens in my native iOS app. same thing is used on android side as well. Now I want to add dev, prod flavour to the app. I've managed to do so in flutter module and I can launch it as well using terminal flutter run --flavor dev/prod this works as expected. But now I want to trigger this from my native app. I've created same schemas in iOS side but it always launches the last generated flavour of flutter module not the one I'm trying to run. I've already read this git issue. It has no solution and the last commit just says Yeah you can do it but not how ..read more
Visit website
Xcode - Build input file cannot be found
iOS on Stack Overflow | Featured questions tagged ios
by RunLoop
1d ago
After upgrading from Xcode 12, on any version of Xcode 13 or later, the following error occurs when running the sudo sh install-appledoc.sh command: Build input file cannot be found: '~/<ProjectDir>/appledoc/default_templates.zip'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'appledoc' from project 'appledoc') After researching the issue, the best lead I could find was to make sure that the target does not have any excluded architectures, which it does not. I can also confirm the noted file does exist at the stated ..read more
Visit website
Only last notification appears on iOS after switching to online
iOS on Stack Overflow | Featured questions tagged ios
by Darex1991
6d ago
regards documentation of Firebase I have (I suppose) collapsible message. I had a similar problem with Android, but after removing the whole notification object from the payload it started working. But on iOS sending notification with (only) data as payload nothing helped - only last notification appears after switching network from offline to online. Honestly, I tried many different ways (with or without apns header, without apns etc.) and I see a dead end. Help! For now, my payload looks: message: { token: 'some token', data: { title: 'some title', body: 'some body', content ..read more
Visit website
Trouble Adding OpenAPIGenerator Plugin to Run Build Tool Plug-ins in Xcode Using SPM
iOS on Stack Overflow | Featured questions tagged ios
by Levan Karanadze
1w ago
I'm using SPM in my project and am trying to integrate Apple/swift-openapi-generator. My project is divided into several modules, for which I'm using SPM. To manage dependencies, I have a Package.swift file. // swift-tools-version:5.8 import Foundation import PackageDescription let openAPIRuntime = Target.Dependency.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime") let openAPIURLSession = Target.Dependency.product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession") let openAPIGenerator = Target.PluginUsage.plugin(name: "OpenAPIGenerator", package: "swift-openapi ..read more
Visit website
How to keep custom view background static while making swipe to delete action
iOS on Stack Overflow | Featured questions tagged ios
by Whirlwind
1w ago
So I have this code: struct ContentView: View { @State private var names = ["Ted", "Barney", "Lily", "Robin", "Marshal"] var body: some View { List { ForEach(names, id: \.self) { name in ListRowView(name: name) } .onDelete(perform: deleteName) } .listStyle(.plain) .scrollContentBackground(.hidden) } func deleteName(at offsets: IndexSet) { names.remove(atOffsets: offsets) } } struct ListRowView: View { let name: String var body: some View { HStack { i ..read more
Visit website
Trying to display a bounding box over QR code
iOS on Stack Overflow | Featured questions tagged ios
by narner
1w ago
I'm trying to display a bounding box around a detected QR code, but the box isn't showing up. Think it may be something with a mismatch in coordinate systems but not totally sure. import SwiftUI import AVFoundation import Combine struct ContentView: View { @StateObject private var viewModel = QRCodeScannerViewModel() var body: some View { VStack { if let url = viewModel.detectedURL { Text(url) .foregroundColor(.blue) .padding() } else { Text("Scanning for QR Codes ..read more
Visit website
Adding Privacy Manifest to CocoaPods iOS SDK
iOS on Stack Overflow | Featured questions tagged ios
by smartsanja
1w ago
I have a SDK distributed as XCFramework via cocoapods. I have added the PrivacyInfo file in the Resource folder and specify in the podspec as below. s.resource_bundles = {"MyFramework_Privacy" => ["Resources/PrivacyInfo.xcprivacy"]} Also verified that PrivacyInfo file has been copied in to different arch folders in XCframework However when the consumer app use our SDK and were notified by Apple that they need to provide usage reasons for the required reason APIs and I am not sure why the PrivacyInfo.xcprivacy file that we have shipped not been considered. Any idea please ..read more
Visit website
WKWebView with Gesture Recognizer becomes unresponsible when using Apple Pencil
iOS on Stack Overflow | Featured questions tagged ios
by fabian
1w ago
I have a SwiftUI ContentView that includes a WKWebView, and I've added a custom UIGestureRecognizer to the WKWebView. Here's a simplified version of my code: struct ContentView: View { var body: some View { WebView(urlString: "http://localhost") } } struct WebView: UIViewRepresentable { let urlString: String func makeUIView(context: Context) -> WKWebView { let webView = WKWebView() let recognizer = BaseGesture() webView.addGestureRecognizer(recognizer) return webView } func updateUIView(_ uiView ..read more
Visit website
AppShortcuts that reference iOS 17 specific AppIntents appear on iOS 16 and lead to crashes
iOS on Stack Overflow | Featured questions tagged ios
by holtmann
1w ago
I've got several AppIntents that use iOS 17 specific features and are therefore annotated with @available(iOS 17.0, *). The AppIntent is correctly only listed on iOS 17 in the Shortcuts app and hidden on iOS 16. However, if I reference those AppIntents in an App Shortcut, the AppShortCut also appears on iOS 16, even though the AppIntent is iOS 17 only and even the AppShortcutsProvider is annotated with @available(iOS 17.0, *). When the user taps the App Shortcut on iOS 16, it leads to a crash of the application. Example Code: @available(iOS 17.0, *) struct HelloIntent:AppIntent { static l ..read more
Visit website
SwiftUI: Nested scroll views on opposite axis
iOS on Stack Overflow | Featured questions tagged ios
by Brandon Slaght
1w ago
I am trying to create an interface with a vertical scroll view at the top level, then a horizontal scroll view (using the new paginated scrolling from iOS 17) to display a number of child views that the user can scroll sideways between. So far it's behaving exactly as I want, except that the height of the first of the views in the horizontal scroll view seems to set the height for each of the other views, even if they have a taller content. To be honest, I'm not sure what behavior I imagine this having, but I was wondering if anyone had solved a similar issue or had designed a similar layout a ..read more
Visit website

Follow iOS on Stack Overflow | Featured questions tagged ios on FeedSpot

Continue with Google
Continue with Apple
OR