Ghellee

Cocoapods Error 3

Jun 2nd, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1. INFO: this project relies on CocoaPods to install extra packages.
  2. The CocoaPods command about to be sent is "pod install"
  3. [A]ccept or [C]hange? Default is to [A]ccept if no answer in 5 seconds.
  4.  
  5. Delegating "pod install" job to CocoaPods daemon...
  6. Daemon started.
  7. Preparing staging directory...
  8. Sending command: "pod install"
  9. ========================== CocoaPods output BEGIN ===========================
  10. Analyzing dependencies
  11. Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
  12. Downloading dependencies
  13. Installing BoringSSL-GRPC (0.0.24)
  14. [!] /usr/local/bin/bash -c
  15. set -e
  16. set -e
  17. # Add a module map and an umbrella header
  18. mkdir -p src/include/openssl
  19. cat > src/include/openssl/umbrella.h <<EOF
  20. #include "ssl.h"
  21. #include "crypto.h"
  22. #include "aes.h"
  23. /* The following macros are defined by base.h. The latter is the first file included by the
  24. other headers. */
  25. #if defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64)
  26. # include "arm_arch.h"
  27. #endif
  28. #include "asn1.h"
  29. #include "asn1_mac.h"
  30. #include "asn1t.h"
  31. #include "blowfish.h"
  32. #include "cast.h"
  33. #include "chacha.h"
  34. #include "cmac.h"
  35. #include "conf.h"
  36. #include "cpu.h"
  37. #include "curve25519.h"
  38. #include "des.h"
  39. #include "dtls1.h"
  40. #include "hkdf.h"
  41. #include "md4.h"
  42. #include "md5.h"
  43. #include "obj_mac.h"
  44. #include "objects.h"
  45. #include "opensslv.h"
  46. #include "ossl_typ.h"
  47. #include "pkcs12.h"
  48. #include "pkcs7.h"
  49. #include "pkcs8.h"
  50. #include "poly1305.h"
  51. #include "rand.h"
  52. #include "rc4.h"
  53. #include "ripemd.h"
  54. #include "safestack.h"
  55. #include "srtp.h"
  56. #include "x509.h"
  57. #include "x509v3.h"
  58. EOF
  59. cat > src/include/openssl/BoringSSL.modulemap <<EOF
  60. framework module openssl {
  61. umbrella header "umbrella.h"
  62. textual header "arm_arch.h"
  63. export *
  64. module * { export * }
  65. }
  66. EOF
  67.  
  68. # To avoid symbol conflict with OpenSSL, gRPC needs to rename all the BoringSSL symbols with a
  69. # prefix. This is done with BoringSSL's BORINGSSL_PREFIX mechanism
  70. # (https://github.com/google/boringssl/blob/75148d7abf12bdd1797fec3c5da9a21963703516/BUILDING.md#building-with-prefixed-symbols).
  71. # The required prefix header file boringssl_prefix_symbols.h is not part of BoringSSL repo at
  72. # this moment. It has to be generated by BoringSSL's users and be injected to BoringSSL build.
  73. # gRPC generates this file in script /tools/distrib/upgrade_boringssl_objc.sh. This script
  74. # outputs a gzip+base64 encoded version of boringssl_prefix_symbols.h because of Cocoapods'
  75. # limit on the 'prepare_command' field length. The encoded header is generated from
  76. # /src/boringssl/boringssl_prefix_symbols.h. Here we decode the content and inject the header to
  77. # the correct location in BoringSSL.
  78. case "$(uname)" in
  79. Darwin) opts="" ;;
  80. *) opts="--ignore-garbage" ;;
  81. esac
  82. base64 --decode $opts <<EOF | gunzip > src/include/openssl/boringssl_prefix_symbols.h
  83. H4sICAAAAAAC/2JvcmluZ3NzbF9wcmVmaXhfc3ltYm9scy5oAKydXXPbuJZo3+dXuO683Kk6NRM7nW73
  84. fVNsJdG0Y/tIck9nXliURNk8oUiFoOy4f/0FQErEx94g94arTs10LK21KQDEF0Hgv/7r7DErszptss3Z
  85. .............
  86. yuENfCln05Zvn9AToQIe+JvWL8zRz11am2I5baIgKKOf3O4u/VXIYnaKMl5fqL8GdRfYO6HU60eGkjIt
  87. G+RHKOAi4/Dr4YrbmwsonaORd3hyxlw6U9kSGL4S8MjvyoQX7GLQyHuo6w/rbqE/TFq4+2l/lw7qGUNU
  88. ynDzD1yyKfaf3/4P5m1j6i2mBAA=
  89. EOF
  90.  
  91. # We are renaming openssl to openssl_grpc so that there is no conflict with openssl if it exists
  92. find . -type f \( -path '*.h' -or -path '*.cc' -or -path '*.c' \) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include <openssl/;#include <openssl_grpc/;g'
  93.  
  94. # Include of boringssl_prefix_symbols.h does not follow Xcode import style. We add the package
  95. # name here so that Xcode knows where to find it.
  96. find . -type f \( -path '*.h' -or -path '*.cc' -or -path '*.c' \) -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include <boringssl_prefix_symbols.h>;#include <openssl_grpc/boringssl_prefix_symbols.h>;g'
  97.  
  98. base64: invalid option -- --ignore-garbage
  99. Usage: base64 [-hvDd] [-b num] [-i in_file] [-o out_file]
  100. -h, --help display this message
  101. -Dd, --decode decodes input
  102. -b, --break break encoded string into num character lines
  103. -i, --input input file (default: "-" for stdin)
  104. -o, --output output file (default: "-" for stdout)
  105. gunzip: (stdin): unexpected end of file
  106. =========================== CocoaPods output END ============================
  107. NOTICE: this command returned a non-success exit status (1).
  108. Press any key to continue . . .
Add Comment
Please, Sign In to add comment