I am having an iOS ionic application in which I am trying to incorporate crashlytics, for that I have added cordova crashlytics plugin.After that I launched the Fabric application and selected new application > projects xcode file > install crashlytics after this step I added a run script build phase with the code in the fabric application and then build and run the application using xcode, but nothing is happening in the fabric application.
我正在使用iOS离子应用程序,我正在尝试合并crashlytics,因为我已经添加了cordova crashlytics插件。之后我启动了Fabric应用程序并选择了新应用程序>项目xcode文件>安装crashlytics后,我添加了一个运行脚本使用结构应用程序中的代码构建阶段,然后使用xcode构建和运行应用程序,但结构应用程序中没有发生任何事情。
Attaching the screenshot.
附上截图。
1 个解决方案
#1
0
I faced similar problem trying to integrate Crashlytics into an Ionic app. The following worked for me.
我在尝试将Crashlytics集成到Ionic应用程序时遇到了类似的问题。以下对我有用。
-
Install the cordova-fabric-plugin:
安装cordova-fabric-plugin:
ionic plugin add cordova-fabric-plugin --variable FABRIC_API_KEY={api-key} --variable FABRIC_API_SECRET={api-secret} --save
离子插件添加cordova-fabric-plugin - 变量FABRIC_API_KEY = {api-key} - 变量FABRIC_API_SECRET = {api-secret} --save
This will automatically add a build phase script to the XCode Project.
这将自动将构建阶段脚本添加到XCode项目。
- Build and Run the project. The build phase script uploads a dSYM file which Crashlytics uses to process the crashes.
构建并运行项目。构建阶段脚本上载了一个dSYM文件,Crashlytics使用该文件来处理崩溃。
The first run after build is important as it identifies the build with the Crashlytics platform.
构建之后的第一次运行很重要,因为它使用Crashlytics平台识别构建。
#1
0
I faced similar problem trying to integrate Crashlytics into an Ionic app. The following worked for me.
我在尝试将Crashlytics集成到Ionic应用程序时遇到了类似的问题。以下对我有用。
-
Install the cordova-fabric-plugin:
安装cordova-fabric-plugin:
ionic plugin add cordova-fabric-plugin --variable FABRIC_API_KEY={api-key} --variable FABRIC_API_SECRET={api-secret} --save
离子插件添加cordova-fabric-plugin - 变量FABRIC_API_KEY = {api-key} - 变量FABRIC_API_SECRET = {api-secret} --save
This will automatically add a build phase script to the XCode Project.
这将自动将构建阶段脚本添加到XCode项目。
- Build and Run the project. The build phase script uploads a dSYM file which Crashlytics uses to process the crashes.
构建并运行项目。构建阶段脚本上载了一个dSYM文件,Crashlytics使用该文件来处理崩溃。
The first run after build is important as it identifies the build with the Crashlytics platform.
构建之后的第一次运行很重要,因为它使用Crashlytics平台识别构建。