“For dsymFile in $(find “$DSYM_FOLDER” -name ‘*.dsym ‘) Add the “sleep 2s” command before the do line,
That is
#Delay the zip operation for two seconds.
sleep 2s
#
for dsymFile in $(find "$DSYM_FOLDER" -name '*.dSYM'); do
RET="T"
echo "Found dSYM file: $dsymFile"
The purpose was to delay the execution of the zip-r-j $DSYM_SYMBOL_ZIP_FILE $dsymfile-x *.plist command by 2 seconds.
Bugly provides the function of directly uploading dSYM files with script automatic configuration. However, when I was in XCODE10, I found that there was no corresponding dSYM file on the “Symbol Table Management” page of The Bugly website. After checking the script output at compile time of Xcode, I found the following error prompt:
zip error: Nothing to do! (…)
Error: Failed to upload the zip archive file.
FAILTURE – dSYM upload complete.
Failed to upload the dSYM
The crux of the above error is the first zip error: Nothing to do! . Because the zip did not compress successfully, *.dsym.zip could not be found to upload the symbol table.
zip error: Nothing to do! This means there is no file to compress and nothing to do.
After constant testing and speculation, it is thought that it may be the execution of the ZIP command, dSYM symbol table file is not generated, so no file can be compressed. Simply add a 2s delay command before zip, no longer report an error, and successfully upload Bugly.
But after all, this way is rude, just like adding a delay function in the iOS code without knowing when to refresh the interface, which is not reliable. But at least it solves my emergency.
Read More:
- [Solved] Vite Error: Failed to load module script: Expected a JavaScript module script but the server…
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- JS uses onerror to automatically catch exceptions
- [Solution] VUE.js Load a local image with parameters in the script
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- React native android: How to Upload Formdata
- How to Solve Files Upload Error: http://net::ERR_SSL_PROTOCOL_ERROR
- The date selector Report Null Error in element is cleared
- How to Solve Bat Script Error: system error 85 has occurred
- [Solved] Custom components with click events do not work
- [Solved] node.js Upload Files Error: Multipart: boundary not found multer
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- [Solved] Vuex state Error: [vuex] do not mutate vuex store state outside mutation handlers.
- [Solved] npm run start Run Error: Missing script: “start“
- [Solved] The code checked with flow.js does not report an error
- [Solved] Vue Less error: Webpack project report expected indentation of 0 spaces but found 2
- IDEA Project let Report Error [How to Solve]
- The reason why jQuery files report errors is introduced
- [Solved] Vue3 Error: Cannot use ‘in‘ operator to search for ‘path‘ in undefined
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)