Post

Replies

Boosts

Views

Activity

Xcode 13 doesn't stay paused on breakpoint
I'm on Xcode 13 GM (13A233) and I'm noticing that it won't stay paused when it hits a breakpoint. It stops, but about a minute later it just resumes. Is there a new default setting that might cause this? I don't see anything relevant in "Behaviors," but maybe I'm missing something. Has anybody else encountered this issue? The only unusual thing about my project is that I am calling Python from it, using PythonKit. But this breakpoint pause issue isn't isolated to code involving PythonKit. I've tried all the usual "fixes"—i.e., clean build, delete derived data, relaunch, etc. The app is just a simple SwiftUI app for macOS. Any thoughts appreciated.
2
0
1.4k
Oct ’21
PythonKit error loading modules
I've been trying to get some PythonKit code running on Ubuntu and having a terrible time. The issue is coming up when Python tries to load from packages/modules called by a script. Code I'm able to run from Xcode on macOS, calling into PythonKit, doesn't run in Vapor. The odd thing is the error: iPythonKit/Python.swift:674: Fatal error: 'try!' expression unexpectedly raised an error: Python exception: ('invalid syntax', ('/home/james/swift/vapor/SpliqsAPI/Sources/SpliqsLib/SpliqsML/core/helper_functions.py', 13, 26, 'def get_model_config(args: ModelDataArguments):\n')) This seems to suggest that it's not parsing the module file itself properly—i.e., seeing 'invalid syntax' just because the text file has a carriage return??? Any thoughts what might be going on? I realize this may specifically be a Vapor problem, but it’s such a particular error that I thought someone might have an idea about what’s going on.
0
0
508
Sep ’21
AVAudioPlayer Seamless looping of AAC files
In the WWDC 2011 session 404 video we're told that AVAudioPlayer should be able to dynamically ignore the priming and remainder frames in AAC audio, which should enable seamless looping of compressed files, but I can't get this to work in practice. I can verify in both Logic Pro and WaveLab that the wav versions of my files loop perfectly, but in our app (iOS) they have a clear gap at the loop point. Our encoded files are m4a 448 kbps, 48k AAC files. I've tried exports from WaveLab and afconvert, but both fail to provide seamless looping. For afconvert I used the arguments from the WWDC video: -f "m4af" -d "aac". Any advice? We really need to use compressed files to keep app size down, but we absolutely need them to loop seamlessly (they're ambient background soundscapes).
1
0
1.2k
Mar ’21