Post

Replies

Boosts

Views

Activity

Reply to Determine Core Audio Parameter Type
from AudioToolbox/AudioUnitParameters.h, CF_ENUM(AudioUnitParameterID) { // Global, LinearGain, 0->1, 1 kHALOutputParam_Volume = 14  }; AudioUnitSetParameter is declared in AudioToolbox/AUComponent.h, here you will also find: typedef Float32 AudioUnitParameterValue;
Topic: Media Technologies SubTopic: Audio Tags:
Mar ’22
Reply to Swift Playgrounds: Learn to Code 1: Roll Right Roll Left Infinitely Walking Around
I entered your code and ran it. Byte doesn't stop walking because Byte isn't done. There's a little scoreboard at the top left of the scene - it shows Bytes has collected 1/1 gems and tripped 0/1 switches. Try to split your code into functions which do only one thing, and are well named. For instance, rename 'checker' to 'checkSwitch' and have it only change the switch state if necessary, rather than sometimes changes switch state, and sometimes move forward. In this exercise, the path is predictable (you can see it), so your steps can be a list of instructions, with no branches and no conditionals.
Apr ’22
Reply to What is the next step in coding?
I think the next step beyond "learning coding" is learning to apply that knowledge to a particular domain. Code does something, usually something useful to yourself or other people. What useful thing would you like to make possible? What would you like to learn, and how does being able to code help you with that goal?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22
Reply to CoreMedia Camera Extension fails to activate
Quinn, thank you for the hint. I was filtering the Console output on my app name, the culprit was fingered by sysextd a few lines further up when I turned off that filter - I didn't prefix my Mach service name with the name of the app group in my entitlement. For future reference, the error 9 is listed in SystemExtension/SystemExtensions.h, and the term to search the SDK for is "OSSystemExtensionErrorDomain"
Topic: App & System Services SubTopic: Core OS Tags:
May ’22
Reply to Trace/BPT trap: 5 problem in m1 mac
I'm pretty sure the reason this is happening is because you are trying to put the string "helloworld" into x. x has room for 10 chars, "helloworld" requires 11, because strcat wants to put the terminating null into the destination too. You can right-click on strcat and choose Services/Open man page in Terminal from the contextual menu to read about the correct use of strcat.
Topic: UI Frameworks SubTopic: General Tags:
May ’22
Reply to Some help with software signing and notarization.
https://developer.apple.com/forums/thread/128166 also, read the man pages for codesign and spctl, carefully. Read the log files from your failed notarization attempt - they're telling you what is wrong. Your app isn't signed, you didn't add the timestamp flag, you didn't enable the Hardened Runtime.
Topic: Code Signing SubTopic: General Tags:
May ’22
Reply to XCode doesn't show local variables in debug
there's a little popup in the bottom left of the panel with the variables in it (it is not visible in your screenshot). Try setting it to "all" instead of "auto" or "local".
Replies
Boosts
Views
Activity
Mar ’22
Reply to Determine Core Audio Parameter Type
from AudioToolbox/AudioUnitParameters.h, CF_ENUM(AudioUnitParameterID) { // Global, LinearGain, 0->1, 1 kHALOutputParam_Volume = 14  }; AudioUnitSetParameter is declared in AudioToolbox/AUComponent.h, here you will also find: typedef Float32 AudioUnitParameterValue;
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to User selection of wireless access point to establish TCP communication with Dongle.
I think you should start by reading this post https://developer.apple.com/forums/thread/39204
Replies
Boosts
Views
Activity
Mar ’22
Reply to Swift Playgrounds: Learn to Code 1: Roll Right Roll Left Infinitely Walking Around
I entered your code and ran it. Byte doesn't stop walking because Byte isn't done. There's a little scoreboard at the top left of the scene - it shows Bytes has collected 1/1 gems and tripped 0/1 switches. Try to split your code into functions which do only one thing, and are well named. For instance, rename 'checker' to 'checkSwitch' and have it only change the switch state if necessary, rather than sometimes changes switch state, and sometimes move forward. In this exercise, the path is predictable (you can see it), so your steps can be a list of instructions, with no branches and no conditionals.
Replies
Boosts
Views
Activity
Apr ’22
Reply to macOS Monterey, internet sharing doesn't show wifi option only Thunderbolt Bridge is available
You're better off asking such non-developer questions on a customer support forum. Are you trying to share a WiFi connection over WiFi? You can't do that.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Can't Access Camera on Xcode Playgrounds
what do you mean by "does not work"? your code doesn't compile, primarily because UIKit is not available on macOS (AppKit is, so your UIViews should be NSViews). Even so, in setupCamera you refer to a variable called 'view' which is not declared.
Replies
Boosts
Views
Activity
Apr ’22
Reply to memory leak of API IOCreatePlugInInterfaceForService in IOKit
are you sure you're leaking memory created by the call to IOCreatePlugInInterface? It creates an interface, as its name suggests, returned in pHandle. Are you releasing that interface when you're done with it?
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to What is the next step in coding?
I think the next step beyond "learning coding" is learning to apply that knowledge to a particular domain. Code does something, usually something useful to yourself or other people. What useful thing would you like to make possible? What would you like to learn, and how does being able to code help you with that goal?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Developer ID builds seems to be stick for notarization
2 days ago there was an outage of the notarization service, and a performance problem which persisted a few hours beyond the outage. You can visit https://developer.apple.com/system-status/ if things are taking a suspiciously long time, that's how I know.
Replies
Boosts
Views
Activity
Apr ’22
Reply to Any tutorials for macOS Swift Game Development?
Paul Hudson's Swift on Sundays series on YouTube has this - https://www.youtube.com/watch?v=TJfh8wXbfEw A functioning game in an hour and a bit, and 160 lines of code.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to CoreMedia Camera Extension fails to activate
Quinn, thank you for the hint. I was filtering the Console output on my app name, the culprit was fingered by sysextd a few lines further up when I turned off that filter - I didn't prefix my Mach service name with the name of the app group in my entitlement. For future reference, the error 9 is listed in SystemExtension/SystemExtensions.h, and the term to search the SDK for is "OSSystemExtensionErrorDomain"
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Endpoint Security Sample Code will not run extenstion
is it intentional that the bundle ID has the Team ID appended, while launchctl list is asked to look for something with the Team ID prepended?
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Trace/BPT trap: 5 problem in m1 mac
I'm pretty sure the reason this is happening is because you are trying to put the string "helloworld" into x. x has room for 10 chars, "helloworld" requires 11, because strcat wants to put the terminating null into the destination too. You can right-click on strcat and choose Services/Open man page in Terminal from the contextual menu to read about the correct use of strcat.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Some help with software signing and notarization.
https://developer.apple.com/forums/thread/128166 also, read the man pages for codesign and spctl, carefully. Read the log files from your failed notarization attempt - they're telling you what is wrong. Your app isn't signed, you didn't add the timestamp flag, you didn't enable the Hardened Runtime.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to XCode Project Settings unable to show
you're looking at the Code Review panel. There are no changes to review, so it is blank. You need to turn off the view by clicking the control indicated here:
Replies
Boosts
Views
Activity
May ’22