--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b7bba588-2f18-4bf3-b309-6e1fa1206e33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Kevin,What are "various other errors", and how often are auth requests being sent during build process for a given IP address (any chance you're sending more than, say, 50 in a minute?☼, Kato
On Mon, Nov 21, 2016 at 10:29 PM, Kevin Gray <ke...@goposse.com> wrote:
I am working on an project with one main app and two extensions, a keyboard and an imessage app. I have added crash reporting for each target, and added the Run Script Phases to each for automatic symbol upload. Often the builds will pass fine, but occasionally, the builds will fail with warnings such as:/Pods/FirebaseCrash/upload-sym-util.bash:292: Unable to retrieve authentication token from server.or various other errors. Rebuilding after a failure such as that will usually succeed, but it's an annoyance and slows down our productivity. Not only that, but with the buildscripts as they are, it is not possible to build without a connection to the internet, which isn't acceptable for many of us on our commutes home where we don't have aconnection.So far, the solution has been to wrap the Run Scripts into ${CONFIGURATION} checks, where, in Debug builds, we treat all errors as warnings, and also, if a non-zero exitcode is returned, we output a warning and exit with code 0 anyway. In Release builds we run it as specified in the documentation, and all scripts must pass.This works for now, but is this how we are expected to be using these scripts? And it also doesn't answer why we are only getting these errors occasionally.Also, occasionally, we hit a line in upload-sym-util.bash which results in this syntax error, and a failed buld:/Pods/FirebaseCrash/upload-sym-util.bash:158: ((: <= NOW: syntax error: operand expected (error token is "<= NOW")the offending line (158) looks like this: if (($(tok_property expires_at) <= NOW)); thenSo, in summary, the questions are:
Are we expected to handle the Run Scripts as we are, so that people can work offline?Why are we hitting these invalid token errors, and why are they only failing occasionally? (probably 1/10 builds)What is going on with line 158, that Xcode is saying it is a syntax error?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b7bba588-2f18-4bf3-b309-6e1fa1206e33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:1234567899:ios:235fbac36576bd
nc -z 8.8.8.8 53 >/dev/null 2>&1
online=$?
if [ $online -eq 0 ]; then
echo "Online, uploading symbol file."
# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
"${PODS_ROOT}"/FirebaseCrash/upload-sym "${PROJECT_DIR}/ServiceAccount.json"
else
echo "Offline, not uploading symbol file."
fiThis can be a little bit nefarious because it will appear to succeed when offline, but it'll probably be ok as long as you make sure it uploaded something (the echo statements will be in the build log) for builds that are distributed to anyone. If you continue to have errors after this, let us know what those are, they're probably a different issue.
rm $HOME/Library/Preferences/com.google.SymbolUpload*if [[ "$(tok_property expires_at)" <= "${NOW}" ]]; then