Git Product home page Git Product logo

cli's People

Contributors

brettshwom-onesignal avatar brismithers avatar emawby avatar jeasmine avatar jkasten2 avatar jmadler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cli's Issues

Troubles locating info plist file

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

iOS Xcode Command Line Setup

This library is helpful and works for the most part.
I occasionally get an error....

Steps To Reproduce:

  • Create a New Xcode Project
  • Cd to Directory in Terminal,
  • Run Command
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

brew install issue - setting user argument

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

iOS Installation command beta!

The iOS installation command is in Beta!

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!

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.