xcode9-beta

Combining CoreML and ARKit

不问归期 提交于 2021-02-06 09:24:34
问题 I am trying to combine CoreML and ARKit in my project using the given inceptionV3 model on Apple website. I am starting from the standard template for ARKit (Xcode 9 beta 3) Instead of intanciating a new camera session, I reuse the session that has been started by the ARSCNView. At the end of my viewDelegate, I write: sceneView.session.delegate = self I then extend my viewController to conform to the ARSessionDelegate protocol (optional protocol) // MARK: ARSessionDelegate extension

iOS: Can't compile CoreData model because of Fetched Indexes in Xcode 9

只愿长相守 提交于 2020-02-03 04:33:29
问题 According to the release notes, Xcode 9 adds support for fetched indexes: "The data model editor presents a unified interface for Core Data’s new fetch indexes feature as well as its existing property index and entity compound index features. Older data models are translated into fetch index form for editing, and saved to the old file format when necessary. Compiling a data model with a Deployment Target lower than iOS 11, watchOS 4, macOS 10.13, or tvOS 11 continues to generate a compatible

Swift Add Button to SCNNode

蹲街弑〆低调 提交于 2020-01-13 05:45:07
问题 I'm playing around with the ARKit and image detection. Now I have an app that detects images an places planes on the screen where the detected objects are. How can I add a clickable element like a button on the planes. I want to have a click event on each detected object. This is what my renderer function looks: func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) { guard let imageAnchor = anchor as? ARImageAnchor else { return } let referenceImage =

Simultaneous accesses to 0x1c0a7f0f8, but modification requires exclusive access error on Xcode 9 beta 4

社会主义新天地 提交于 2020-01-08 17:41:28
问题 my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for user preference, I have a DataCoordinator.swift class which schedules the API operation and I make this calls from UserDetailViewController.m class to load user preferences. This use to work fine before I migrated my code to Swift 4 using Xcode 9 beta 4. Now when I login it crashes by giving me this error in my DataCoordinator class. Below is a sample of my DataCoordinator and Viewcontroller class

Simultaneous accesses to 0x1c0a7f0f8, but modification requires exclusive access error on Xcode 9 beta 4

巧了我就是萌 提交于 2020-01-08 17:40:10
问题 my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for user preference, I have a DataCoordinator.swift class which schedules the API operation and I make this calls from UserDetailViewController.m class to load user preferences. This use to work fine before I migrated my code to Swift 4 using Xcode 9 beta 4. Now when I login it crashes by giving me this error in my DataCoordinator class. Below is a sample of my DataCoordinator and Viewcontroller class

Xcode 9, iOS 10 issue with Assets

ⅰ亾dé卋堺 提交于 2020-01-03 13:05:53
问题 I'm having a problem with assets and Xcode 9 beta running on devices with iOS 10. It doesn't upload any image from assets, so on the phone I can't see any asset! If I load images in the storyboard, it just doesn't show any image on the phone (but it shows in the storyboard), if I do something: UIImage(named:"imageName")! It crashes with log message: *** Assertion failure in -[_CUIThemePixelRendition _initWithCSIHeader:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreUI/CoreUI-428.6

Xcode 9, iOS 10 issue with Assets

≯℡__Kan透↙ 提交于 2020-01-03 13:04:34
问题 I'm having a problem with assets and Xcode 9 beta running on devices with iOS 10. It doesn't upload any image from assets, so on the phone I can't see any asset! If I load images in the storyboard, it just doesn't show any image on the phone (but it shows in the storyboard), if I do something: UIImage(named:"imageName")! It crashes with log message: *** Assertion failure in -[_CUIThemePixelRendition _initWithCSIHeader:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreUI/CoreUI-428.6

Unable to install app in simulator xcode 9 beta

本秂侑毒 提交于 2019-12-29 05:45:32
问题 I downloaded Xcode 9 beta recently, and when I tried to run my app in the simulator it is not getting installed. I am getting this error in my Xcode every time I try to run the app. Any help provided will be appreciated. Thanks in advance. P.S: Application used to work in Xcode 8.3.3 回答1: Unfortunately, the error message doesn’t explain why the install failed. You can take a look at ~/Library/Logs/CoreSimulator/CoreSimulator.log to see if the rest of the error message is there with more info.

ARSCNView freezes when adding 14 ARAnchor subclass objects with strong reference

耗尽温柔 提交于 2019-12-24 19:39:01
问题 I have next code: guard let feauturePoint = frame.hitTest(normalizedPoint, types: .featurePoint).first?.worldTransform else { return } let anchor = MyAnchorSubclass(transform: feauturePoint, plus: someAdditionalInfo) arSession.add(anchor: anchor) This function creates and adds object of my subclass of ARAnchor. Then... func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) { guard let anchor = anchor as? MyAnchorSubclass else { return } anchors.append(anchor)

Xcode 9 (beta) refactoring: Rename broken

邮差的信 提交于 2019-12-24 07:01:14
问题 None of the refactor tools are working for me in XCode 9 beta. This is true even for new projects created with the beta (as with the test project, screenshot below). What gives? I've found several demonstrations on YouTube showing the Xcode 9 rename refactor, but when I control-click on, say, a function name, the four refactoring options are all grayed out, including "Rename…". Today I installed beta 2 in hopes that that would fix the issue, but still: Is there some setting or something I