Comments (13)
Hello @rg224.
We will take a look at this issue and write you back as soon as there will be update.
from appcenter-sdk-react-native.
Hi @sahilmahajanpikup , please share your verbose logs.
The code snippet of your AppCenter SDK initialization and sending analytics data would also be helpful.
from appcenter-sdk-react-native.
hi @IlyaBausovAkvelon any update?
from appcenter-sdk-react-native.
Hi @DmitriyKirakosyan we do not send analytics data, all we want is to track crashes.
here is the Code snippet of AppCenter SDK initialization for ios:
from appcenter-sdk-react-native.
Hi @rg224 , I would still check the verbose logs if possible. Are you testing crashes locally? If so, try to call Crashes.generateTestCrash()
(see docs). Make sure the debugger is not attached. Also keep in mind that the crash is sending on the next app launch, after the crash happened.
from appcenter-sdk-react-native.
@DmitriyKirakosyan below are verbose logs and when I tried using Crashes.generateTestCrash() app isn't getting crashed (debugger wan't connected)
Verbose logs:
2022-08-01 17:13:41.452778+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel AppCenter.
2022-08-01 17:13:41.465166+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel AppCenter/one.
2022-08-01 17:13:41.465506+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics.
2022-08-01 17:13:41.466432+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics/one.
2022-08-01 17:13:41.466621+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics_critical.
2022-08-01 17:13:41.467170+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics_critical/one.
2022-08-01 17:13:41.467488+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel AppCenter/one.
2022-08-01 17:13:41.467688+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics/one.
2022-08-01 17:13:41.468416+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics_critical/one.
from appcenter-sdk-react-native.
@rg224 , just tested this myself on a sample app and it worked as expected. Here is what I did:
- Added
[MSACAppCenter setLogLevel: MSACLogLevelVerbose];
before the[AppCenterReactNative register];
call. - Added a button in JS code:
{ text: "Crash App", onPress: () => Crashes.generateTestCrash() }
- Launched the app from Xcode with
debug executable: false
- Crashes the app by clicking the button
- Relaunched the app from Xcode and made sure the crash log was sent by checking the logs.
Please make sure you didn't miss anything from these steps. If you find the text Cannot start service MSACCrashes. App Center was started without app secret, but the service requires it.
, then make sure you configured the app secret in the AppCenter-Config.plist
file as described here.
from appcenter-sdk-react-native.
@DmitriyKirakosyan ok sure, I'll again follow these steps and inform you
from appcenter-sdk-react-native.
@DmitriyKirakosyan can you tell me steps of how I can perform debug executable: false (as I am unable to find the checkbox to disable debugging in Xcode)
Although on clicking btn for crashing the app I am getting following message:
[AppCenter] ERROR: -[MSACServiceAbstract canBeUsed]/58 Crashes service hasn't been started. You need to call [MSACAppCenter start:YOUR_APP_SECRET withServices:LIST_OF_SERVICES] first.
from appcenter-sdk-react-native.
Crashes service hasn't been started. You need to call [MSACAppCenter start:YOUR_APP_SECRET withServices:LIST_OF_SERVICES] first
@rg224 , this means you haven't initialized AppCenter SDK properly. Have you created AppCenter-Config.plist, added app secret to it as described here, and (important) added the file in Xcode?
can you tell me steps of how I can perform debug executable: false (as I am unable to find the checkbox to disable debugging in Xcode)
Click on your selected scheme, then Edit Scheme... -> Run -> Debug executable (checkbox)
from appcenter-sdk-react-native.
@rg224 you can use this repo as a reference and example: https://github.com/microsoft/appcenter-sampleapp-react-native, or DemoApp inside this repository.
from appcenter-sdk-react-native.
ok sure will reference it @DmitriyKirakosyan
Thanks!
from appcenter-sdk-react-native.
Crashes service hasn't been started. You need to call [MSACAppCenter start:YOUR_APP_SECRET withServices:LIST_OF_SERVICES] first
@rg224 , this means you haven't initialized AppCenter SDK properly. Have you created AppCenter-Config.plist, added app secret to it as described here, and (important) added the file in Xcode?
can you tell me steps of how I can perform debug executable: false (as I am unable to find the checkbox to disable debugging in Xcode)
Click on your selected scheme, then
Edit Scheme... -> Run -> Debug executable (checkbox)
after following all the steps mentioned above, it seems that AppCenter-Config.plist wasn't added in Xcode, because of which crashes were not getting generated.
But now they are.
Thankyou @DmitriyKirakosyan
from appcenter-sdk-react-native.
Related Issues (20)
- [iOS] App Hanging plcrash::MS::async::dwarf_cfa_state_iterator<T>::next HOT 7
- Have an issue with AppCenterReactNativeCrashesListener.java on android HOT 4
- Could not find com.microsoft.appcenter.reactnative:appcenter-react-native:5.0.0 HOT 2
- Could not resolve com.microsoft.appcenter.reactnative:appcenter-react-native:5.0.0 HOT 6
- Support ES2022 `cause` to track inner exception stack traces HOT 2
- `Crashes.d.ts` type definition is incorrect HOT 2
- gradlew ENOENT when build apk HOT 2
- Regular Expression Denial of Service in debug HOT 3
- 502 Bad Gateway HOT 2
- no known class method for selector 'setDataResidencyRegion:' HOT 6
- The 'pod' command failed with error: The process '/usr/local/lib/ruby/gems/3.0.0/bin/pod' failed with exit code 1 HOT 1
- React-native IOS build issue. "Error installing hermes-engine" HOT 1
- CWE: SQL Injection & Insufficiently Random Values HOT 3
- Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated. HOT 9
- Required namespace declaration in new react-community version HOT 2
- Required namespace declaration in new react-community version HOT 2
- Required namespace declaration in new react-community version HOT 2
- Is there a way to get hold of the Session Id? HOT 3
- Crash attachments not working in React Native Android HOT 12
- ** ARCHIVE FAILED ** ##[error]Error: /usr/bin/xcodebuild failed with return code: 65 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appcenter-sdk-react-native.