my case was the same, it seems you forgot to select Certificates, Identifiers & Profiles when adding you to Apple store Connect , I fixed it by re-adding my account to applestoreconnect, and don't forget to select Certificates, Identifiers & Profiles. you can check the link: https://developer.apple.com/account/resources/certificates/list to know if you have this permission, updating this permission may take 10 minutes, please wait for mail response and re-login in XCode.
i hope it helps you
Post
Replies
Boosts
Views
Activity
you can convert encode of CapturedRoom, convert finalResults to Json
let encoder = JSONEncoder()do {
let jsonData = try encoder.encode(finalResults)
let jsonString = String(data: jsonData, encoding: .utf8)
print(jsonString)
} catch {
print("Error encoding object to JSON: \(error.localizedDescription)")
}
actually what you need to do is remove the y component and not the z component, if you want to convert from 3D->2D, from CapturedRoom you get dimensions.x (wall length) and (transform) .columns.3.x, transform .columns.3.z) is the coordinate of the center of the wall and the direction(transform.columns.0.z, transform.columns.0.z), is the direction of the wall, now you there is a starting and ending point of a wall, similar to other things
i am also trying to implement it, but when i add
arSession.run(arWorldTrackingConfig) , roomCaptureView = RoomCaptureView(frame: view.bounds, arSession: arSession) then the screen goes black. it's good if you share the code that you made.
yes, im load worldMap form appdata,
do {
let data = try Data(contentsOf: fileURL)
if let worldMap = try NSKeyedUnarchiver.unarchivedObject(ofClass: ARWorldMap.self, from: data) {
arWorldTrackingConfig.initialWorldMap = worldMap
arSession.run(arWorldTrackingConfig)
if #available(iOS 17.0, *) {
roomCaptureView = RoomCaptureView(frame: view.bounds, arSession: arSession)
}
else{
roomCaptureView = RoomCaptureView(frame: view.bounds)
}
and use roomCaptureView?.captureSession.arSession.getCurrentWorldMap to save wordMap with let data = try NSKeyedArchiver.archivedData(withRootObject: worldMap, requiringSecureCoding: true) try data.write(to: fileURL)
but it's not working very well, sometimes I can't scan(black screen), and I can't merge data with previous room