Hi, I'm trying to setup background assets hosted on Apple servers.
I currently have installed Xcode 16.4 and Xcode beta 4.
I have also freshly installed the command line tools for both.
When I run
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
xcrun ba-package template
I get
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find ba-package 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "ba-package", not a developer tool or in PATH
If I try to use Xcode beta 4:
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
xcrun ba-package template
I get:
dyld[92926]: Library not loaded: /System/Library/PrivateFrameworks/ManagedBackgroundAssetsHelper.framework/Versions/A/ManagedBackgroundAssetsHelper
Referenced from: <7F150064-45BF-31D7-BAFD-32911BB9F569> /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ba-package
Reason: tried: '/System/Library/PrivateFrameworks/ManagedBackgroundAssetsHelper.framework/Versions/A/ManagedBackgroundAssetsHelper' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/ManagedBackgroundAssetsHelper.framework/Versions/A/ManagedBackgroundAssetsHelper' (no such file), '/System/Library/PrivateFrameworks/ManagedBackgroundAssetsHelper.framework/Versions/A/ManagedBackgroundAssetsHelper' (no such file, not in dyld cache)
[1] 92926 abort xcrun ba-package template
Any tip?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm making a menu bar app that has a timer, and when a timer expires I wanna show a fullscreen popup / window that goes above all other windows, and stays on top even if the user changes desktop via the "three finger swipe" gesture for example.
This is my current code:
class ZbBreakWindowController: NSWindowController {
convenience init() {
guard let screenFrame = NSScreen.main?.frame else {
fatalError("Failed to obtain the main screen's frame")
}
let window = ZbBreakWindow(
contentRect: screenFrame,
styleMask: [.borderless],
backing: .buffered,
defer: false
)
window.collectionBehavior = [.fullScreenPrimary]
window.contentView = NSHostingView(rootView: ZbBreakWindowView())
window.level = .floating
window.center()
self.init(window: window)
}
}
struct ZbBreakWindowView: View {
var body: some View {
Text("It works!")
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
This has two issues right now:
the window or content view height is not fullscreen, it's missing the menu bar height
I can use the swipe gesture to change desktop and the window does not stay on top
How should I go about this?
The window will have buttons to dismiss it of course, I'm just making a break timer kinda like (https://breaktimer.app/#download)