Sentry-react-native: No such module 'KSCrash'

Created on 26 Mar 2017  ·  21Comments  ·  Source: getsentry/sentry-react-native

Not using Expo, followed all instructions, getting this error:

screen shot 2017-03-26 at 5 02 22 pm

Most helpful comment

Same issue. RN 0.43.0-rc.2

screen shot 2017-03-31 at 16 14 02

All 21 comments

ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES is set to YES as well

Cleaned + built

Also did all the stuff with "Bundle React Native code and images"

I'll just not use this for now, but it seems like the documentation isn't really accurate.

Also there is a typo in your docs:

https://docs.sentry.io/clients/react-native/#client-configuration

+#import "RNSentry.h"
-#import <React/RNSentry.h>

Hey,
which version of react-native do you use?

Similar issue here, using RN 0.38.1.

screen shot 2017-03-30 at 10 03 16 am

Same issue. RN 0.43.0-rc.2

screen shot 2017-03-31 at 16 14 02

Same problem with

react-native-cli: 2.0.1
react-native: 0.38.1
/...RN-project/node_modules/react-native-sentry/ios/Sentry/Sources/Contexts.swift:10:8: error: no such module 'KSCrash'
import KSCrash
       ^

Any progress for this issue ? I have same error.

Having the same issue.

react-native: ~0.39.0
react-native-sentry: ^0.7.0

Here's what I've tried so far
Tried building individual schemes in the given order
KSCrash-iOS > Sentry-iOS > RNSentry

First two build successfully, no KSCrash issue . But building RNSentry gives compile error "RCTBridge.h file not found" in RNSentry.h

is cant we just use the libs we alredy have in a project? i use sentry-swift from carthage, so i have sentry and kscrash already. cant i use react-native-sentry with these ones?

+1

react-native: 0.41.2
react-native-sentry: ^0.7.0

I got past this by adding KSCrash.framework to the _Build Phases > Link Binary With Libraries_ list of _RNSentry.xcodeproj > Libraries > Sentry.xcodeproj_.

Then I ran into an error finding RCTEventEmitter.h which I solved by adding $(SRCROOT)/../../react-native/React (recursive) to the _Build Settings > Header Search Paths_ of RNSentry.xcodeproj.

We tried reproducing this in various ways now and we did not manage to encounter this issue. Are you using it with carthage or cocoapods?

No carthage and no cocoapods for me. BTW I had the same problem with the example app in the repo.

I switched to Bug Snag 😀

On May 16, 2017 1:27 PM, "Seggy Umboh" notifications@github.com wrote:

No carthage and no cocoapods for me. BTW I had the same problem with the
example app in the repo.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/getsentry/react-native-sentry/issues/21#issuecomment-301905255,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAf7hZX8e0XuUxnlo2aqa_zUUCtm8TqTks5r6gahgaJpZM4MplsY
.

@secobarbital any chance you could zip up the example project as it exists on your machine since you say this shows this bug for you and share it with us? (including node_modules and all other stuff).

The theory is that something messes up the xcode project under some circumstances.

Hey, please upgrade to the latest release 0.11.0.
We switched our internal client from swift to objc, this should resolve all related issues here.

We're still seeing issues when we're trying to archive the app with fastlane. Probably has to do something with the release build.

Fastlane tries to build with the release config and there the libraries aren't included properly anymore. Works with Debug build in XCode.

xcodebuild -scheme {ProjectName} -project ios/{ProjectName}.xcodeproj -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/{username}/Library/Developer/Xcode/Archives/2017-05-31/{ProjectName}\ 2017-05-31\ 20.00.38.xcarchive clean archive CODE_SIGN_IDENTITY={CodeSignIdentity}
....
 Copying SentrySerializable.h
▸ Copying SentryFrame.h
▸ Copying SentryBreadcrumbStore.h
▸ Copying Sentry.h
▸ Copying SentryNSURLRequest.h
▸ Copying SentryBreadcrumb.h
▸ Copying RSSwizzle.h
▸ Copying SentryDefines.h
▸ Copying SentryClient.h
▸ Copying SentryThread.h
▸ Copying SentryUser.h
▸ Copying SentryStacktrace.h
▸ Copying SentryEvent.h
▸ Copying SentryContext.h
▸ Copying SentryLog.h
▸ Copying SentryDebugMeta.h
▸ Copying SentryException.h
▸ Copying SentrySwizzle.h
▸ Copying SentryFileManager.h
▸ Copying SentryQueueableRequestManager.h
▸ Copying SentryRequestOperation.h
▸ Copying NSDate+Extras.h
▸ Copying SentryKSCrashReportSink.h
▸ Copying SentryKSCrashReportConverter.h
▸ Copying NSData+Compression.h
▸ Copying SentryAsynchronousOperation.h
▸ Copying SentryDsn.h
▸ Copying SentryKSCrashInstallation.h
▸ Copying SentryError.h
▸ Running script 'Run Script'
▸ Building RNSentry/RNSentry [Release]
▸ Check Dependencies

❌  /Users/{username}/dev/{ProjectName}/node_modules/react-native-sentry/ios/RNSentry.m:10:9: 'KSCrash/KSCrash.h' file not found

#import <KSCrash/KSCrash.h>

We're seeing the exact same issue as above. Archiving in release mode causes an 'KSCrash/KSCrash.h' file not found error.

@robertmerten @jarredwitt
Sorry guys for running into that issue, please upgrade to 0.11.2 this will fix it!

0.11.3 😅

Was this page helpful?
0 / 5 - 0 ratings