xcode9-beta

How to put ARSCNView in Tabview controller without freezing the ARSession?

白昼怎懂夜的黑 提交于 2019-12-06 03:57:40
问题 I am trying to implement ARKit of iOS 11 beta in my app(Tabbed application). But as said in ARKit Session Paused and Not Resuming thread, whenever i change the tab to another view controller and come back, the ARSession is getting freezed and not resuming. Is it possible to implement ARSCNView in a tabbed application so that if you come back i can resume the ARSession? If so how to do it? 回答1: Yes, you can: override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) let

CoreNFC debug not working

蹲街弑〆低调 提交于 2019-12-05 17:39:07
How programmatically work CoreNFC on xcode-9 func readerSession(_ session: NFCNDEFReaderSession, didInvalidateWithError error: Error) { //What I need to do here } func readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage]) { //What I need to do here } override func viewDidLoad() { super.viewDidLoad() let sessionReader = NFCNDEFReaderSession.init(delegate: self, queue: nil, invalidateAfterFirstRead: true) let nfcSession = NFCReaderSession.self let nfcTag = NFCTagCommandConfiguration.init() let tagType = NFCTagType(rawValue: 0) sessionReader.begin() } I want to

Prompt when trying to dial a phone number using tel:// scheme on iOS 11

自闭症网瘾萝莉.ら 提交于 2019-12-05 13:55:04
I am facing an issue, while trying to start a phone call from my iOS app using: UIApplication open(_:options: completionHandler:) iOS shows an confirmation popup/alert before starting the call with two button Call & Cancel and CompletionHandler called with a Bool parameter having true/false based on button action in iOS 10. But now in iOS11 the problem is that the completionHandler is being called automatically before tapping on "Cancel" or "Call" button of confirmation popup, always having true value. Is this a bug in iOS11 or is there something that I am doing wrong? There has been a

dyld: Library not loaded: @rpath/CoreNFC.framework/CoreNFC, iOS11 and Xcode 9 beta

给你一囗甜甜゛ 提交于 2019-12-05 06:04:09
I get this error and app get crash while run CoreNFC sample code in Xcode 9.0 beta 2 dyld: Library not loaded: @rpath/CoreNFC.framework/CoreNFC Referenced from: /var/containers/Bundle/Application/2837709C-C852-4811-B696-38F2725554D4/iOS-11-by-Examples.app/iOS-11-by-Examples Reason: image not found Does anyone knows how to fix this? I combined some answers together to fix this thanks to @Chinchan Zu's comment here is how to mark Core NFC as Optional stackoverflow question First you make import to NFCCore in "Linked Frameworks and Libraries" as optional as in this screenshot Then inside your

Xcode 9 - no iOS 11 simulator

十年热恋 提交于 2019-12-04 17:26:50
问题 When I open up the new Xcode 9 and go to Preferences > Components I don't see an option to download iOS 11 simulators. I'm 100% sure I have the latest Xcode 9 beta 4 I did some research and found out that Xcode downloads an index to determine what it is able to download. For me that was: https://devimages-cdn.apple.com/downloads/xcode/simulators/index-9.0.0-CA351AD8-3176-41CB-875C-42A05C7CDEC7.dvtdownloadableindex Basically one is able to use it for any Xcode version by determining the

Illegal Configuration: Compiling IB documents for earlier than iOS 7 is no longer supported

╄→尐↘猪︶ㄣ 提交于 2019-12-04 14:56:05
问题 I recently updated to XCode 9 . When I build the app it says "illegal configuration" for some storyboards in my pod files. I tried to recreate the storyboard files but it doesn't help. 回答1: XCode 9 will not support storyboards that are built for iOS version less than 7. Try changing the Builds for in File Inspector to a higher version then Clean and Build. See screenshot Edit: Important info from @user435779 below: Restart XCode if the errors don't go away. 回答2: Simply set the deployment

How to put ARSCNView in Tabview controller without freezing the ARSession?

拜拜、爱过 提交于 2019-12-04 07:50:21
I am trying to implement ARKit of iOS 11 beta in my app(Tabbed application). But as said in ARKit Session Paused and Not Resuming thread, whenever i change the tab to another view controller and come back, the ARSession is getting freezed and not resuming. Is it possible to implement ARSCNView in a tabbed application so that if you come back i can resume the ARSession? If so how to do it? Yes, you can: override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) let configuration = ARWorldTrackingSessionConfiguration() sceneView.session.run(configuration, options: [

Xcode 9 - Framework breakpoints

最后都变了- 提交于 2019-12-04 05:12:33
In Xcode 7 and 8, I have been able to debug a framework I've been developing by running the containing application within an xcworkspace that also contains the framework project. If I set breakpoints in the framework, they would get triggered at runtime. In Xcode 9 beta 6, this is no longer the case. So far, execution is only stopping at the framework breakpoints when debugging on simulator. When I debug on a physical device, the framework breakpoints do not stop execution and it appears they are completely ignored. How can I get framework breakpoints to work properly in order to debug my

bottom layout deprecated since ios 11.0

一曲冷凌霜 提交于 2019-12-03 16:27:09
问题 What can I do to fix Bottom layout is deprecated iOS 11, I am using Xcode 9 beta 2. 回答1: Simply check the "Use safe area layout guides" button in the File Inspector of the IB. 回答2: Function of @paper1111 works fine in Xcode Version 9.3.1, but for me not worked first time. After two days of World War with Interface Builder Solution: 1) check the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 2) uncheck the "Use safe area layout guides" button in the File

Module compiled with swift 4.0 cannot be imported in swift 3.1

烈酒焚心 提交于 2019-12-03 08:56:12
问题 Apparently I have managed to build my project in Xcode 9 beta and now I only get the error Module compiled with swift 4.0 cannot be imported in swift 3.1 When I run the project in Xcode 8. The module in my case are Alamofire. I have tried to restart Xcode but nothing happens any ideas how to solve this issue? 回答1: You have two options that you can do: Clean the project and then try to re-build your solution and see if it works. If it don´t work and you still get the same error message then do