onesignal / cli Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for OneSignal power users. 1-step iOS SDK Integration. Now in Beta.
Command line tool for OneSignal power users. 1-step iOS SDK Integration. Now in Beta.
I believe the problem is spaces. Spaces are bad.
$ onesignal install-sdk --type iOS --entrypoint wallace --lang swift --appid fooBar
/Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/xcodeproj-1.22.0/lib/xcodeproj/plist.rb:17:in `read_from_path': [!] The plist file at path `/Users/gradha/project/geodb/ios/Wallace//$(SRCROOT)/wallace/Support Files/Info.plist` doesn't exist. (Xcodeproj::Informative)
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:316:in `_add_capabilities_to_main_target'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:42:in `_add_sdk'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:80:in `install_onesignal!'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/oscli.rb:56:in `execute'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/bin/onesignal:4:in `<top (required)>'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/bin/onesignal:25:in `load'
from /Users/gradha/homebrew/Cellar/onesignal-cli/0.0.7/libexec/bin/onesignal:25:in `<main>'
$ ls -l wallace/Support\ Files/Info.plist
-rw-r--r-- 1 gradha staff 3729 15 Jan 15:14 wallace/Support Files/Info.plist
This library is helpful and works for the most part.
I occasionally get an error....
Steps To Reproduce:
onesignal install-sdk --type iOS --entrypoint AppName --lang swift --appid xxxxxxxxx
Error:
/opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:315:in `+': no implicit conversion of nil into String (TypeError)
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:315:in `_add_capabilities_to_main_target'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:42:in `_add_sdk'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:80:in `install_onesignal!'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/oscli.rb:56:in `execute'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/bin/onesignal:4:in `<top (required)>'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/bin/onesignal:25:in `load'
from /opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/bin/onesignal:25:in `<main>'
What gives?
Thx
Issue: missing instructions on how to set user argument on install
stuartrapoport@Stuarts-MacBook-Pro frontend % brew install onesignal-cli
==> Fetching onesignal/cli/onesignal-cli
==> Cloning https://github.com/OneSignal/cli.git
Updating /Users/stuartrapoport/Library/Caches/Homebrew/onesignal-cli--git
==> Checking out tag 0.0.7
HEAD is now at 9e947b1 Merge pull request #42 from OneSignal/fixing_include_copying
HEAD is now at 9e947b1 Merge pull request #42 from OneSignal/fixing_include_copying
==> Installing onesignal-cli from onesignal/cli
Error: An exception occurred within a child process:
ArgumentError: user srapopor doesn't exist
This command can be used to automate many of the OneSignal iOS native SDK setup steps, such as creating the notification service extension, adding required capabilities, and installing the OneSignal SDK via Swift Package Manager or Cocoapods.
Note that this command does not yet add initialization code to your app so please follow step 5 of the guide to complete installation.
Feedback and issues specific to the iOS installation command can be posted to this thread which will be checked regularly. We hope this tool can reduce friction when setting up the iOS SDK and we are looking forward to hearing from you.
Enjoy!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.