Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Frameworks路径问题 #132

Closed
libyyu opened this issue Jul 15, 2017 · 2 comments
Closed

iOS Frameworks路径问题 #132

libyyu opened this issue Jul 15, 2017 · 2 comments
Milestone

Comments

@libyyu
Copy link

libyyu commented Jul 15, 2017

在编译iOS项目的时候,项目中使用了一些framework,如JSONKit,iflyMSC等,使用如下方式:
#import "JSONKit.h"
#import "iflyMSC/IFlySpeechRecognizer.h"
在Xcode中提供了Framework SearchPath,编译没问题。但是用xmake,怎么设置搜索路径呢,
用了add_frameworks("JSonKit")还是不行,一直报这几个文件找不到。请问这个该怎么解决。谢谢。

fatal error: 'JSONKit.h' file not found #import "JSONKit.h"

@waruqi
Copy link
Member

waruqi commented Jul 15, 2017

@libyyu 你可以尝试先手动加 编译选项:add_mxflags("-F/xxx/frameworkdir")add_ldflags("-F/xxx/frameworkdir") 试试。。。

后两天我会增加个 add_frameworkdirs 来支持下。。

@waruqi
Copy link
Member

waruqi commented Jul 15, 2017

dev分支上 我已经把 add_frameworkdirs("/xxx/frameworkdir", "/tmp/xxx") 接口加上了 你可以试下。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants