Post

Replies

Boosts

Views

Activity

Xcode 16.1 beta 3 unable to connect to my Watch
Xcode Version 16.1 beta 3 (16B5029d) -- Watch Series 9 Version 11.1 (22R5569a) -- iPhone 16 Pro Version 18.1 (22B5069a) The current WatchOS version has introduced a UI bug in NavigationView.navigationTitle - and I'm attempting to install a new version of my App on my Watch. This watch was previously sync'd with an iPhone 13 Pro - which is no longer associated with my AppleID since I'm using my new iPhone 16 Pro. The watch is paired with the 16 Pro, and in previous versions of Xcode 16.1, I was able to compile and run my all of my apps on the Watch. In the current beta 3, instead I get a dialog box which states: Connecting to Apple Watch Xcode will continue when the operation completes. and this dialog box persists until the timeout (which is several minutes). Any help?
2
0
260
Oct ’24
macOS 15.1 beta 2 not downloading
I’ve let the System Settings‘ Sofware Updates run overnight twice - and all I get is the cylon blue shifting left to right… I’ve restarted my M1 MBAir several times. I’ve attempted to download it directly from developer.apple.com - but it just stops (Zero KB of 15.87 GB) - with no further clarification. Any ideas?
3
0
672
Aug ’24
How to disable StoreKit / Sandbox within Xcode?
Somehow, I am no longer able to connect to the AppStore in my development build. On a different device, I am running a production build (downloaded from the AppStore) and it works fine. In Xcode console, for the dev build, I get the following: Error enumerating all current transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account} It's been several months since I've worked on this particular project, and I can't recall what I did to enable the sandbox in the first place. ¯_(ツ)_/¯ Notwithstanding, on each device, I have gone into Settings -> App Store -> Sandbox Account and selected "Sign Out". Within Xcode, there is no Sandbox entry in any Entitlement file that I can find. Under Product -> Scheme -> Edit Scheme -> Run (Debug) -> Options, the StoreKit Configuration is set to None. In addition, 2 years ago Eskimo posted the following command that supposedly identifies if a build is Sandbox-enabled: codesign -d --entitlements - --xml /Applications/PCalc.app | plutil -convert xml1 -o - - I ran this command on my .app - and there was no hint of a sandbox entitlement. And finally, I suspect my "No active account" error is related to Xcode's sandbox feature because, when I tap on my app's Restore Purchases link, I am presented with an os-level dialog box "Sign in with Apple ID". If I do that, then the Settings -> App Store -> Sandbox Account gets filled in... I'm at a loss. Any help will be appreciated.
2
0
779
Mar ’24
Unable to install “myapp”
Developing along, no problems - and then suddenly: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.G47wHn/extracted/Payload/Dvn8.app : 0xe8008001 (An unknown error has occurred.) Verify that the Developer App certificate for your account is trusted on your device. Open Settings on the device and navigate to General -> VPN & Device Management, then select your Developer App certificate to trust it. —> On my Mac, there is no /var/installd directory. —> On my device, there is no Developer App certificate in Settings -> General -> VPN & Device Management. I have verified on developer.apple.com under Certificates, Identifiers & Profiles that my device‘s Device ID (UUID) as listed. I have NO problem building & installing this app to my iPad, nor any problems installing other of my apps to this iPhone - it’s just this app on the phone that’s messed up. I’ve restarted everything multiple times. I’ve cleared out both /Users/me/Library/Developer/Xcode/DerivedData/ as well as /Users/me/Library/MobileDevice/Provisioning Profiles/ I’ve turned off & back on Settings -> Privacy & Security -> Developer Mode using macOS Version 14.0 (Build 23A5337a) Xcode 15.0 (22005) (Build 15A5229m) Please help! I’m 100% blocked from releasing a new version of our app, which is 100% ready to upload!
37
7
31k
Sep ’23
AppClipCodeGenerator - unable to create with parameters
Using this command line incantation: AppClipCodeGenerator generate -u https://myapp.app/clip -i 9 -o ~/Desktop/appClip.svg everything works as expected. However, using this one: AppClipCodeGenerator generate -u https://myapp.app/clip?p=1 -i 9 -o ~/Desktop/appClip.svg ie, just trying to pass in 1 parameter via "?p=1", it fails with no matches found: https://myapp.app/clip?p=1 In my case, clip is a Servlet which expects the parameter named p. Any ideas?
2
0
732
Aug ’23
Localizable.xcstrings FAILS on iOS 17 beta 7
I’ve been working with Localizable, and I’m loving it. Unfortunately, upon upgrading to beta 7 this morning, it no longer works on my dev iPhone: Unable to load .strings file: CFBundle 0x281350380 </private/var/containers/Bundle/Application/743432E9-60F9-4C2D-BA6C-4FF79D4EB467/Dvn8.app> (executable, loaded) / Localizable: Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character b at line 1" UserInfo={NSDebugDescription=Unexpected character b at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Conversion of string failed." UserInfo={NSDebugDescription=Conversion of string failed.}} I’ve investigated this ‘unexpected character b’ - and cannot figure out what this message is talking about. What I see on the screen is the key, instead of the localized string. Using Xcode 15.0 beta 7 (15A5229h) and iOS 17.0 beta 7 (21A5319a) What makes this completely befuddling is that the Localizable DOES still work on my M1 iPad (also running today’s iPadOS 17 beta 7 - as well as on my older 2015 iPad running iOS 16 - and even on my iPhone 7 running iOS 15. Same exact target, different devices. iPhone running 17 beta 7 fails, all others still work. I’ve tried powering down everything, remove / reinstall, etc. Nothing works.
1
1
1.1k
Aug ’23
WatchOS NavigationSplitView never shows detail: { }
I built a quick WatchOS app that uses an @Model to populate a List within a NavigationSplitView. After several minutes, the List displays the data which is in my CloudKit database - so far so good. Unfortunately, when I attempt to tap on any of the List items, the detail view is never displayed. Here is the ContentView: import SwiftUI import SwiftData struct ContentView: View { @Query(sort: \Squats.date, order: .reverse) var exercises: [Squats] @Environment(\.modelContext) var modelContext @State var selectedExercise: Squats? = nil var body: some View { if exercises.count == 0 { Text("CloudKit not yet loaded") } else { NavigationSplitView { List (exercises, selection: $selectedExercise) { ex in Text(ex.date.format("E, MM/dd")) } } detail: { Text(selectedExercise?.exercise ?? "Nothing set") } .padding() } } } And here is the model view: import Foundation import SwiftData @Model class Squats { var date: Date = Date() var exercise: String = "" init(date: Date, exercise: String) { self.date = date self.exercise = exercise } } I’ve tried this on a number of my in-production DBs, as well as this development-only “Squats” DB - same lack of detail view on all. Thoughts?
4
0
905
Aug ’23
How to import a .stl 3D model into VisionOS
I have a .stl in “Standard Tesselated Geometry File Format” - how do I get this into a format which VisionOS can use? Notes: double-clicking on the .stl launches Xcode and shows the Scene graph I’ve added it to a template VisionOS app. It comes in with a gray icon that is otherwise identical to the blue icon that the template creates (named “Scene”) - but I cannot figure out how to get the model contained in the .stl to be recognized. Reality Composer Pro will not open the .stl file Many thanks!
1
0
1.2k
Jul ’23
Apple Watch cannot reconnect
None of my existing apps (both in-AppStore and in-development) nor even a brand new WatchOS app can be installed to my Apple Watch. While using Xcode to build and deploy to my Watch, I get this: ”Waiting to reconnect to Apple Watch Xcode will continue when the operation completes.” However, this dialog persists and never completes. I’m running all of the latest: MacOS 14 beta 4, Xcode 15 beta 5, Watch OS 10 beta 4, iOS 17 beta 4. I’ve tried resetting my Watch (with “Erase All” option) and restarting the Mac, the phone and the watch. Any help?
38
15
15k
Jul ’23
RealityView update closure
Apple docs for RealityView state: You can also use the optional update closure on your RealityView to update your RealityKit content in response to changes in your view’s state." Unfortunately, I've not been able to get this to work. All of my 3D content is programmatically generated - I'm not using any external 3D modeling tools. I have an object that conforms to @ObservableObject. Its @Published variables define the size of a programmatically created Entity. Using the initializer values of these @Published variables, the 1st rendering of the RealityView { content in } works like a charm. Basic structure is this: var body: some View { RealityView { content in // create original 3D content using initial values of @Published variables - works perfect } update: { content in // modify 3D content in response to changes of @Published variables - never works } Debug statements show that the update: closure gets called as expected - based upon changes in the viewModel's @Published variables. However, the 3D content never changes - even though the 3D content is based upon the @Published variables. Obviously, if the @Published variables are used in the 1st rendering, and the update: closure is called whenever changes occur to these @Published variables, then why isn't the update: closure updating the RealityKit content as described in the Apple docs? I've tried everything I can think of - including removing all objects in the update: closure and replacing them with the same call that populated them in the 1st rendering. Debug statements show that the new @Published values are correct as expected when the update: closure is called, but the RealityView never changes. Known limitation of the beta? Programmer error? Thoughts?
10
1
3.7k
Jul ’23
crash logs indicate resource shortage...
According to AppStoreConnect, one of my apps is benchmarking above the 75% percentile for crashes - at 1.89%. Using Xcode’s Organizer window, I’m able to see that 98% of them are identified as: SwiftUI: EnvironmentObject.error() + 236 Cntl-Click / Show in Finder / Cntl-Click / Show Package Contents / Logs reveals the following: Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [5454] …and in some of the crash logs, I find this: Kernel Triage: VM - (arg = 0x0) pmap_enter retried due to resource shortage VM - (arg = 0x0) pmap_enter retried due to resource shortage What is the graceful way to handle a “resource shortage” when the crash logs show that the error occurs immediately upon app launch - ie, while still declaring .environmentObject()s upon the main ContentView()? Any help?
1
0
1.1k
May ’23
Can my app send Crash Data automatically?
Can I transmit a crash log off a user’s device if my app crashes? The only docs I’ve seen around this so far refer to 2 use cases: a) the device is local and can be connected to Xcode, and b) the end user can access my app’s crash log via Settings -> Privacy -> Analytics -> Analytics Data and then they can share that with me (via email or AirDrop). However, in AppStoreConnect, we are asked to identify any type of data that is sent to us by the app: ie, where “Collect - refers to transmitting data off the device” If I navigate as follows: AppStoreConnect -> App Privacy -> Data Types (edit) -> Yes / Next -> Data Collection -> Diagnostics - then one of the options is -> Crash Data (such as crash logs) I cannot imagine that either of the aforementioned use cases correspond to this Data Collection / Diagnostic data - and so this begs the question: to what does this disclosure item refer? Ie, how can I automatically transmit a crash log so that I don’t have to inconvenience my user after they experience the inconvenience of an app crash?
1
0
802
Mar ’23
MacOS 13.3 beta killed Java??
I've been running OpenJDK & Apache Tomcat on my M1 MBAir - but with Ventura 13.3 I can't any longer... % java --version A fatal error has been detected by the Java Runtime Environment: SIGBUS (0xa) at pc=0x00000001038e6f38, pid=1446, tid=8707 JRE version: (19.0.2) (build ) Java VM: OpenJDK 64-Bit Server VM (19.0.2, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64) Problematic frame: V [libjvm.dylib+0x3baf38] CodeHeap::allocate(unsigned long)+0x1c0 No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again I've tried brew uninstall openjdk, reboots, brew install java, reboots, etc... nothing. Any thoughts?
4
0
2.4k
Feb ’23
Some of my AppShortcut phrases work, but some launch Safari?
One of my intents responds to an optional parameter. The parameter is defined as an enum with 4 values (case today, week, month, year). I have 2 AppShortcut phrases defined, one that does not specify the parameter and another which does. AppShortcut(intent: TopCardsIntent(), phrases: [ "show \(.applicationName) top cards", "show \(.applicationName) top cards for \(\.$timeframe)", ], systemImageName: "atom" ) The 1st phrase (with no $timeframe) ALWAYS is interpreted by Siri as a Safari lookup. The 2nd phrase ALWAYS works, but only when I don't specify timeframes '.today' or '.year'. When I do specify '.today' or '.year' - I again always get a Safari lookup. I've tried all sorts of goofy debugging. Thinking maybe it's because '.today' is 1st and '.year' is the last enum value defined, I added a .decade value. So, the '.decade' works perfect, but '.year' still doesn't. #RandomAF There are lots of AppShortcut phrases which I'm trying to use that always result in Safari lookups. It almost feels as if Safari has it's own set of AppShortcut phrases, and these are evaluated before mine. Any ideas?
3
0
1k
Feb ’23