Not able to upload application because of .sh file of Crittercism

流过昼夜 提交于 2019-12-12 11:03:42

问题


We are using Crittercism SDK since last 2 years and we are successfully able to upload application. Since last 2 days, we are not able to upload application with Crittercism because of dsym_upload.sh file.

Anyone getting same issue...!!!


回答1:


This issue is resolved in CrittercismSDK 5.2.0 CocoaPods spec: https://github.com/CocoaPods/Specs/blob/master/Specs/CrittercismSDK/5.2.0/CrittercismSDK.podspec.json

If you don't want to upgrade to 5.2.0, then just delete the file and remove these lines from the Pods-resources.sh file

if [[ "$CONFIGURATION" == "Debug" ]]; then install_resource "CrittercismSDK/CrittercismSDK/dsym_upload.sh" fi if [[ "$CONFIGURATION" == "Release" ]]; then install_resource "CrittercismSDK/CrittercismSDK/dsym_upload.sh" fi




回答2:


That shell script should not be part of the app bundle as it's only used while building (if it's anything like the Crashlytics version then it just uploads the .dsym files to their server so crash logs can be symbolicated for you).

Find the Build Phase Copy Files step that is copying it to the app bundle and remove the script from that step.

EDIT Please note that the script still needs to be executed during a build in order to upload debug symbols, however it does not need to be copied to the app bundle.




回答3:


Had the same issue using cocoa pods. As a temporary workaround I have put the following into my Podfile:

post_install do |installer|
    ...
    system('perl -pi.back -e "s/install_resource \"CrittercismSDK\/CrittercismSDK\/dsym_upload.sh\"//" "Pods/Target Support Files/Pods/Pods-resources.sh"')
end

What it does is it removes the line where the dsym_upload.sh is copied as a resource to what in the end ends up in you .app file




回答4:


I've also met this kind of problem. In my case, it was caused by putting space and special character in the package file name (.app file). After changing the name (removed space and special character) I was able to sign and upload application without any problems.



来源:https://stackoverflow.com/questions/29816930/not-able-to-upload-application-because-of-sh-file-of-crittercism

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!