Posts

Post marked as solved
4 Replies
3.2k Views
I am trying to open from my keyboard extension. I am having custom keyboard and I have add that keyboard from setting. On my custom keyboard there is one button “Show More”, and I want to open my app on this button click.So I have tried following code :let context = NSExtensionContext() context.open(url! as URL, completionHandler: nil) var responder = self as UIResponder? while (responder != nil) { if responder?.responds(to: Selector("openURL:")) == true { responder?.perform(Selector("openURL:"), with: url) } responder = responder!.next }It is working successfully, but as we know in swift Selector("method_name:") is deprecated and use #selector(classname.methodname(_:)) instead so it is giving warning. And I want to solve that warning. So I have tried as Xcode automatically suggested :if responder?.responds(to: #selector(UIApplication.openURL(_:))) == true { responder?.perform(#selector(UIApplication.openURL(_:)), with: url) }Also tried :if responder?.responds(to: #selector(NSExtensionContext.open(_:))) == true { responder?.perform(#selector(NSExtensionContext.open(_:)), with: url) }I have also tried others possible ways, but no luck. If anyone know how to do, please let me know.I referred this link, Julio Bailon’s answer : openURL not work in Action Extension
Posted
by vimipatel.
Last updated
.
Post not yet marked as solved
2 Replies
1.4k Views
I am searching for Xcode 13 on  https://developer.apple.com/download/all/ where I can see other tools to support Xcode 13 are available for downloads, but Xcode 13 itself. I can see Xcode 13 is available in App Store. Also somewhere else I can see download option, but clicking on that not redirecting to the right path. One more thing, I noticed is that Xcode 13 is not listed under the support directory as well. I am curious to know why Xcode 13 is not available for download on the official site? Definitely, I can download from the App Store, but on my organization system App Store is not accessible for security concerns. So using the official website is the only option to download the latest Xcode - 13.
Posted
by vimipatel.
Last updated
.
Post not yet marked as solved
6 Replies
4.9k Views
I have one of my application, that is created in Xcode 8. I have used CoreLocation and MapKit in that app. I have update app with latest iOS till now. and it was working fine. Now I am updating application with iOS 13. So I hvae opened app with Xcode 11.0 and updated all the required code. Also updated setting that is suggested by Xcode "Perform Changes" and all that.Now I run application, but I am getting error like : Compiler error: Invalid library file. I have searched lot, but can't find any solution. Is this a bug in new Xcode or new iOS ?Is there anything I have to do extra changes or settings ? Please guide me.2019-10-18 10:34:39.899827+0530 MapLocation[1697:57778] Compiler error: Invalid library file2019-10-18 10:34:39.900098+0530 MapLocation[1697:57778] Compiler error: Invalid library file2019-10-18 10:34:39.915973+0530 MapLocation[1697:57778] Compiler error: Invalid library file2019-10-18 10:34:39.916228+0530 MapLocation[1697:57778] Compiler error: Invalid library file2019-10-18 10:34:39.920608+0530 MapLocation[1697:57778] Updated coordinate are : <+23.02055700,+72.50524900> +/- 5.00m (speed -1.00 mps / course -1.00) @ 10/18/19, 10:34:39 AM India Standard Time2019-10-18 10:34:39.920697+0530 MapLocation[1697:57778] Latitude:- 23.0206, Longitude:- 72.50522019-10-18 10:34:39.925441+0530 MapLocation[1697:57778] Entering in ----> (Latitude:- 23.0206, Longitude:- 72.5052), With Radius:- 300.002019-10-18 10:34:39.925546+0530 MapLocation[1697:57778] Stated in ----> (Latitude:- 23.0206, Longitude:- 72.5052), With Radius:- 300.002019-10-18 10:34:39.926582+0530 MapLocation[1697:57778] Exit from ----> (Latitude:- 23.0021, Longitude:- 72.4995), With Radius:- 300.002019-10-18 10:34:39.926683+0530 MapLocation[1697:57778] Stated in ----> (Latitude:- 23.0021, Longitude:- 72.4995), With Radius:- 300.002019-10-18 10:34:39.932080+0530 MapLocation[1697:57778] Compiler error: Invalid library file2019-10-18 10:34:39.932268+0530 MapLocation[1697:57778] Compiler error: Invalid library file2019-10-18 10:34:39.948942+0530 MapLocation[1697:57778] Compiler error: Invalid library file2019-10-18 10:34:39.949220+0530 MapLocation[1697:57778] Compiler error: Invalid library file
Posted
by vimipatel.
Last updated
.
Post not yet marked as solved
1 Replies
1.6k Views
I am using CoreLocation in my application. I want to track significant changes in location and altitude. So I have used startMonitoringSignificantLocationChanges, but not getting altitude. Here is my code : public class MyLocationManager: NSObject { 		public var currentLocation = CLLocation() 		private var locationManager = CLLocationManager() 		public override init() {         super.init()         self.configureLocationManager()     } 		private func configureLocationManager() {         self.locationManager.delegate = self 				self.locationManager.pausesLocationUpdatesAutomatically = false         self.locationManager.allowsBackgroundLocationUpdates = true 				self.locationManager.requestAlwaysAuthorization()     } 		public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {         self.currentLocation = locations.last ?? CLLocation()         let lat: Double = self.currentLocation.coordinate.latitude         let long: Double = self.currentLocation.coordinate.longitude         let alt: Double = self.currentLocation.altitude         let dateTime = self.currentLocation.timestamp         print("\n\nLatitude :---- \(lat)")         print("Longitude :---- \(long)")         print("Altitude :---- \(alt)")         print("Date :---- \(dateTime)") 		} } Then I run app. Allow location for Always Check for location update (Location is updating but not getting altitude) Sent app in background (Location is updating but not getting altitude) Kill app / Full closed / Remove from background / Terminated (Location is not updating sometime and not getting altitude) Can anyone help me with this problem?
Posted
by vimipatel.
Last updated
.
Post not yet marked as solved
1 Replies
643 Views
I got notification about before few days. And final I updated my iMac with latest macOS Catalina last night.After updated, I found one folder "Relocated Items", which is automatically created on Desktop. And I have seen one more folder "Security" and .pdf file. Inside .pdf : During the last macOS upgrade or file migration, some of your files couldn’t be moved to their new locations. This folder contains these files.So now what should I do with this folder ? Should I moved it somewhere ? (If yes, then at which location)Can I delete this ?Should I keep it is as ?Can anyone guide me on this, Thank in advance.
Posted
by vimipatel.
Last updated
.
Post marked as solved
1 Replies
5.2k Views
I want to know that is it possible to adjust height and width in proportion according to superview in SwiftUI to any UIControl ? As we are doing like : let txtFld = UITextField() txtFld.frame = CGRect(origin: CGPoint(x: 0, y: 0), size: CGSize(width: self.view.frame.width/2, height: self.view.frame.height*0.1)) I know we can somehow achieve to adjust width by using Spacer(), .padding and edgeInsets. But what about height? I have seen lots of tutorial for SwiftUI, everywhere height is static. Even on Apple's site. SwiftUI TutorialsIf anyone have knowledge about how to set height in proportion with view's height, please share here. Because at some point we need like that. For ex. If it needs to make button according to device height. (Let's say in iPhone SE = 40, iPhone 8P = 55, iPhone X = 65)
Posted
by vimipatel.
Last updated
.
Post marked as solved
1 Replies
2.7k Views
Recently I want to download Xcode 11 beta and went to developer site to download it. And I saw that Xcode named as Xcode 11 GM Seed which is never seen before. I want to know What is purpose and meaning of this name ?If anyone knows, could you please let me know.
Posted
by vimipatel.
Last updated
.