Post

Replies

Boosts

Views

Activity

App crashing when I attempt to authorize HealthKit
I am running this code: healthStore.requestAuthorization(toShare: types, read: types) { (success, error) in 						if !success { 								fatalError("we ned that data to shar to fcebok") 						} else { 						} 						 				} Then I get an error at runtime: _NSCFString * "*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil" 0x0000600003fd4af0 Is this HealthKit? I can't seem to see what I am doing wrong. By the way, the fatal error message is a joke.
1
0
652
Jun ’20