Post

Replies

Boosts

Views

Activity

Reply to How to disable StoreKit / Sandbox within Xcode?
If, on the other hand, I go with the Sandbox - ie, I set an apple ID in Settings -> App Store -> Sandbox Account - then when I launch the app I get an error code: Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={NSUnderlyingError=0x30250f810 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" AMSServerPayload={ errorCode = 4040004; errorMessage = "App not found. Please try again."
Mar ’24
Reply to Unable to install “myapp”
I have absolutely no idea, but at some point (for my production app) it began working again. And now today (on an apple documentation sample app), it’s back. No idea what previously made my production app work - just tried one more build and it magically worked. This is incredibly frustrating, as last time when this occurred, I lost several days of productivity. Today, I’m trying to build the app from developer.apple.com/documentation/avfaudio/audio_engine/audio_units/creating_a_custom_speech_synthesizer and the same error occurs again. Today, I’ve tried building with GA Xcode 15.0 (15A2240d) plus with Xcode 15.1 beta (15C5028h). As before, other apps can be built & installed to my iPhone using either version of XCode - but this one app cannot be installed on my iPhone. And also as before, I’ve deleted the app and restarted everything multiple times. I’ve cleared out both /Users/me/Library/Developer/Xcode/DerivedData/ as well as /Users/me/Library/MobileDevice/Provisioning Profiles/. Nothing works. I suspect that the error message is a red herring, but as a result I’ve no path forward.
Oct ’23
Reply to Localizable.xcstrings FAILS on iOS 17 beta 7
Update: I've continued to build / deploy my project to my iPhone, and suddenly, SOME of the localizable strings are showing up, but others are still just showing the key. It is completely random - as I have ONE func that provides the content of each line in a List - and some of them are the key, and some are the localized strings. Again, all of this is true ONLY for my iPhone. My other devices are 100% working as expected. I hope someone can offer some helpful insight...
Aug ’23
Reply to RealityView update closure
Here’s a simple implementation of my Graph object. Basic ideas are just this: the Graph class conforms to @ObservableObject and contains an @Published Float called position. My app can manipulate this and RealityKit will reposition the object based upon this. the renew() function creates an AnchorEntity, loads a jpg to be used as a Material, creates a box Entity using .generateBox(), and then adds this as a child of the anchor renew() also resets / re-creates an array of all Entities used (called all) by appending each child of the anchor defined in step (2). I manually maintain this array to facilitate app logic outside of the RealityView update: closure Again, this is a simplified implementation but it shows how I’m manually creating the RealityView scene with each call to the update: closure. Surely this isn’t the most efficient way to update a scene, but it’s all I can figure with existing documentation. import SwiftUI import RealityKit class Graph: ObservableObject { // step 1: define an @Published var @Published var position:   Float = -1.0 var anchor: AnchorEntity = AnchorEntity() var all: [Entity] = [] static let singleton = Graph() init() { renew() } func renew() { // step 2: manually create the scene // create / recreate anchor anchor = AnchorEntity() // load a jpg to paint the cube guard let resource = try? TextureResource.load(named: "gates") else { fatalError("Unable to load texture.") } var material = UnlitMaterial() material.color = .init(texture: .init(resource)) // create a box and add material to it. let entity = Entity() entity.components.set(ModelComponent( mesh: .generateBox(size: 0.4, cornerRadius: 0.05), materials: [material] )) entity.name = "box" // use the @Published var to position in the scene entity.position.z = position // add the entity as a child to the anchor anchor.addChild(entity) // step 3: maintain my own array of all entities to facilitate my own app’s logic all = [] for e in anchor.children { all.append(e) } } }
Jul ’23