ios13

Nested settings pages crash in iOS13

为君一笑 提交于 2019-12-11 04:05:51
问题 I use the iOS settings app for my app settings. However, since upgrading my device to iOS13, tapping on one of the rows that should lead to a child settings pane (Appearance, Notifications or PDF Export) causes the iOS settings app to crash, with no debug message in my debugger. This happens regardless of whether the app is the current release version compiled in XCode10, or newly compiled in XCode11. I have the following root.plist file, which contains three child settings pages. I have

iOS13 - Detect if bluetooth is enabled without prompting bluetooth usage request

谁说我不能喝 提交于 2019-12-11 03:18:13
问题 In previous iOS versions you could detect if the user had bluetooth enabled or not without actually prompting the user's permission to access bluetooth. In iOS13, CBCentralManager now prompts bluetooth permission just to check if they have bluetooth turned on or not, regardless of if the app is actually going to use bluetooth directly. Our app uses Apple's multipeer connectivity framework to communicate between devices (peer to peer) which uses a combination of wifi and bluetooth, or just

opening app using custom URL Scheme. First time scene(_:openURLContexts:) does not call in sceneDelegate

こ雲淡風輕ζ 提交于 2019-12-11 02:34:56
问题 In info.plist file I configured URL Identifier and URL Scheme successfully. Also I am able to open app using custom URL. The problem is when app launches first time the method func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) does not call. I have some dependent functionality based on above method. So when app launches first time I am not able to see anything in my app. Also I added code in method func scene(_ scene: UIScene, willConnectTo session:

`systemLayoutSizeFittingSize` not called on iOS 13

半城伤御伤魂 提交于 2019-12-11 01:37:47
问题 I have an issue with systemLayoutSizeFittingSize on iOS 13 beta. I am working on a plugin for NativeScript which uses the systemLayoutSizeFittingSize of the UICollectionViewCell to "measure and layout" the UIView that is in the cell. What I have been doing is: Manually call systemLayoutSizeFittingSize if I need to force a measure/layout of the UIView that is in the cell or Wait for the OS to call systemLayoutSizeFittingSize and again measure and layout the UIView that is in the cell It all

“Missing required entitlement” for NFCISO15693Tag customCommand

ぐ巨炮叔叔 提交于 2019-12-10 23:36:53
问题 In iOS13 beta version. when I tried use the NFCISO15693Tag api customCommandWithRequestFlag:customCommandCode:customRequestParameters:completionHandler: send customCommand code to the tag , I got the error: -[NFCTagReaderSession transceive:tagUpdate:error:]:706 Error Domain=NFCError Code=2 "Missing required entitlement" UserInfo={NSLocalizedDescription=Missing required entitlement} I have tried: 1, Reconfig the Privacy of NFC. 2, Add the config in my info.plist <key>com.apple.developer.nfc

MTLCreateSystemDefaultDevice returning nil on iOS 13 Simulator

霸气de小男生 提交于 2019-12-10 22:22:48
问题 I am using Xcode 11 GM Seed (11A419c). When I run Metal code on iOS 13 simulator and try to access metal device created using MTLCreateSystemDefaultDevice(), it returns nil. How is Metal supposed to run on simulator without this device? Is there any setting in XCode to fix it? I have Macbook Pro retina 2012 model running Mac OS 10.14.6 if that matters. 回答1: Metal is available in iOS 13 and tvOS 13 simulators only when running on macOS Catalina (10.15) or later. This is documented in the Xcode

UIPanGestureRecognizer is not working in iOS 13

依然范特西╮ 提交于 2019-12-10 19:06:47
问题 We have developed an app in iOS 12 which worked really fine. Now in iOS 13 UIPanGestureRecognizer is not working any more. I've search for solutions but didn't find anything. @IBAction func handlePan(recognizer:UIPanGestureRecognizer) { let translation = recognizer.translation(in: self.view) if let view = recognizer.view { let center = view.frame.origin.y + view.bounds.height / 2 if(center <= SliderView.bounds.height && center >= SliderView.bounds.minY) { view.center = CGPoint(x:view.center.x

Application crashes on iOS 13 because of returned nil from -traitCollection, which is not allowed

北战南征 提交于 2019-12-10 15:57:47
问题 I am working on Telegram source code from the archived repo and application crashes in every ViewController and I can see the following error. I also tried to comment out some codes but the crash just moves from one class to another. Is there any way to stop traitCollection from causing these crashes? Telegram[50090:787790] *** Assertion failure in UITraitCollection * _Nonnull _UIGetCurrentFallbackTraitCollection(void)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit

Ambiguous reference to member 'buildBlock()'

↘锁芯ラ 提交于 2019-12-10 14:48:41
问题 I've been trying to make an app for iOS 13 using Swift UI but I keep getting this weird error: "ambiguous reference to member 'buildBlock()'". No matter what I do the error won't go away. I tried commenting of sections of code at a time to see which part might have been causing the issue, but the only thing that ever worked was commenting out the entire view. I've tried cleaning my build folder and deleting derived data. I also tried restarting my computer and Xcode multiple times, nothing

iOS 13: Using the new NEHotspotConfiguration.init(ssidPrefix: String) does not seem to work

痞子三分冷 提交于 2019-12-10 11:39:17
问题 I am currently running Xcode 11.0 and iOS 13.1 (beta). I am experimenting with the newly added functionality in iOS 13 of being able to connect to Wifi hotspots where only the prefix is known: Apple Docs This is perfect for headless accessory's Wifi setup, as you would not need to ask the user to switch to the OS settings in order to connect to the accessory's wifi. But unfortunately I cannot make it work as expected. My code ( Swift 5 ): if #available(iOS 13, *) { // The accessory's wifi