gpt4 book ai didi

xamarin.ios - 如何为 Xamarin.iOS 创建 crashlytics 绑定(bind)?

转载 作者:行者123 更新时间:2023-12-04 04:43:40 24 4
gpt4 key购买 nike

我已经下载了将 Crashlytics.framework 集成到 XCode 项目中的 Crashlytics 应用程序,它非常适合 XCode。但据我所知,要构建 Xamarin.iOS 绑定(bind),我需要静态库,而且我在框架和 Crashlytics.app 内容中都找不到它。只有“运行”可执行文件和标题。我不知道如何在 Xamarin.iOS 下使用它。顺便说一句,AndrewReed on Xamarin forum设法以某种方式构建dll,所以这是可能的。

所以,如何为 Xamarin 创建 crashlytics 绑定(bind)?

最佳答案

AndrewReed answered this question on Xamarin forum :

As with quite a few sdk's, sometimes they bundle a folder instead of the static lib,which essentially is the static library. There will be a sizeable file that maybe doesnt have an extension(this is your .a file) so you can rename that to be .a and then include that in a xamarin bindings project. Run the sharpie marker on the header file in the folder which will generate your necessary files. Watch out for one gotcha, delegate is a reserved word in c#, so you may need to go around and change this by adding an @ symbol(to the name) to allow you to use the reserved word.So what I actually did was, created a project in xcode and ran the crashlytics programme, this then added the crashlytics framework to the project. In finder locate that and you will have a structure like so: - run - /Versions --/A ---Crashlytics ---/Headers ----Crashlytics.h

So the /A folder is essentially your static lib, use this and create your binding from that, or in this particular case, just download it from the mono bindings || my repo.

关于xamarin.ios - 如何为 Xamarin.iOS 创建 crashlytics 绑定(bind)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18530198/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com