I'm building an admin macOS application with Firebase AppCheck which will only live in 2 or 3 laptops at the moment, which means I don't believe I need to upload to the App Store. To distribute this app I'm using the "Development. Distribute to members of your team." option when I click on "Distribute App" from the Organizer window on XCode.
The problem is that when I try to open the app on another MacBook, AppCheck gives me the following error This operation couldn't be completed.(com.firebase.appCheck error 0.)
when I try to load a new token using AppCheck.appCheck().token(...)
.
I tried adding App Attest Environment
-> production
to my entitlement file and I see two pop ups, one of them says The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error.
. This is the code that determines which provider it should take:
class AppCheckReleaseProviderFactory: NSObject, AppCheckProviderFactory {
func createProvider(with app: FirebaseApp) -> AppCheckProvider? {
if #available(macOS 14.0, *) {
return AppAttestProvider(app: app)
} else {
return DeviceCheckProvider(app: app)
}
}
}
I already implemented this for the iOS equivalent application for this project and it works perfectly, but the macOS fails. Also, I think it is worth mentioning, when I run the app locally on XCode, AppCheck works as expected. The problem is when I Archive, Distribute, and open the App on another laptop.
Any help to make AppCheck work on another laptop will be appreciated. Thank you.