GithubHelp home page GithubHelp logo

Comments (9)

doniekelly avatar doniekelly commented on August 30, 2024 1

Works now. Thank you

from xpringkit.

keefertaylor avatar keefertaylor commented on August 30, 2024

Hi!

Sorry that you're having trouble building. It looks like I'm not packaging a dependency correctly. I'm going to update the library so that doesn't happen (and I'll leave this issue open until that's resolved).

In the meantime, you just need to install the protocol buffer compiler for node. You should be able to do that with:

$ npm i -g grpc-tools

from xpringkit.

doniekelly avatar doniekelly commented on August 30, 2024

Thank you. I’ll try that later this weekend. Appreciate you coming back to me.

from xpringkit.

keefertaylor avatar keefertaylor commented on August 30, 2024

This task should get completed when #45 lands.

I'll cut a new cocoapods build after that and push a release.

from xpringkit.

doniekelly avatar doniekelly commented on August 30, 2024

Thank you

from xpringkit.

keefertaylor avatar keefertaylor commented on August 30, 2024

I just pushed XpringKit v1.2.1 to CocoaPods, which should solve your issue. Please re-open if you're still having trouble.

from xpringkit.

doniekelly avatar doniekelly commented on August 30, 2024

Hi @keefertaylor

This is still not working and it cannot find protoc even thought the protobuf stuff is a dependency. Can you check it again as there may be other stuff as well?

donie$ pod update
Update all pods
Updating local specs repositories

CocoaPods 1.9.0.beta.2 is available.
To update use: sudo gem install cocoapods --pre
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.9.0.beta.2

Analyzing dependencies
Downloading dependencies
Installing BigInt (5.0.0)
Installing BoringSSL-GRPC (0.0.3)
Installing SwiftGRPC (0.10.0)
Installing SwiftProtobuf (1.7.0)
Installing XpringKit (1.2.1)
Enter passphrase for key '/Users/donie/.ssh/id_rsa':
Enter passphrase for key '/Users/donie/.ssh/id_rsa':
[!] /bin/bash -c
set -e
git submodule update --init --recursive && ./scripts/bundle_js.sh && ./scripts/regenerate_protos.sh

Submodule path 'xpring-common-js': checked out '1710097e899ead9ffdb170b7a37e25bad931cebc'
Submodule path 'xpring-common-js/xpring-common-protocol-buffers': checked out '41d8d7c316d11b79ab495110da24b9fb0f2c691b'
Submodule path 'xpring-common-protocol-buffers': checked out '41d8d7c316d11b79ab495110da24b9fb0f2c691b'
Bundling JS

Installing Node Dependencies

[email protected] install /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/fsevents
node-gyp rebuild

[email protected] install /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/tiny-secp256k1
npm run build || echo "secp256k1 bindings compilation fail. Pure JS implementation will be used."

[email protected] build /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/tiny-secp256k1
node-gyp rebuild

secp256k1 bindings compilation fail. Pure JS implementation will be used.

[email protected] install /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/grpc-tools
node-pre-gyp install

[grpc-tools] Success: "/Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/grpc-tools/bin/grpc_tools.node" is installed via remote

[email protected] postinstall /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/ripple-binary-codec/node_modules/core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 887 packages from 1258 contributors and audited 7922 packages in 42.358s

9 packages are looking for funding
run npm fund for details

found 8 vulnerabilities (2 moderate, 6 high)
run npm audit fix to fix them, or npm audit for details

Done Installing Node Dependencies
Running Webpack.

[email protected] webpack /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js
npm run clean && ./scripts/regenerate_protos.sh && tsc && npx webpack

[email protected] clean /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js
rm -rf ./generated ./dist ./build

Regenerating Protocol Buffers
All done!
Hash: 236db9688603d38682cb
Version: webpack 4.41.3
Time: 9461ms
Built at: 01/02/2020 09:47:47
Asset Size Chunks Chunk Names
bundled.js 1.32 MiB 0 [emitted] [big] main
Entrypoint main [big] = bundled.js
[26] ./build/generated/xrp_amount_pb.js 4.62 KiB {0} [built]
[42] ./build/generated/payment_pb.js 8.02 KiB {0} [built]
[43] ./build/generated/signed_transaction_pb.js 6.22 KiB {0} [built]
[44] ./build/generated/transaction_pb.js 9.98 KiB {0} [built]
[45] ./build/src/utils.js 2.37 KiB {0} [built]
[69] ./build/generated/currency_pb.js 537 bytes {0} [built]
[70] ./build/generated/fiat_amount_pb.js 6.04 KiB {0} [built]
[71] ./build/src/serializer.js 3.55 KiB {0} [built]
[120] ./build/src/index.js 2.72 KiB {0} [built]
[121] ./build/generated/account_info_pb.js 8.13 KiB {0} [built]
[124] ./build/generated/fee_pb.js 5.08 KiB {0} [built]
[125] ./build/generated/get_latest_validated_ledger_sequence_request_pb.js 4.59 KiB {0} [built]
[126] ./build/generated/get_account_info_request_pb.js 4.88 KiB {0} [built]
[127] ./build/generated/get_fee_request_pb.js 4.08 KiB {0} [built]
[128] ./build/generated/get_transaction_status_request_pb.js 5.06 KiB {0} [built]
+ 271 hidden modules

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
bundled.js (1.32 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (1.32 MiB)
bundled.js

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

Done Running Webpack
Done Bundling JS
Copying Artifacts
Regenerating Common Protos...
Submodule 'xpring-common-js' ([email protected]:xpring-eng/xpring-common-js) registered for path 'xpring-common-js'
Submodule 'xpring-common-protocol-buffers' ([email protected]:xpring-eng/xpring-common-protocol-buffers) registered for path 'xpring-common-protocol-buffers'
Cloning into '/Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js'...
Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
Cloning into '/Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-protocol-buffers'...
Submodule 'xpring-common-protocol-buffers' (http://github.com/xpring-eng/xpring-common-protocol-buffers) registered for path 'xpring-common-js/xpring-common-protocol-buffers'
Cloning into '/Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/xpring-common-protocol-buffers'...
warning: redirecting to https://github.com/xpring-eng/xpring-common-protocol-buffers/
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/usr/local/Cellar/node/13.3.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/fsevents
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/usr/local/Cellar/node/13.3.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/donie/Library/Caches/CocoaPods/Pods/Release/XpringKit/1.2.1-37ca8/xpring-common-js/node_modules/tiny-secp256k1
gyp ERR! node -v v12.14.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/donie/.npm/_logs/2020-01-02T09_47_28_822Z-debug.log
node-pre-gyp WARN Using needle for node-pre-gyp https download
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

./scripts/regenerate_protos.sh: line 9: protoc: command not found

[!] Automatically assigning platform iOS with version 13.2 on target XRPL because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
donie$

from xpringkit.

keefertaylor avatar keefertaylor commented on August 30, 2024

Ok. Sorry about that.

Other folks were having issues with getting this working over the holidays too. I can make this install process less fancy by checking in some of these derived artifacts. Re-opening this issue to track that work.

I'm catching up from the holidays today and I'll try to get this done soon.

from xpringkit.

keefertaylor avatar keefertaylor commented on August 30, 2024

I just cut and deployed 1.2.2 of XpringKit to CocoaPods which removes the need for any external tooling. Can you let me know if that gets you up and running?

from xpringkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.