[英]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.