Comments (11)
你可以把mango抽成一个独立的子工程,设置该子工程的Compile Sources As 为 objective-C。将该子工程或者将其打包成静态库引入你的项目中。或者使用作者生成好的lex&&yacc等文件。
from mango.
好的 我试一下 你也在项目中用这个库了吗 用着怎么样 可以加个微信 聊一下吗
from mango.
目前的版本功能有点小问题,简单修复下就能用。修复不是很长的方法,还是挺实用的
from mango.
有什么小问题
from mango.
from mango.
@Sunny-guangge @zhutc 近来太忙没怎么维护,现在已经支持pod接入方式,可以直接使用不需要额外配置,应该不会报错。 本来想在podspec文件中配置pod_target_xcconfig解决这个问题,将这个Target的Compile Sources As设置为objective-C,但是找了半天没找到Compile Sources As对应的内部Key,所以就直接手动将lex和yacc文件生成的c文件,再改为m文件用,如果你们知道Compile Sources As对应的内部Key还希望告知下~~
from mango.
@YPLiang19
GCC_INPUT_FILETYPE = sourcecode.c.objc
可以通过打开xxxx.xcodeproj/project.pbxproj文件,然后在xcodeUI界面中手动修改这个配置项,然后观察project.pbxproj文件的变动来找到对应的key
from mango.
@zhutc 谢谢!
from mango.
@Sunny-guangge MangoFix这个target选用Objective-C
from mango.
@YPLiang19 这个选的就是Objective-C
from mango.
@Sunny-guangge 试试1.0.2,我这边项目也有c++,但是使用没问题。
from mango.
Related Issues (20)
- 和jspatch除了dsl区别在哪里? HOT 3
- 关于 super 直接使用 objc_msgSendSuper 实现的问题
- demo had memory leaks
- frame或者bounds为null HOT 3
- 在模拟器上运行不起来
- 设置label.text或textField.text或textView.text,字符串长了就崩溃 HOT 1
- swift啥时候有计划呀 HOT 2
- 关于RSA加密的问题 HOT 3
- 审核能过吗
- 是否可以加个通过公钥加载补丁文件的方式 HOT 1
- 脚本带 if (xx && xx) 或 if (xx || xx) 时可能存在内存泄漏 HOT 1
- 子类的初始化方法中通过super调用父类的初始化方法,参数会变为nil,大家有遇到这个问题吗,或者应该怎么解决 HOT 3
- 大佬有提供mangofix的静态framework库么,我需要手动导入
- 关于类型转换的问题 HOT 1
- swift 调用原有方法只能是@objc修饰过的吗?
- 一个mg文件里可以放多个类么,还是说一个mg文件只能对应一个类的修复 HOT 1
- category可以吗?如何更新category的方法呢? HOT 1
- Terminating app due to uncaught exception 'MFRuntimeErrorNotFoundCFunction' HOT 2
- 支持NSObject+xxxx,基类扩展的hook吗?
- Grammar conflicts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mango.