rollbar / rollbar-apple

Objective-C & Swift library for remote crash, exception, error reporting, and logging with Rollbar. It works on all Apple *OS platforms (macOS, iOS, tvOS, watchOS, etc).
https://docs.rollbar.com/docs/apple
MIT License
26 stars 15 forks source link

Error with Swift Package Manager (1.12.9) #104

Closed knguyen2708 closed 3 years ago

knguyen2708 commented 3 years ago

If I create a new project (Xcode 12.5.1) and add Rollbar Apple as a Swift Package (currently v 1.12.9), I get the following error:

/Users/knguyen/Library/Developer/Xcode/DerivedData/Test-fabppkklxiqdukdjcjddwdpzrtxu/SourcePackages/checkouts/rollbar-apple/Rollbar/Notifier_DTOs/RollbarTrace.h:9:9: 'DataTransferObject.h' file not found

Can someone have a look?

image
akornich commented 3 years ago

@knguyen2708 , are you sure you reported this problem for the correct repo? I think you intended it for this one: https://github.com/rollbar/rollbar-ios Rollbar-Apple is replacement for Rollbar-iOS SDK and starts from v2 (and it is in beta phase now - but you are more than welcome to try it). It will be moving out of bet anytime soon. Rollbar-Apple fully supports Swift Package Manager, Cocoapods, Carthage while Rollbar-iOS only supports Cocoapods and Carthage. In addition, Rollbar-Apple SDK more modular, lightweight and has more options/features than Rollbar-iOS.

Please, let me know if you need further support transitioning to Rollbar-Apple from Rollbar-iOS.

akornich commented 3 years ago

closing due to no response

knguyen2708 commented 3 years ago

Hi apologies, I didn't receive notifications for this thread for some reason.

I did add this repo to Xcode, not rollbar-ios (as instructed in https://github.com/rollbar/rollbar-apple.git), but Xcode automatically resolved it to 1.12.9 -- seems it could not see the beta versions -- so I mistakenly thought SPM were supported for 1.12.9 (and there is a Package.swift file ! ).

I have since resolved the issue by manually setting the package's version to 2.0.0 beta.

Thanks for the suppport.