You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This is because by default command line executables don't have an embedded Info.plist. This can be fixed by setting the Create Info.plist Section in Library option in Build Settings -> Packaging to Yes.
However, when creating a Swift executable from the command line using SwiftPM, there doesn't appear to be a way to invoke that setting.
A possible solution from SimplyCoreAudio would be to provide an alternate static string if the bundleIdentifier is nil.
Alternatively, do you know if there is a way to set the CREATE_INFOPLIST_SECTION_IN_BINARY option for swift build?
This isn't critical, I was just creating a simple test from the command line. But is useful for sharing simple examples.
A command-line executable will crash when instantiating
SimplyCoreAudio()due to unwrapping nil on the bundleIdentifier here:SimplyCoreAudio/Sources/SimplyCoreAudio/Internal/AudioObjectPool.swift
Line 13 in 146c818
This is because by default command line executables don't have an embedded Info.plist. This can be fixed by setting the
Create Info.plist Section in Libraryoption in Build Settings -> Packaging toYes.However, when creating a Swift executable from the command line using SwiftPM, there doesn't appear to be a way to invoke that setting.
A possible solution from SimplyCoreAudio would be to provide an alternate static string if the bundleIdentifier is nil.
Alternatively, do you know if there is a way to set the CREATE_INFOPLIST_SECTION_IN_BINARY option for swift build?
This isn't critical, I was just creating a simple test from the command line. But is useful for sharing simple examples.