OneSignal / cli

Command line tool for OneSignal power users. 1-step iOS SDK Integration. Now in Beta.
14 stars 3 forks source link

iOS Xcode Command Line Setup #44

Open xpnewmedia opened 1 year ago

xpnewmedia commented 1 year ago

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

Steps To Reproduce:

What gives? Thx

uxshahil commented 1 year ago

Using Mac M1 Pro 16GB Ventura 13.2.1

Steps To Reproduce:

onesignal install-sdk --type iOS --entrypoint AppName --lang objc --appid AppId --target AppTarget

Error:

/opt/homebrew/Cellar/onesignal-cli/0.0.7/libexec/gems/onesignal-cli-1.0.0/lib/osproject_ios.rb:335:in _add_capabilities_to_main_target': undefined methodpath' for nil:NilClass (NoMethodError)

group_relative_entitlements_path = group.path + "/" + self.target_name + ".entitlements"
                                        ^^^^^
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>'