简体   繁体   English

如何将Crashlytics与静态库集成

[英]How to integrate Crashlytics with static library

Whilst adding Crashlytics in the static library, run script is getting failed with following error: 在静态库中添加Crashlytics时,运行脚本失败并出现以下错误:

"Crashlytics: Failed to Detect Build Environment “Crashlytics:未能检测到构建环境

INFOPLIST_PATH value not found in environment Command /bin/sh failed with exit code 1" 在环境中找不到INFOPLIST_PATH值命令/ bin / sh失败,退出代码为1“


Run Script: 运行脚本:

./Crashlytics.framework/run "API key" ./Crashlytics.framework/run“API密钥”


从您的静态库项目:构建设置 - >框架搜索标题 - >添加您的应用程序正在使用的Crashlytics.Framework路径。

It seems that you need to integrate with your parent projects (dependant on your static lib). 您似乎需要与父项目集成(取决于您的静态库)。

I think that CFBundleIdentifier in the plist is required to distinguish crashes from different apps. 我认为plist中的CFBundleIdentifier需要区分不同应用程序的崩溃。 I was trying to overcome it by tweaking INFOPLIST_PATH build setting and copying plist from dependant project to the static library... No joy :) 我试图通过调整INFOPLIST_PATH构建设置并将依赖项目中的plist复制到静态库来克服它...没有快乐:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 Crashlytics 与 React Native 应用程序集成 - How to Integrate Crashlytics with React Native app 如何将Crashlytics集成到iOS框架项目中? - How to integrate Crashlytics into an iOS framework project? 如何将Crashlytics集成到iOS框架目标中? - How to integrate Crashlytics into an iOS framework target? 如何在共享扩展中集成Fabric / Crashlytics - How to integrate Fabric/Crashlytics in an shared extension 如何使用标志禁用Crashlytics iOS库? - How to disable Crashlytics iOS library using a flag? 如何整合照片库 - how to integrate photos library 如何为 Flutter 应用程序的 iOS 部分集成 Firebase Crashlytics? - How to integrate Firebase Crashlytics for iOS part of Flutter app? 如何在将CMS和脚本用于多个应用程序的Xcode中集成crashlytics - how to integrate crashlytics in Xcode that uses CMS and script for multiple apps 通过CocoaPods集成Fabric / Crashlytics - Integrate Fabric/Crashlytics via CocoaPods 如何在从 xcode 目标(.a 文件)生成的 xamarin.ios 中集成静态库? 如何在 xamarin.ios 中调用这些方法? - How to integrate the static library in xamarin.ios which is generated from xcode targets (.a file)? how to call those methods in xamarin.ios?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM