Post

Replies

Boosts

Views

Activity

RoomPlan and RealityKit?
Apple's RoomPlan demo software page says it is powered by RealityKit, but I am having troubles finding any hooks into the standard RealityKit APIs. For example, RoomPlanView doesn't seem to be related to ARView, and I cannot find any Scene property to access (or add) RealityKit entities. Does anyone know if these RealityKit classes are accessible through RoomPlanView? Note: I did find the ARSession through roomCaptureView?.captureSession.arSession
2
0
1.1k
Jan ’23
ARView for macOS?
Apple's documentation for ARView says it is available for macOS 10.15+ However, when I try to add an ARView in Storyboard, Xcode shows no ARView available. Is this a bug is Apple's documentation? (PS. What I am trying do do is create a 3D scene, where I programmatically move the camera on the Mac instead of moving the Mac around 😁, using much of the same code I've created for an AR app on iOS)
1
0
868
Nov ’20
Number of meshes keeps growing
I have an iOS application where I(1) select a model to view in a list view in a navigation controller, and then segue to a view controller with an ARView to display the model(2) I can then go back to the list view controller, select a different model, which then segues back to the view controller with the ARViewThe new view controller with the ARView is loaded each time and deallocated each time I go back to select another model to view (I print("") with init?(), viewDidLoad(), and deinit)I have the showStatistics turned of for the ARView:arView.debugOptions = .showStatisticsI am seeing the Mesh count (Scene Mesh Stats: Meshes: from the debug stats) climb each time I exit the view controller and then reload it with another model (or the same one).After doing this round trip several times (and growing the meshes), the frames per seconds start to dropIt seems as if while the view controller holding the ARView is allocated new and deallocated each round trip, the Meshes from the pprevious models are sticking around in the Metal pipeline or something. (I've never worked with Metal directly, and I am relatively new to ARKit & RealityKit).Is that what is happening? If so, is there a command to flush the old meshes when I first load my view controller?Thanks.
2
0
1.8k
May ’20
Error messages with ModelEntity.load()
I am loading a USDZ file with the function ModelEntity.loadguard let entity = try? ModelEntity.load(named: usdzFilename) else { return nil }The function *does* return a model, and I can display it. However, I am seeing a large number of error messages sent to the console when loading the file:Coding Error: in _SetMetadataImpl at line 1514 of usd/stage.cpp -- Cannot set metadata. 'specifier' is not registered as valid metadata for spec type SdfSpecTypePseudoRoot.2020-05-21 12:40:37.218637-0700 ExploringWorlds[8324:3951628] [Pipeline] Neither element size > 1 nor attribute count > 1 are supported by 'constant' geometry attribute. Ignoring attribute 'geomNormal'. Element Size '1', Attribute Count: '2393'2020-05-21 12:40:37.220040-0700 ExploringWorlds[8324:3951628] [Pipeline] Neither element size > 1 nor attribute count > 1 are supported by 'constant' geometry attribute. Ignoring attribute 'geomNormal'. Element Size '1', Attribute Count: '2393'...The USDZ file was created from a SceneKit scene that I wrote to file:unifiedScene.write(to: URL(fileURLWithPath: usdzFilename), delegate: nil)The usdARKitChecker command gives the USDZ a "Pass"Any ideas why I am getting these error messages when loading a USDZ file?Thanks.
1
0
891
May ’20
Change in signing requirement for endpoint testing?
I wrote some endpoint code in November-December, and it was running fine since Dec 29.This week I decided to make one little tweak, and launchd stopped launching the service (with a status of -9) when my GUI app tried to connect to it.After a lot of trial & error, I discovered I have to manually code sign the endpoint binary now. I am almost certain I wasn't manually code signing in December.Is this a recent feature with a Catalina update sometime in this past month?Thanks,
3
0
838
Jan ’20
FYI: SIP disabled and Xcode update problems
Hi all,Just a little FYI in case anyone runs into this problem - namely Xcode 11 was not updating despite the Mac App Store showing an update available.For several days I would click "Update", and the progress wheel would start to spin but never progressed to actually downloading anything.On a hunch this morning I re-enabled SIP (I had turned it off to for my endpoint development work), unloaded my daemons, and the Xcode update downloaded and installed just fine.This is a single data point, so it may just be coincidence, but if you've disabled SIP and find Xcode won't update, give this a try.
0
0
797
Jan ’20
News on extension distribution policy changes?
Back in November there was the discussion (see link below) saying (I hope I get this right)(1) Mac EndpointSecurity system extensions *cannot* be distributed through the Mac App Store(2) Mac NetworkExtension system extensions *must* be distributed through the Mac App Storebut that there was internal Apple discussion about changing this policy.(A) Has there been any policy changes?(B) Has anyone pushed a Mac app with NetworkExtensions in an enterprise, and if so, how was the enablement of the NetworkExtension handled on each Mac?Earlier thread:https://forums.developer.apple.com/thread/125508Thanks,
2
0
729
Jan ’20
?? > launchd > xpc > new_program
Watching the system calls via Apple's new endoint API, I see a common pattern of"launchd" executes "xpc" which executes "some app" (e.g., com.apple.WebKit.Networking)Is there a way to determine which application requested this new program (e.g., com.apple.WebKit.Networking) to launch? That is, what started this chain of executions?Thanks
1
0
639
Dec ’19
NEFilterPacketProvider and Parallels VM
I can get an NEFilterPacketProvider to capture traffic on my iMac, but when I try to run the program in a Parallels VM (with SIP disabled), it doesn't see any packets.NEFilterDataProvider for network flows works in the VM. Likewise endpoint logging works in the VM (with SIP disabled). It is only packets that I am having troubles testing.I've tried numerous Parallels packet settings, but no joy.Has anyone been able to capture packets inside a Parallels VM?Thanks
0
0
537
Nov ’19
Endpoint message for Internet connections?
Reviewing the endpoint header files (ESMessage.h), I see an event type for UNIX-domain socket connections (es_event_uipc_connect_t) but no equivalent for a TCP/IP connection.Can we not get TCP/IP related events in an endpoint monitor?From ESMessage.h:/*** Union of all possible events that can appear in an es_message_t*/typedef union { ... es_event_uipc_bind_t uipc_bind; es_event_uipc_connect_t uipc_connect;} es_events_t;/*** @brief Fired when a UNIX-domain socket is about to be connected.** @field file Describes the socket file that the socket is bound to.* @field domain The cmmunications domain of the socket (see socket(2)).* @field type The type of the socket (see socket(2)).* @field protocol The protocol of the socket (see socket(2)).*/typedef struct { es_file_t * _Nullable file; int domain; int type; int protocol; uint8_t reserved[64];} es_event_uipc_connect
2
0
836
Nov ’19