I have gone through several SO posts and followed the Firebase tutorial and I just don't seem to have any luck setting up the Crashes.
I added the Pod, and got to these steps
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file GOOGLE_APP_ID=1:my:app:id
# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded "${PODS_ROOT}"/FirebaseCrash/upload-sym "/Path/To/ServiceAccount.json"
The second part is confusing to me, because the part that says FirebaseCrash/upload-sym...the upload-sym isn't a folder but a file...and therefore how can I continue down the hierarchy?
So I removed that part and I put the file which downloads as 'unknown' and I renamed it ServiceAccount.json and put it in the folder FirebaseCrash...and so that last line for me looks like
"${PODS_ROOT}"/FirebaseCrash/"ServiceAccount.json"
When I clean and build I get 1 error.
The error is very long but from what I can take from it is
....line 6: ...... /Pods/FirebaseCrash/ServiceAccount.json: Permission
denied
I have read in some SO posts that I need to go to a page called permissions and do something there.
I would like it if somebody can clearly say if what I have done so far is correct and if it is layout what I need to do because many of the posts are conflicting
FirstI installed pod 'Firebase/Crash'
,
Then i generated a key lets name it like you ServiceAccount.json
Created a folder within the App lets say MyApp and within MyApp where MyApp.xcodeproj and MyApp.xcworkspace are, there i created CrashReportingKey folder and added the ServiceAccount.json there.
Created a run script and it all was setup.
Added this on the script:
GOOGLE_APP_ID=1:xxxxxx:ios:xxxxxxx
"${PODS_ROOT}"/FirebaseCrash/upload-sym "${SRCROOT}"/CrashReportingKey/ServiceAccount.json