如何为iOS&编译libffi苹果系统? [英] How do I compile libffi for iOS & macOS?

查看:320
本文介绍了如何为iOS&编译libffi苹果系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的一个项目中使用 libffi ,但我似乎无法以针对iOS(或macOS)进行编译.这是在构建iOS模拟器时遇到的各种错误之一:

I'm trying to use libffi in one of my projects, but I can't seem to compile for iOS (or macOS, for that matter). Here is one of the various errors I've encountered while building for the iOS Simulator:

bash: src/arm/gentramp.sh: No such file or directory


更新1:由于问题仍未得到解答,我决定打开问题.


Update 1: Since the question remains unanswered, I've decided to open an issue at the official repository as well.

更新2:,问题已得到解答,问题已解决!

Update 2: Question has been answered and the issue has been closed!

推荐答案

generate-darwin-source-and-headers.py和libffi.xcodeproj需要进行更新,以包括所有当前相关的源文件.

generate-darwin-source-and-headers.py and the libffi.xcodeproj need to be updated to include all currently relevant source files.

不再需要gentramp.sh脚本,当前的上游xcodeproj也不是最新的编译设置,也不包含在iOS上的64位源文件中.可以在 https://github.com/ksjogo/libffi

The gentramp.sh script is not needed anymore and the current upstream xcodeproj is not up to date either with compilation settings and to be included source files for 64-bit on iOS. A patched fork can be found at https://github.com/ksjogo/libffi

这篇关于如何为iOS&编译libffi苹果系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆