简体   繁体   中英

How to integrate Crashlytics with static library

Whilst adding Crashlytics in the static library, run script is getting failed with following error:

"Crashlytics: Failed to Detect Build Environment

INFOPLIST_PATH value not found in environment Command /bin/sh failed with exit code 1"


Run Script:

./Crashlytics.framework/run "API key"


从您的静态库项目:构建设置 - >框架搜索标题 - >添加您的应用程序正在使用的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. I was trying to overcome it by tweaking INFOPLIST_PATH build setting and copying plist from dependant project to the static library... No joy :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM