Post

Replies

Boosts

Views

Activity

ERROR: Unrecognized attribute string flag '?' in attribute string "T@"NSString",?,R,C" for property debugDescription
Hello, I'm seeing many errors like this in the Xcode debug console when I build and run my app: ERROR: Unrecognized attribute string flag '?' in attribute string "T@"NSString",?,R,C" for property debugDescription The app project makes heavy use of Logger(), and I suspect it is related to that logging in some way, but I haven't been able to narrow down the issue to specific log calls. I have Category, Subsystem and Timestamp enabled in the Xcode console, but none of those are displayed for this output. What causes this? Or how can I better narrow down the source?
0
0
347
Aug ’24
SwiftData + CloudKit -- data not loaded on fresh install
Okay, so I created a new Xcode project using SwiftData, and ticked the box for iCloud integration. I added a container on the web dashboard. Then I added “ = Date()” to the definition of Item.timestamp so that it has a default value. I added the container to my Xcode project.. Then I added this “let config” and “let container” and changed the “.modelContainer” like this: This will successfully add stuff to core data, which also appears in iCloud dashboard. BUT, if I delete the app and re-launch, I don’t see the existing iCloud data until the SECOND launch, even though the Xcode runtime log shows it fetched it. Do I need to do some magic to get it to refresh? Is the CloudKit subscription managed by SwiftData or do I need to do something for that? thanks!
7
3
3.7k
Jun ’23
Source code for Push To Talk demo app?
I was just watching the Enhance voice communication with Push To Talk WWDC22 session video and was wondering (a few questions) -- (1) (when) will you be making the demo app available that was shown at the beginning of the video? (2) There was some detail given regarding the new APNs push type ("pushtotalk"), but it was unclear to me if that's something I need to handle manually, or if those will be sent automatically when I do channelManager.requestBeginTransmitting? (3) How does the audio data itself get routed around? Is that handled by the system between the requestBeginTransmitting and stopTransmitting calls? Or somehow part of the APNs payload? Or something we must handle? Thank you! thanks!!
6
1
3.2k
Jun ’22
DYLD_PRINT_STATISTICS not working / Xcode 13.0 beta / iOS 15.0 beta 8
Hello! I'm working on a new app, and DYLD_PRINT_STATISTICS=1 is not working - i.e., not producing any output. Build platform: MacBook Pro (15-inch, 2018) macOS Monterey, 12.0 beta 6 (21A5506j) Xcode 13.0 beta 5 (13A5212g) Test device: iPad 8th generation iPadOS 15.0 beta 8 (19A5340a) I'm setting it as usual in Product -> Scheme -> Edit Scheme, then going to "Run" tab on the left and choosing "Arguments" on the top. In that screen I enter "DYLD_PRINT_STATISTICS" for Name and "YES" for Value. Nothing prints. I also tried: Using "1" for Value instead of "YES" Entering "DYLD_PRINT_STATISTICS=YES" as Name and leaving Value blank Entering "DYLD_PRINT_STATISTICS=1" as Name and leaving Value blank Every combination of the above, but as command-line arguments instead of environment variables. Also, I tried "DYLD_PRINT_APIS" as Name and "YES" as Value, and that works normally. What's going on here? Is it something with the all-SwiftUI lifecycle? An issue with the beta macOS/Xcode/iPadOS? Thanks!
4
1
5.9k
Sep ’21
Async/let producing error in playground? Xcode 13.0 beta
I'm seeing an error trying to test out async let. It seems like this should work, based on the async/let and structured concurrency session videos. Here's the code: func doIt() async -> String {     let t = TimeInterval.random(in: 0.25 ... 2.0)     Thread.sleep(forTimeInterval: t)     return String("\(Double.random(in: 0...1000))") } async {     async let a = doIt()     async let b = doIt()     async let c = doIt()     async let d = doIt()     let results = await [a, b, c, d]     for result in results {         print("  \(result)")     } } But, I get this error for every "async let" statement: error: AsyncLetSwift55WWDC21.playground:12:15: error: expression is 'async' but is not marked with 'await' async let a = doIt() ^ await Am I missing something key, or is this a bug? I'm running this in the Xcode 13.0 beta, in a Playground. Thanks!!
12
0
4.0k
Jun ’21
Xcode 13 beta source control -- can't change branches with submodules
I've got a project repo that includes some submodules. In one of my submodules, I checked out a different commit. Neither the original repo nor the submodule have any changes. Once you get in this situation, you cannot change branches. For example, I am in "develop" branch, and I want to switch to "main". In Xcode, I control-click the "main" branch and choose "Check-out". This fails with an error that says, "The working copy has conflicting, uncommitted changes. Commit or discard the changes and try again." However, if I go to the Source Control menu and choose "Discard All Changes...", I get an error, "Cannot Discard Changes. There are no uncommitted changes in the working copies for this project." The Source Control Navigator, under Changes, under Local Changes, shows the submodule with a "?" as the status. It looks to me that Xcode 13 is confused by the submodule -- in one spot setting that changes exist, in another, acting as if there are no changes. Am I missing something?
1
0
1.9k
Jun ’21
No accounts with App Store Connect access - unable to authenticate with app store connect
Suddenly today I'm getting this error when I click "Distribute App" in Xcode 12.5: No App Store Connect account: No accounts with App Store Connect access have been found for the team "XXXXXXXXXXXX". App Store Connect access is required for App Store Connect distribution. Then it lists my several accounts below, and next to each, under "Issue", it says "Unable to authenticate with App Store Connect". I can login to AppStoreConnect via the website, with no issues, and my account is the account owner. There are no updated terms or developer agreements etc to accept and no banking or tax info to update. I tried deleting the account from Xcode and re-adding it. It adds without trouble, but then fails at this point. Ideas?
1
0
5.2k
Jun ’21
macOS Big Sur installation timed out (An error occurred installing macOS. The request timed out.)
I'm trying to update to the macOS Big Sur beta (day 1!) but the installation keeps failing with a timeout. I get a popup that says: An error occurred installing macOS. The request timed out. If I go into /var/log/install.log, there's some detail here, showing that bridgeOS timed out. What's the fix for this? Here are the last lines of the install.log file: 2020-06-22 23:46:18-05 Andrews-MacBook-Pro-4 osinstallersetupd[384]: Started downloading package com.apple.pkg.BridgeOSBrain (http://swcdn.apple.com/content/downloads/04/28/001-18400-A_9PR1LXEKFC/czmgv59ffn8j0u96xf2tu7tiu2ykcp3izt/BridgeOSBrain.pkg) 2020-06-22 23:46:18-05 Andrews-MacBook-Pro-4 osinstallersetupd[384]: Retrieved package com.apple.pkg.BridgeOSBrain (http://swcdn.apple.com/content/downloads/04/28/001-18400-A_9PR1LXEKFC/czmgv59ffn8j0u96xf2tu7tiu2ykcp3izt/BridgeOSBrain.pkg) 2020-06-22 23:46:18-05 Andrews-MacBook-Pro-4 osinstallersetupd[384]: Starting bridgeOS update prepare 2020-06-22 23:56:18-05 Andrews-MacBook-Pro-4 osinstallersetupd[384]: bridgeOS update prepare timed out! 2020-06-22 23:56:18-05 Andrews-MacBook-Pro-4 osinstallersetupd[384]: Operation queue failed with error: Error Domain=com.apple.OSInstallerSetup.error Code=601 "An error occurred installing macOS." UserInfo={NSLocalizedDescription=An error occurred installing macOS., NSLocalizedRecoverySuggestion=The request timed out.} 2020-06-22 23:56:18-05 Andrews-MacBook-Pro-4 InstallAssistant[375]: Stopped operation queue with Error Domain=com.apple.OSInstallerSetup.error Code=601 "An error occurred installing macOS." UserInfo={NSLocalizedDescription=An error occurred installing macOS., NSLocalizedRecoverySuggestion=The request timed out.} Any ideas?
6
0
8.1k
Jun ’20
Xcode 11.2: Unable to install (on device): The executable was signed with invalid entitlements: Code: -402620394
Since updating to Xcode 11.2, I am unable to run any projects on iOS device at all.In each case, after the project builds, I get a popup that says "Unable to install "EDC_Manager"" (EDC_Manager is my app name.). If you click details, you see this text:DetailsUnable to install "EDC_Manager"Domain: com.apple.dtdevicekitCode: -402620394--The executable was signed with invalid entitlements.Domain: com.apple.dtdevicekitCode: -402620394Failure Reason: The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).User Info: { DVTRadarComponentKey = 487927; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000011f0e46e7 DTDKCreateNSError + 109 1 DTDeviceKitBase 0x000000011f0e4de9 DTDK_AMDErrorToNSError + 792 2 DTDeviceKitBase 0x000000011f12456a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164 3 DVTFoundation 0x0000000105db9156 DVTInvokeWithStrongOwnership + 73 4 DTDeviceKitBase 0x000000011f124301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589 5 IDEiOSSupportCore 0x000000011efaca25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523 6 DVTFoundation 0x0000000105eea3ba __DVT_CALLING_CLIENT_BLOCK__ + 7 7 DVTFoundation 0x0000000105eeba92 __DVTDispatchAsync_block_invoke + 809 8 libdispatch.dylib 0x00007fff6431a583 _dispatch_call_block_and_release + 12 9 libdispatch.dylib 0x00007fff6431b50e _dispatch_client_callout + 8 10 libdispatch.dylib 0x00007fff64320ace _dispatch_lane_serial_drain + 597 11 libdispatch.dylib 0x00007fff64321452 _dispatch_lane_invoke + 363 12 libdispatch.dylib 0x00007fff6432aa9e _dispatch_workloop_worker_thread + 598 13 libsystem_pthread.dylib 0x00007fff6457471b _pthread_wqthread + 290 14 libsystem_pthread.dylib 0x00007fff6457457b start_wqthread + 15);}--I thought it was a problem with my project, so I completed a completely new project in Xcode and built that, but it gets the same error.The problem occurs in Xcode 11.2.And it occurs in the 11.2.1 (11B53) GM Seed.If I revert to Xcode 11.1, everything works normally.The mac is a 2018 MBP running Catalina 10.15.1, and the iOS device is an 11 Pro Max running iOS 13.2.I tried other iOS devices also, including one running iOS 12, but the problem persists.I was hoping this was something fleeting on Apple's side, but it seems to be persisting as an issue.Thanks for any help or ideas!Andrew
4
0
11k
Nov ’19
Can't upload app: No accounts with App Store Connect access have been found
Getting this error suddenly tonight:No App Store Conect Account:No accounts with App Store Connect access have been found for the team "<MY TEAM>". App Store Connect access is required for App Store distribution.Then below it lists my Apple ID and says "No App Store Connect access for the team".Nothing has changed and it worked a week ago.I'm the owner of my company, the "agent" account in member center and admin on app store connect.Any solution to this?I had a similar problem maybe 6 months ago that randomly went away on its own at some point, but was stuck with it for a week or more at the time.
6
0
7.4k
Nov ’18
Xcode 10.0 diagnosticd high CPU w/iPhone XR Simulator
Hi All,I've got the new 2018 MacBook Pro 15" (15,1) running High Sierra 10.13.6 and the Xcode 10.0 (10A255) release version and am having the following recurring issue.I've got an iOS project that I'm running in the simulator. In this case I'm actually running XCTests. The total tests run for about 4 seconds.At this point, Xcode looks like it's idle, but my fans spin up to full speed and Activity Monitor shows me: diagnosticd 170% cpu diagnosticd 82% cpu notifyd 78% cpu SpringBoard 78% cpuSometimes it shows diagnosticd higher like 350% CPU, but always diagnosticd is the highest.The computer doesn't seem to be doing anything. Both Xcode and Simulator are responsive.If I close the simulator, these disappear and the fans spin back down.This happens 100% of the time with the iPhone XR simulator, but doesn't seem to happen at all with any of the others, including the XS and XS Max.Anyone else seeing this?
5
0
5.5k
Sep ’18
SceneKit keyed blend shape animation imported from Collada (.dae) file (created in Maya) not playing
I'm using Maya to create animations to use in SceneKit.I'm exporting as COLLADA file (.dae) using Maya's built-in FBX DAE exporter.Animations on the node transform all work perfectly. For example, if we have an animation of the translation, rotation, or scale -- or a combination of those -- the animation imports correctly with the node.However, when I import an animation based on keyed blend shape inputs, the animation doesn't play.Within Xcode, if I click on the .dae and start looking at attributes, the node is there and has the blend shape (geometry morpher) attached, and it is manipulable.Additionally, an animation is listed, and if I look at attributes within the node, the animation is listed there as well.If I iterate through the SCNNode's animationKeys property, an animation is there and it has the correct amount of time associated with it. But I can't seem to get it to work.On the Xcode side of things, I have tried:Saying "Update" when prompted to update the .dae file within Xcode.Not updating the .dae file when promptedApplying Jon Allee's Collada Morph Adjuster to the .dae file, before giving it to Xcode.Loading as SCNSceneSource instead of SCNSceneOn the Maya side of things, I've tried several variations on the creation/export process:Tried the "remove single key" checkbox (with and without)Tried the "bake animation" setting in the export windowTried checking and unchecking "Deformed models" and "Blend Shapes"Under the Collada option in the export window, I've tried with and without "Single Matrix" checked. I usually check "Single Matrix" now or I get a bunch of animations within Xcode. However, checking or not checking this option does not appear to have any effect on SceneKit's behavior. The transform animations work either way, and the blend shape animations don't work either way.I've also looked at dozens of Stack Overflow questions carefully -- this is not a duplicate question, as well as ones in Apple's forums and am pretty out of ideas.I put together a quick sample project that demonstrates both the working and non-working, and includes the source Maya files as well as a couple of explainer videos.I'm using:Maya 2018.2 (Cut ID: 201711281015-8e846c9074)Xcode 9.3 (9E145)macOS High Sierra 10.13.4iOS 11.3.1Thanks!
3
0
4.0k
Apr ’18