Make sure firebase is setup properly:
(assertion Error acauirina assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not
runnina or doesn't have entitlement
Time to start shopping around but this question is better suited here https://discussions.apple.com/welcome or reach reach tp Tascam or downgrade to the an OS supported by them.
I ran your code under macOS playground no issues. Just doesn't work under an iOS playground.
import Foundation
func doExternalHardwareInit() {
let sema = sem_open("our.app.group/A", O_CREAT, 0o660, 1)
defer { sem_close(sema) }
guard sema != SEM_FAILED else {
perror("sem_open")
exit(EXIT_FAILURE)
}
print("Waiting for semaphore")
sem_wait(sema) // stuck here
print("Got semaphore")
// run code that must not run multiple times
sem_post(sema)
}
doExternalHardwareInit()
Make sure firebase is setup properly:
(assertion Error acauirina assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not
runnina or doesn't have entitlement
Time to start shopping around but this question is better suited here https://discussions.apple.com/welcome or reach reach tp Tascam or downgrade to the an OS supported by them.
I ran your code under macOS playground no issues. Just doesn't work under an iOS playground.
import Foundation
func doExternalHardwareInit() {
let sema = sem_open("our.app.group/A", O_CREAT, 0o660, 1)
defer { sem_close(sema) }
guard sema != SEM_FAILED else {
perror("sem_open")
exit(EXIT_FAILURE)
}
print("Waiting for semaphore")
sem_wait(sema) // stuck here
print("Got semaphore")
// run code that must not run multiple times
sem_post(sema)
}
doExternalHardwareInit()