Just to be clear, i am using 2 types of rollbar notifications: first one is releated to the plugin to catch native Android/IOS errors, and the socond one to catch JS errors (import { RollbarModule } from 'angular-rollbar):
app.module.ts:
import { Rollbar } from '@ionic-native/rollbar'; // catch native errors
import { RollbarModule } from 'angular-rollbar'; // catch JS errors
@NgModule({
imports: [
...
RollbarModule.forRoot({
accessToken: 'TOKEN'
}),
],
providers: [
...
Rollbar
],
})
Back to the plugin issue, i am trying to remove/add plugin without success so far
ionic cordova build ios --prod --verbose:
In file included from /Users/artur/work/scooploop/app/scooploop/platforms/ios/Scooploop/Plugins/resgrid.cordova.plugins.rollbar/CDVRollbar.m:7:
Scooploop/Plugins/resgrid.cordova.plugins.rollbar/CDVRollbar.h:9:9: fatal error: 'Rollbar/Rollbar.h' file not found
#import <Rollbar/Rollbar.h>
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/artur/Library/Developer/Xcode/DerivedData/Scooploop-cunkfkklepigkuejpzeluohqdpoj/Build/Intermediates/Scooploop.build/Debug-iphonesimulator/Scooploop.build/Objects-normal/x86_64/CDVRollbar.o Scooploop/Plugins/resgrid.cordova.plugins.rollbar/CDVRollbar.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/artur/work/scooploop/app/scooploop/platforms/ios/cordova/build-debug.xcconfig,-workspace,Scooploop.xcworkspace,-scheme,Scooploop,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/artur/work/scooploop/app/scooploop/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/artur/work/scooploop/app/scooploop/platforms/ios/build/sharedpch