bugsnag / cocoapods-bugsnag

A CocoaPods plugin to integrate bugsnag into your project workspace
https://docs.bugsnag.com/platforms/ios/symbolication-guide/
MIT License
7 stars 3 forks source link

How to use that? #3

Closed SudoPlz closed 7 years ago

SudoPlz commented 7 years ago

Is a build phase supposed to be created?

I have a hard time figuring out how to use that plugin.

I've installed the gem and then did a pod install but no luck yet.

kattrali commented 7 years ago

Is a build phase supposed to be created?

Yep, it should all happen automatically. Are you using Bitcode in your app?

SudoPlz commented 7 years ago

Yeah, I am (and I'm not using fast lane).

Also I'm using buddybuild (CI) and I'm not building in my machine.

Also I already have that script in Xcode

fork do
Process.setsid
STDIN.reopen("/dev/null")
STDOUT.reopen("/dev/null", "a")
STDERR.reopen("/dev/null", "a")

require 'shellwords'

Dir["#{ENV["DWARF_DSYM_FOLDER_PATH"]}/*/Contents/Resources/DWARF/*"].each do |dsym|
system("curl -F dsym=@#{Shellwords.escape(dsym)} -F projectRoot=#{Shellwords.escape(ENV["PROJECT_DIR"])} https://upload.bugsnag.com/")
end
end

but it did nothing. I had no dsym files uploaded.

I had to go the the app store, download the dsym and upload it manually w/ bugsnag-dsym-upload.

I want to automate this process @kattrali . (My Busnag acc is under ioannis@acuityscheduling.com)

Thanks.

kattrali commented 7 years ago

Okay, this won't work for you if you have bitcode enabled, since the dSYM files will be generated on apple's servers rather than the mac building the app (more info here).

SudoPlz commented 7 years ago

So how can I automate this process?

kattrali commented 7 years ago

With fastlane?

SudoPlz commented 7 years ago

Is there another way? (I don't really like fastlane) :/

kattrali commented 7 years ago

I'm right there with you, but as it currently stands automating interactions with the iTunes Connect "API" is non-trivial and hard to maintain as its more "scraping the current website"/"replicate what Xcode is doing" than a supported interface. The fastlane team has dedicated time and resources to staying on top of its changes, and it doesn't make much sense to spend those resources to do the same. There might be some other tools for this though.

SudoPlz commented 7 years ago

Ok, cool thank you for the responses @kattrali I really appreciate it. Have a great weekend.

kattrali commented 7 years ago

Thank you :) Enjoy your weekend too @SudoPlz!